nagios 脚本输出显示

【基本介绍】
在nagios平台上我们直接看到status information的信息,但是有时候显示的不全,或者有些信息跑到了Performance Data里面去了。

【解决】
已bash为例子。
1. 我们echo出来的信息就是在status information里面显示的。如果信息里面有换行之类,我们就可能在status information里面看不全信息。要点进去看service state information里面就可以看到所有的信息。

2. 如果有的信息跑到了performance data里面去了,检查信息里面是否有包含“|”,会把后面的信息输出到performance data里面。
   --- A plugin can return optional performance data for use by external plications. To do this, the performance data must be separated from the text output with a pipe (|)

【参考】
http://blog.csdn.net/cictech/article/details/2740064

猜你喜欢

转载自runpanda.iteye.com/blog/2099189