Windows service restart using Nagios XI event handler

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Windows service restart using Nagios XI event handler

Post 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.
Thanks & Regards,
I2MP Team.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Windows service restart using Nagios XI event handler

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked