^1448870266090
@
sname
LinuxTask
slabel
LinuxTask
sdescriptors
xworker.lang.MetaDescriptor3
smany
true
seditCols
2
sinitialization
false
sgroup
monitor.linux
smodifier
public
sinheritDescription
false
Sdescription
#$@text#$@
<p>通过Ssh连接远程服务器，然后执行Shell脚本（command），然后返回脚本执行结果的任务。</p>

<p><strong>结果返回和报警邮件内容</strong></p>

<p>&nbsp;&nbsp;&nbsp; 返回的结果是字符串，如果不为null那么将会添加到报警的邮件内容中。</p>

<p>&nbsp;&nbsp;&nbsp; 结果返回是通过设置message属性实现的，其中message是freemarker模板，默认模板是${result?if_exists}，其中result是执行command脚本返回的字符串。</p>

<p><strong>监控数据的保存</strong></p>

<p>&nbsp;&nbsp;&nbsp; 监控数据可以保存的数据库中。</p>

<p>&nbsp;&nbsp;&nbsp; 方法是command返回的结果result变量是字符串，如果有多个值那么是通过英文逗号分隔的，这样就可以把值分成一个数组。通过设置列别名属性可以为返回值数组的每一个索引指定一个名称，如果名称不为空，那么就用此名保存到数据库中。</p>

<p>&nbsp;&nbsp;&nbsp; 比如command执行后的返回值是：<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 95%,150G,50G,16G,90%</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp; 设置的别名是：</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cpu,diskSize,diskFreeSize,,memory</p>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 那么认为command的执行结果第一个值是cpu，第二个值是diskSize，第三个值是diskFreeSize，第四个值不保存，第五个值是内存占用。</p>

<p><strong>异常</strong></p>

<p>&nbsp;&nbsp;&nbsp; 如果请求服务器发生异常，比如网络连接失败或校验失败等，此时exception变量不为空。</p>
#$@text#$@
snotXmlAttribute
false
sth_createIndex
true
sth_registThing
child|xworker.app.init.InitIndex
sth_registMyChilds
false
sth_mark
false
@/@actions
sname
actions
sdescriptors
xworker.lang.MetaDescriptor3/@actions
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@run
sname
run
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.app.monitor.liunx.LinuxCheckTaskActions
smethodName
checkTaskEatch
sdisableGlobalContext
false
sattributeTemplate
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@run1
sname
init
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.app.monitor.db.DbActions
smethodName
initTasks
sdisableGlobalContext
false
sattributeTemplate
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@getResSelectorPath
sname
getResSelectorPath
stype
string
svalue
xworker.app.appmanager.swt.editors.server.SelectServerShell
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ValueFactory
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@getParameterThing
sname
getTaskParameterThing
stype
string
svalue
xworker.app.monitor.tasks.linux.paramthings.LinuxTaskParam
sinterpretationType
Self
sattributeTemplate
false
schildsAttributeTemplate
false
svarScope
Local
sisSynchronized
false
sthrowException
true
suseOtherAction
false
screateLocalVarScope
false
ssaveReturn
false
sdisableGlobalContext
false
sdescriptors
xworker.lang.actions.Actions/@ValueFactory
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@doCheck
sname
doCheck
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.app.monitor.liunx.LinuxCheckTaskActions
smethodName
linuxTask
sdisableGlobalContext
false
sattributeTemplate
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@getCommand
sname
getCommand
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.app.monitor.liunx.LinuxCheckTaskActions
smethodName
TaskGetCommand
sdisableGlobalContext
false
sattributeTemplate
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@actions/@loadResource
sname
loadResource
sisSynchronized
false
sthrowException
true
suseOtherAction
false
suseOuterJava
true
souterClassName
xworker.app.monitor.liunx.LinuxCheckTaskActions
smethodName
loadResource
sdisableGlobalContext
false
sattributeTemplate
false
sinterpretationType
Action
svarScope
Global
screateLocalVarScope
false
ssaveReturn
false
sdescriptors
xworker.lang.actions.Actions/@JavaAction
sinheritDescription
false
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@name
sname
name
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@label
sname
label
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
@/@description
sname
description
sinputtype
html
sshowLabel
true
sreadOnly
false
sinheritDescription
false
svalidateAllowBlank
true
LvalidateOnBlur
true
LallowDecimals
true
LallowNegative
true
snotXmlAttribute
false
sdescriptors
xworker.lang.MetaDescriptor3/@attribute
sth_createIndex
false
sth_registMyChilds
false
sth_mark
false
