Open SvenJ31 opened 9 years ago
Server 1 (with supervisord): root@server1: supervisorctl status cwmp RUNNING pid 1684, uptime 12 days, 0:43:19
root@server1: /usr/lib/nagios/plugins/check_supv.py -p cwmp cwmp RUNNING pid 1684, uptime 12 days, 0:45:48
So this works.
Server 1 nrpe.cfg:
command[check_cwmp]=/usr/lib/nagios/plugins/check_supv.py -p cwmp
Server 2 (Nagios Host): Hostgroup .cfg file
define service{ use generic-service host_name 'hostname' service_description CWMP check_command check_nrpe!check_cwmp }
Nagios error: CRITICAL: Could not get status of cwmp
Other services like check_nrpe!check_load are working perfectly except this plugin, could u please help?
Fixed this with @SvenJ31, problem was that the nagios plugin is running under the nagios user while supervisord was running under root, so it had no permissions to open the status file.
Server 1 (with supervisord): root@server1: supervisorctl status cwmp RUNNING pid 1684, uptime 12 days, 0:43:19
root@server1: /usr/lib/nagios/plugins/check_supv.py -p cwmp cwmp RUNNING pid 1684, uptime 12 days, 0:45:48
So this works.
Server 1 nrpe.cfg:
command[check_cwmp]=/usr/lib/nagios/plugins/check_supv.py -p cwmp
Server 2 (Nagios Host): Hostgroup .cfg file
define service{ use generic-service host_name 'hostname' service_description CWMP check_command check_nrpe!check_cwmp }
Nagios error: CRITICAL: Could not get status of cwmp
Other services like check_nrpe!check_load are working perfectly except this plugin, could u please help?