Page 3 of 3
Re: event handler
Posted: Tue Apr 22, 2014 4:39 pm
by vvz
file test.txt was not created, so no output. If you have a look at my script I've already tried to debug this way, there is touch command in case "$3". That's the reason my saying that script is not called at all from commands.cfg
Re: event handler
Posted: Tue Apr 22, 2014 4:49 pm
by abrist
Ahh. It will only run the event handler on state change (or on every check if volatility is set). Is the host changing HARD states?
Re: event handler
Posted: Tue Apr 22, 2014 4:58 pm
by vvz
I run event handler script on DOWN SOFT 3, yes it's changing to HARD on next check and I get email
Re: event handler
Posted: Wed Apr 23, 2014 10:00 am
by abrist
Yeah, it looks like the event handler does run:
HOST EVENT HANDLER: test-condor-site;DOWN;HARD;4;asteriks-host-phone-call
But neither the touched file nor the txt file are created, is that correct?
Re: event handler
Posted: Thu Apr 24, 2014 1:38 pm
by vvz
I've solved the problem. It was completely my fault with configs.
Nagios is great!!!!
Thank you for your help, I really appreciate it.