我需要一种方法来找出每个monit xml状态代码的含义。我有一些xml输出,格式为:
https://gist.github.com/plasticbrain/54ceaf101168d20f9a90
如果链接不起作用,请:
<services>
<service name="system">
<type>5</type>
<collected_sec>1414691061</collected_sec>
<collected_usec>254769</collected_usec>
<status>0</status>
<status_hint>0</status_hint>
<monitor>1</monitor>
<monitormode>0</monitormode>
<pendingaction>0</pendingaction>
</service>
在此代码块中,我们可以看到:
<status> 0 </status>
我搜索了很多内容,找到了所有可能代码及其含义的完整列表,但到目前为止我一直找不到任何代码。 monit文档似乎根本没有提到它。