Nagios主管状态检查

时间:2016-08-22 07:34:34

标签: nagios

我想通过nagios检查我的supervisord状态。我有2个服务器1个nagios,其他是客户端服务器。在我的客户端服务器主管正在运行。   我把check_supervisord.py文件放在我的/ usr / local / nagios / libexec路径&在我的services.cfg文件中:

   define service {
   use generic-service
   host_name ubuntuserver
   service_description supervisord
   check_command check_supervisord!80!hduser!password
                  }

但它显示我缺少插件错误,

enter image description here

1 个答案:

答案 0 :(得分:1)

由于您的其他插件已成功运行,我猜这是一个权限问题。

cd /usr/local/nagios/libexec
chmod 755 check_supervisord.py
chown root:nagios check_supervisord.py

试一试,看看该插件是否有效。如果这不起作用,请尝试查看在脚本中运行权限supervisord或将脚本权限与在系统上运行的其他插件进行比较。

相关问题