Search found 5 matches

by mzakk
Sat Sep 03, 2016 7:03 am
Forum: Open Source Nagios Projects
Topic: Problem with enabling event handlers for restarting service
Replies: 8
Views: 2434

Re: Problem with enabling event handlers for restarting serv

Thanks for the reply, this is how /usr/local/nagios/var/objects.cache looks: ######################################## # NAGIOS OBJECT CACHE FILE # # THIS FILE IS AUTOMATICALLY GENERATED # BY NAGIOS. DO NOT MODIFY THIS FILE! # # Created: Fri Sep 2 10:23:04 2016 #######################################...
by mzakk
Fri Sep 02, 2016 3:51 am
Forum: Open Source Nagios Projects
Topic: Problem with enabling event handlers for restarting service
Replies: 8
Views: 2434

Re: Problem with enabling event handlers for restarting serv

Does anybody have any ideas how can I debug the event handler command in Nagios? Below is the output from Nagios logs. Nagios is reporting correctly whe the application is running and is reporting correctly when the applications is stopping, although is not doing anything on on event handler command...
by mzakk
Thu Sep 01, 2016 5:21 pm
Forum: Open Source Nagios Projects
Topic: Problem with enabling event handlers for restarting service
Replies: 8
Views: 2434

Re: Problem with enabling event handlers for restarting serv

Hi, Thanks again for the response I did the script as you suggested and the scripts are executable by nagios when doing: su nagios /usr/local/nagios/libexec/eventhandlers/restart-services.sh /root/scripts/disableServer.sh The response is written to the file as expected. The problem is that Nagios is...
by mzakk
Thu Sep 01, 2016 4:48 pm
Forum: Open Source Nagios Projects
Topic: Problem with enabling event handlers for restarting service
Replies: 8
Views: 2434

Re: Problem with enabling event handlers for restarting serv

Thanks for the reply, The problem I have is that the event_handler command is doing nothing #!/bin/bash echo "Test" >> /tmp/testeventhandlers.txt I can stop the application the Nagios check command is detecting that the applicatios is down, but Nagios is not executing the event handler com...
by mzakk
Thu Sep 01, 2016 4:51 am
Forum: Open Source Nagios Projects
Topic: Problem with enabling event handlers for restarting service
Replies: 8
Views: 2434

Problem with enabling event handlers for restarting service

Hello, I installed Nagios, and I would like to use the event handler to restart a failed service, although I am finding this difficutl to make the event handler working. The event handler is not executing the script I want. Could anybody help me and tell me what is wrong with my set up? I will reall...