我从主机收到(No output returned from plugin)
但无法理解原因:
监控服务器上的服务:
# Check Clamd availability
define service {
hostgroup_name clamd-servers
service_description ClamAV Daemon
check_command check_nrpe!check_clamd
use generic-service
notification_interval 0 ; set > 0 if you want to be renotified
}
显示器上的主机:
# Clamd Servers
define hostgroup {
hostgroup_name clamd-servers
alias ClamAV servers
members fsmvps
}
主机fsmvps上的nrpe_local.fcfg
command[check_clamd]=/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl
在clam启动并运行时,在主机上运行命令/usr/lib/nagios/plugins/check_clamd -H /var/run/clamav/clamd.ctl
将产生以下输出:
CLAMD OK - 0.000 second response time on socket /var/run/clamav/clamd.ctl [PONG]|time=0.000219s;;;0.000000;10.000000
目前还不知道为什么没有输出,因为我是Nagios的初学者。
答案 0 :(得分:0)
也许您的NRPE服务设置不正确(有时它会抱怨ssl)。
在监视器服务器上运行(作为nagios用户),例如:
/usr/lib/nagios/plugins/check_nrpe -H fsmvps check_clamd
可能有助于诊断事物。
可能是: