I have a following issue with Nagios. Here is my command definition:
and service definition
use mypc service_description dlg_Alerts_notifications check_command dlg_notifications max_check_attempts 1 retain_status_information 0 retain_nonstatus_information 0 }
/bin/bash /usr/local/nagios/libexec/nagios-msg-broker.sh runs fine manually.
I can run this script manually, but service defined above can’t run it. Here are the ownership/permissions of the script:
perfserver-10:/usr/local/nagios/libexec$ ls -l nagios-msg-broker.sh -rwxrwxrwx 1 nagios nagcmd 149 Mar 30 10:04 nagios-msg-broker.sh
asked 30 Mar '12, 14:23
Have you tried running this as the same user that nagios runs as? Perhaps that user doesn't have a shell defined?
answered 16 Apr '12, 12:32