Page 2 of 2

Re: Windows service restart using Nagios XI event handler

Posted: Wed Sep 04, 2019 2:20 am
by RIDS_I2MP
Hi,

PFA the profile file.


Moderator's Note: The profile has been shared with the support team but has been removed from the public forum.

Re: Windows service restart using Nagios XI event handler

Posted: Wed Sep 04, 2019 10:56 am
by benjaminsmith
Hello @RIDS_I2MP,

Thank your for sending over the system profile. Looking over the configurations, you have the event handler assigned to the Windows Time service and Windows Update service ( host: EU2NAPW446). However, there's not a corresponding log entry for those services going into a HARD critical state that would fire the event handlers. As mentioned, you can force this by sending passive checks (see earlier post).

You should find an entry in the /usr/local/nagios/var/nagios.log similar to this to call the event handler.
SERVICE ALERT: localhost;Current Load;CRITICAL;HARD;4;test
SERVICE NOTIFICATION: nagiosadmin;localhost;Current Load;CRITICAL;xi_service_notification_handler;test
Also, I noticed there's entries for crashed database tables in the profile. Log in as root to the terminal and run the database repair script:

Code: Select all

/usr/local/nagiosxi/scripts/repair_databases.sh
See: Repairing The Nagios XI Databases