开发的shell监控脚本,nrpe日志显示回复正常,nagios监控页面的状态确实unknown
nrpe日志如下:Jul 29 07:08:41 localhost nrpe: Added command=/usr/bin/sudo /usr/local/nagios/libexec/check_amsocketd.sh
Jul 29 07:08:41 localhost nrpe: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Jul 29 07:08:41 localhost nrpe: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Jul 29 07:08:41 localhost nrpe: Handling the connection...
Jul 29 07:08:41 localhost nrpe: Host is asking for command 'check_amsocketd' to be run...
Jul 29 07:08:41 localhost nrpe: Running command: /usr/bin/sudo /usr/local/nagios/libexec/check_amsocketd.sh
Jul 29 07:08:41 localhost nrpe: Command completed with return code 0 and output: TCP OK - amsocketd service status is ok|time=0.002126s;;;0.000000;10.000000
Jul 29 07:08:41 localhost nrpe: Return Code: 0, Output: TCP OK - amsocketd service status is ok|time=0.002126s;;;0.000000;10.000000
Jul 29 07:08:41 localhost xinetd: EXIT: nrpe status=0 pid=15579 duration=0(sec)
Jul 29 07:08:41 localhost xinetd: EXIT: nrpe status=0 pid=15579 duration=0(sec)
监控页面显示unknown:
msgsocketservice
UNKNOWN 07-28-2014 23:30:32 0d 14h 56m 40s 1/1 Cannot map "tcp" to protocol number Cannot map "tcp" to protocol number 这不是报错么,检查协议端口是否通畅
页:
[1]