Search found 9 matches

by dave@vooservers
Mon Nov 14, 2016 10:06 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Re: Event Handlers Do Not Execute

The Event Handler showing off in the GUI could be the issue. Can you login to the GUI and enable the Event Handlers and see if that makes them start to work? When you configure settings in the GUI, they get stored in a file called retention.dat file. When the Nagios daemon is restarted, it reads th...
by dave@vooservers
Tue Oct 18, 2016 2:38 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Re: Event Handlers Do Not Execute

Try increasing max_check_attempts for those services to 3 and see if that works for you. Hi :) [root@status ~]# tail -f /usr/local/nagios/var/nagios.log | grep Dave-Test [1476776011] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;Dave-Test-Server;AH-HTTPD-SERVICE;1476775946 [1476776017] SERVICE ALERT:...
by dave@vooservers
Mon Oct 17, 2016 5:37 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Re: Event Handlers Do Not Execute

The settings look like they should work. When you test the service check by stopping the service on the remote hist, does the service show a Hard Down State on the Nagios system? If so, that for sure run the event handler. One thing to try is to increase the check_interval to 2 minutes and see if t...
by dave@vooservers
Fri Oct 14, 2016 4:25 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Re: Event Handlers Do Not Execute

So far, everything looks like it should work. Can you open your objects.cache file and see if that service has that eventhandler enabled? The files default location is /usr/local/nagios/var/objects.cache Hi there, Apologies for the delay, I've been away for a while. Can we pick this back up? The re...
by dave@vooservers
Sat Oct 01, 2016 5:11 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Re: Event Handlers Do Not Execute

It could be the permission of the script, it needs to have the owner group set to nagios and executable. If that doesn't filx it, can you run the following and post it? ls -l /usr/local/nagios/libexec/servicerestart.sh Hi, thanks for the suggestion. The script is successfully run by the alarm conta...
by dave@vooservers
Fri Sep 30, 2016 6:07 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Re: Event Handlers Do Not Execute

Hi, thanks for the reply. The nagios.cfg file. I assume you were looking for: log_event_handlers=1 event_handler_timeout=30 enable_event_handlers=1 Global service and host event handlers are not configured/enabled. A test service (this was to monitor the status of the NTPd service and restart it if ...
by dave@vooservers
Thu Sep 29, 2016 6:53 am
Forum: Open Source Nagios Projects
Topic: Event Handlers Do Not Execute
Replies: 14
Views: 6820

Event Handlers Do Not Execute

Hi all, We are running: Nagios Core 3.5.1 NagiosQL 3.0.4 Recently we wanted to roll out some basic level Linux service restarts on HARD CRITICAL events of service checks etc.. For example, restarting httpd automatically when the service check goes HARD CRITICAL. Simple enough using Nagios Event Hand...
by dave@vooservers
Wed Apr 02, 2014 4:02 am
Forum: Open Source Nagios Projects
Topic: Plugin to grep command output - Not working with SSH
Replies: 2
Views: 4258

Re: Plugin to grep command output - Not working with SSH

Would I be correct in thinking your command looks something like: ./check_execgrep.pl --critical=[critical string] --warning=[warning string] --command=/bin/ssh --parameter=root@10.10.21.123 getdegradedvdisks Some basic questions to start off with. Have you been able to execute this on the remote s...
by dave@vooservers
Mon Mar 31, 2014 6:32 pm
Forum: Open Source Nagios Projects
Topic: Plugin to grep command output - Not working with SSH
Replies: 2
Views: 4258

Plugin to grep command output - Not working with SSH

Hi guys, Hope someone can help, so I don't know everything about linux systems, as I've only had to interact with them for this job, but I know enough to get by. Let me explain the scenario. We have come into a situation where we need to be able to monitor the states of degraded virtual disks within...