错误:Nagios / Icinga(Debian Squeeze) - NRPE:命令'check_procs'未定义
您使用Nagios或Icinga监视远程服务器,并在Nagios / Icinga Web界面中查看以下错误:
NRPE: Command 'check_all_disks' not defined
NRPE: Command 'check_mysql_cmdlinecred' not defined
NRPE: Command 'check_procs' not defined
解
在远程Nagios NRPE服务器上打开/etc/nagios/nrpe.cfg
...
vi /etc/nagios/nrpe.cfg
...并为每个提供的服务检查添加命令定义和错误(例如check_procs
):
[...] command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 250 -c 400 command[check_all_disks]=/usr/lib/nagios/plugins/check_disk -w '20%' -c '10%' -e command[check_mysql_cmdlinecred]=/usr/lib/nagios/plugins/check_mysql -H localhost -u 'nagios' -p 'youcl' [...] |
保存文件并重新启动NRPE服务器:
/etc/init.d/nagios-nrpe-server restart