需要帮助了解NAGIOS NRPE命令

我有centOS5,我已经安装了Nagios监控系统Ubuntu – 是我已经安装了NRPE插件和插件的远程主机

现在在远程主机UBUNUT – 我NRPE.CFG说

command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 350 -c 500 command[check_http]=/usr/local/nagios/libexec/check_http -I 127.0.0.1 -w 150 -c 200 command[check_ssh]=/usr/local/nagios/libexec/check_ssh 127.0.0.1 

CENTOS – HOST有两个文件localhost.cfg

 define service{ use generic-service host_name remotehost service_description Total Processes check_command check_nrpe!check_total_procs } define service{ use generic-service host_name remotehost service_description APACHE Processes check_command check_nrpe!check_http 192.168.1.95 } define service{ use generic-service host_name remotehost service_description SSH check_command check_nrpe!check_ssh 127.0.0.1 } 

和commands.cfg

 # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ } # 'check_ssh' command definition define command{ command_name check_ssh command_line $USER1$/check_ssh $ARG1$ $HOSTADDRESS$ } 

进程命令已经在远程主机上工作正常。

我自己添加了http和ssh命令,但是我不知道如何使用它

对于过程,我可以理解,w 20意味着超过20的过程的警告,但我怎样才能使用w,c为http和ssh。 我很困惑,因为没有与之相关的数字。

我也可以在哪里inputIP地址,而使用HTTP和SSH,因为与上述数据我的HTTP作品的命中和跟踪,但嘘不工作。 它说使用正确

看看check_http和check_ssh的手册页。 这两个检查通常直接从nagios服务器运行,而不是与NRPE一起使用(有例外情况)。

警告和临界阈值与响应时间有关。 您也可以修改哪些http响应代码可以接受。

http://nagiosplugins.org/man/check_http http://nagiosplugins.org/man/check_ssh

请重新提出您的第二个问题,因为目前没有任何意义。 希望这可以帮助

从另一台机器执行监视是明智的。 如果您的一台机器上的networking丢失,您的主站点不仅会closures,而且您的警告系统也会closures,而您将不知情。