Page 1 of 1

NagiosXI executes a PS-script on the host on WARN/CRIT-Event

Posted: Mon May 27, 2019 4:53 am
by nagchef
Hello guys,

is this possible:
When a service-check result is WARNING or CRITICAL, then Nagios XI should automatically start a powershell-script (maybe through NCPA Agent) on the host, where the problem occurs, to solve the problem.
(the PS-script contains a command to restart an windows service)

In the best case is the problem solved and i don't need to do it manual.

Thank you!

Re: NagiosXI executes a PS-script on the host on WARN/CRIT-E

Posted: Tue May 28, 2019 12:44 pm
by npolovenko
Hello, @nagchef. That is possible with the help of event handlers. Please take a look at this article first:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

And then check the section called "Event Handler Script Use Case Example".

Re: NagiosXI executes a PS-script on the host on WARN/CRIT-E

Posted: Mon Jun 03, 2019 3:11 am
by nagchef
Thank you @npolovenko

Can be closed!

Re: NagiosXI executes a PS-script on the host on WARN/CRIT-E

Posted: Mon Jun 03, 2019 7:06 am
by scottwilkerson
nagchef wrote:Thank you @npolovenko

Can be closed!
Great!

Locking