And yes I have enabled the Global event Handler (However Notifications are Disabled)
Code: Select all
/usr/local/nagios/local/EventHandlers/Service.sh "%host%" "%service%"Code: Select all
# cat /usr/local/nagios/local/EventHandlers/Service.sh
#!/bin/sh
# Parameters passed by Nagios
# %host%
# %service%
host=${1}
service=${2}
DATE=`/bin/date`
echo $DATE,$host,$service >> /var/log/events/service-event.txtI can run the command manually and it works fine
Code: Select all
su - nagios -c "/usr/local/nagios/local/EventHandlers/Service.sh HOST-1 SERVICE-A"
# cat /var/log/events/service-event.txt
Wed Nov 11 16:48:47 WST 2015,HOST-1,SERVICE-A
Any ideas .... Fred