- 论坛徽章:
- 0
|
嗯,怪就怪在这里了,直接执行check_procs返回结果正常,但是使用check_nrpe就不正常
和nrpe.cfg配置文件应该没关系,因为该机器上,也有能够正常监控的进程。这是奇怪了。
我把nrpe.cfg中debug开启后,执行:- t3city-oss:~ # /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 -c oss#proc
- PROCS CRITICAL: 0 processes with args 'tomcat-5.5.33'
复制代码 跟踪日志显示:- Jul 12 12:08:20 t3city-oss nrpe[20517]: Host is asking for command 'oss#proc' to be run...
- Jul 12 12:08:20 t3city-oss nrpe[20517]: Running command: /usr/local/nagios/libexec/check_procs -c 1:1 -a 'tomcat-5.5.33'
- Jul 12 12:08:20 t3city-oss nrpe[20517]: Command completed with return code 2 and output: PROCS CRITICAL: 0 processes with args 'tomcat-5.5.33'
- Jul 12 12:08:20 t3city-oss nrpe[20517]: Return Code: 2, Output: PROCS CRITICAL: 0 processes with args 'tomcat-5.5.33'
复制代码 |
|