Search found 5 matches

by vos
Wed Mar 30, 2016 6:15 pm
Forum: Open Source Nagios Projects
Topic: [CLOSED] Event handler troubles
Replies: 6
Views: 1903

Re: Event handler troubles

Figured it out :roll: I was not using max attempts properly with the script, I needed to adjust to max attempts in generic service to 4 so it sent the SOFT 3 and HARD 4. I swear I tried that earlier but I guess not. Hopefully this might help someone later on.
by vos
Wed Mar 30, 2016 5:10 pm
Forum: Open Source Nagios Projects
Topic: [CLOSED] Event handler troubles
Replies: 6
Views: 1903

Re: Event handler troubles

restarting-services.sh ls -la /etc/nagios/conf.d/ total 8 drwxr-xr-x 2 nagios nagios 35 Mar 30 17:58 . drwxr-xr-x 7 root root 4096 Mar 30 13:26 .. -rwxr-xr-x 1 nagios nagios 2866 Mar 30 17:58 restarting-services.sh I ran the above script manually as both root and as the nagios user here is output as...
by vos
Wed Mar 30, 2016 4:46 pm
Forum: Open Source Nagios Projects
Topic: [CLOSED] Event handler troubles
Replies: 6
Views: 1903

Re: Event handler troubles

My generic service is setup for 3 max checks. Not sure what I am not grokking properly.
by vos
Wed Mar 30, 2016 4:17 pm
Forum: Open Source Nagios Projects
Topic: [CLOSED] Event handler troubles
Replies: 6
Views: 1903

Re: Event handler troubles

Its looking like its never sending a SOFT 3 or a HARD 4 [Wed Mar 30 17:00:36 2016] SERVICE ALERT: MyServer.com;Check salt is alive;OK;HARD;3;PROCS OK: 1 process with command name 'salt' [Wed Mar 30 17:00:36 2016] SERVICE EVENT HANDLER: MyServer.com;Check salt is alive;OK;HARD;3;restart-service!salt ...
by vos
Wed Mar 30, 2016 12:52 pm
Forum: Open Source Nagios Projects
Topic: [CLOSED] Event handler troubles
Replies: 6
Views: 1903

[CLOSED] Event handler troubles

So I am trying to get event handlers to work on a remote service, when I manually run my event handler script it restarts the service fine. But when setup in nagios it does not trigger it. I have checked perms and so on and running out of ideas as to what I am missing here. Event handler script in /...