Action based on Event Log monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vishal313
Posts: 50
Joined: Wed Dec 18, 2019 10:23 pm

Action based on Event Log monitoring

Post by vishal313 »

Hi,

We have Nagios XI 5.8.5 in our environment. We are monitoring multiple Windows servers using NCPA.
I wanted to know if Nagios XI can take any action based on a match found for Event Log monitoring service.

Requirement : If certain Event ID is found with unique severity and text content, can Nagios XI take an action of rebooting the server.
If yes, then what privileges are needed or what should be the way of configuring it.


Regards
Vishal Dhote
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Action based on Event Log monitoring

Post by gsmith »

Hi

I used this to restart a Windows service if it failed, it's pretty terse, please take a look
and ask any questions you have:
restart Windows ncpalistener service from XI-pages.pdf
The one caveat I have is that it looks you can perform a shutdown using
"net rpc shutdown" but I don't see an option via "net rpc" for a reboot.
You may have to create a .bat or a .ps1 script on the Windows machine that calls
out a reboot.

Thanks
You do not have the required permissions to view the files attached to this post.
Locked