【发布时间】:2012-12-10 04:29:55
【问题描述】:
在我的nrpe_local.cfg 中添加了以下命令:
command[check_mycommand]=/usr/lib/nagios/plugins/check_command 30 35
然后重新启动 nrpe 守护进程。
当我使用 nrpe 执行此命令时,出现以下错误:
NRPE: Command 'check_mycommand' not defined
我使用以下命令执行:
/usr/lib/nagios/plugins/check_nrpe -H hostname -c check_mycommand
我无法得到任何线索。
在我的nrpe_local.cfg 中,又添加了 10 条命令,它们运行正常。
【问题讨论】: