Re: Event Handlers Do Not Execute
Posted: Tue Oct 18, 2016 2:38 am
Hitgriep wrote:Try increasing max_check_attempts for those services to 3 and see if that works for you.
Code: Select all
[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: Dave-Test-Server;AH-HTTPD-SERVICE;CRITICAL;SOFT;1;httpd is stopped
[1476776023] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;Dave-Test-Server;AH-HTTPD-SERVICE;1476775959
[1476776047] SERVICE ALERT: Dave-Test-Server;AH-HTTPD-SERVICE;CRITICAL;SOFT;2;httpd is stopped
[1476776053] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;Dave-Test-Server;AH-HTTPD-SERVICE;1476775989
[1476776077] SERVICE ALERT: Dave-Test-Server;AH-HTTPD-SERVICE;CRITICAL;HARD;3;httpd is stopped
[1476776077] SERVICE NOTIFICATION: ServerLogs;Dave-Test-Server;AH-HTTPD-SERVICE;CRITICAL;notify-service-by-email;httpd is stoppedOne thing I did notice, even though in every config file, event handlers are enabled, det to 1, true, whatever you want to term it. They are ON. But in the Nagios Core GUI, it states Event Handlers Enabled? No. (see attached screen cap). This is the first time I've noticed it say that. I'm going to assume this is related. Is there a reason why its not adopting the...
Code: Select all
# EVENT HANDLER USE OPTION
# This determines whether or not Nagios will run any host or
# service event handlers when it is initially (re)started. Unless
# you're implementing redundant hosts, leave this option enabled.
# Values: 1 = enable event handlers, 0 = disable event handlers
enable_event_handlers=1