创建健康巡检任务
<p class="shortdesc">通过任务管理,您可以创建健康巡检任务,帮助您快速有效地定位机器异常问题,提升运维效率。</p>
<section class="section context" id="creathealthtask__context_yz2_2yz_bkb"><div class="tasklabel"><h2 class="doc-tairway">背景信息</h2></div>
<p class="p" id="creathealthtask__p_fjs_xbp_tkb">健康巡检是OSP提供OS相关的一系列检测项,帮助您了解主机OS相关健康情况,提前发现隐藏的风险。系统根据按操作系统提供了不同的巡检模板。您可以根据实际巡检需求选择不同类型模板来完成相应的巡检任务。</p>
<p class="p" id="creathealthtask__p_rcy_xbp_tkb">任务创建完成后,您可以对健康巡检任务进行管理,如被定期任务和工作流等引用,或者可以多次执行该任务。</p>
</section>
<section id="creathealthtask__steps_zz2_2yz_bkb"><div class="tasklabel"><h2 class="doc-tairway">操作步骤</h2></div><ol class="ol steps" id="creathealthtask__steps_zz2_2yz_bkb"><li class="li step stepexpand">
<span class="ph cmd">登录<a class="xref" href="https://pinganyun.com/console/osp" target="_blank">系统管理服务OSP控制台</a>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在左侧导航栏中,单击<span class="ph menucascade"><span class="ph uicontrol">作业管理</span><abbr> > </abbr><span class="ph uicontrol">任务管理</span></span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="keyword wintitle">任务管理</span>页面,单击页面右上角的<span class="ph uicontrol">创建</span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">在<span class="keyword wintitle">创建任务</span>页面,选择<span class="ph uicontrol">任务类型</span>为<span class="ph uicontrol">健康巡检</span>。</span>
</li><li class="li step stepexpand">
<span class="ph cmd">选择完成后,您需要进行如下配置。</span>
<div class="itemgroup info">
<img class="image" id="creathealthtask__d45e66" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174752-1f0bbbb49211.png">
<table class="table frame-all" id="creathealthtask__d45e68"><caption></caption><colgroup><col style="width:34.01360544217687%"><col style="width:65.98639455782312%"></colgroup><thead class="thead">
<tr class="row">
<th class="entry" id="creathealthtask__d45e68__entry__1">配置项</th>
<th class="entry" id="creathealthtask__d45e68__entry__2">说明</th>
</tr>
</thead><tbody class="tbody">
<tr class="row">
<td class="entry" headers="creathealthtask__d45e68__entry__1 ">
<p class="p"><span class="ph uicontrol">任务名称</span></p>
</td>
<td class="entry" headers="creathealthtask__d45e68__entry__2 ">
<p class="p">关于该健康巡检任务的名称。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="creathealthtask__d45e68__entry__1 ">
<p class="p"><span class="ph uicontrol">任务描述</span></p>
</td>
<td class="entry" headers="creathealthtask__d45e68__entry__2 ">
<p class="p">关于该健康巡检任务的描述。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="creathealthtask__d45e68__entry__1 ">
<p class="p"><span class="ph uicontrol">巡检模板</span></p>
</td>
<td class="entry" headers="creathealthtask__d45e68__entry__2 ">
<p class="p">单击下拉按钮,按操作系统选择不同的巡检模板。</p>
<p class="p">选择完成后,单击<span class="ph uicontrol">模板详情</span>您可以查看该模板的详细信息。</p>
</td>
</tr>
<tr class="row">
<td class="entry" headers="creathealthtask__d45e68__entry__1 ">
<p class="p"><span class="ph uicontrol">目标机器</span></p>
</td>
<td class="entry" headers="creathealthtask__d45e68__entry__2 ">
<ul class="ul" id="creathealthtask__ul_ztn_rgl_bkb">
<li class="li">
<p class="p"><strong class="ph b">方式一:选择主机</strong></p>
<p class="p">单击<span class="ph uicontrol">+选择机器</span>,在弹出的<span class="keyword wintitle">主机选择</span>页面中,勾选一个或者多个主机,然后单击<span class="ph uicontrol">选择</span>。</p>
<img class="image" id="creathealthtask__d24e199" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174751-16a350799ebd.png" width="500">
</li>
<li class="li">
<p class="p"><strong class="ph b">方式二:导入主机</strong></p>
<p class="p">单击<span class="ph uicontrol">快速导入</span>,在<span class="ph uicontrol">主机列表</span>框中,输入主机名称或者IP地址,输入完成后单击<span class="ph uicontrol">主机匹配</span>。匹配无误后,单击<span class="ph uicontrol">确定</span>。</p>
<div class="note note note_note"><span class="note__title">说明:</span> 输入的IP或主机名称,可以用“英文逗号,”、“英文分号;”、“|”或“换行符”将多个主机名进行分隔。</div>
<img class="image" id="creathealthtask__d24e226" src="https://pcp-portal-sca.obs-cn-shenzhen.pinganyun.com/pcp-portal-sca/20201407174751-1ef2ca479d9b.png" width="500">
</li>
</ul>
</td>
</tr>
<tr class="row">
<td class="entry" headers="creathealthtask__d45e68__entry__1 ">
<p class="p"><span class="ph uicontrol">超时时间</span></p>
</td>
<td class="entry" headers="creathealthtask__d45e68__entry__2 ">
<p class="p">设置任务执行超时时间,如果超过了设定的时间,CloudAgent会结束任务进程。单位分钟,范围1~30,空设置将默认超时时间为30分钟。</p>
</td>
</tr>
</tbody></table>
</div>
</li><li class="li step stepexpand">
<span class="ph cmd">完成后,单击<span class="ph uicontrol">确认创建</span>。</span>
</li></ol></section>
<section class="section postreq"><div class="tasklabel"><h2 class="doc-tairway">后续操作</h2></div>
<p class="p">完成健康巡检任务的创建后,您需要在<span class="ph uicontrol">任务管理</span>处,单击<span class="ph uicontrol">执行</span>来启动任务。或者通过定期任务来触发该健康巡检任务的执行。</p>
</section>
提交成功!非常感谢您的反馈,我们会继续努力做到更好!