Page 1 of 1

Execution script with NRPE.

Posted: Mon Aug 01, 2016 7:05 am
by ednaldojta
Good morning friends, I wonder if there is a possibility I run a script with the agent of NRPE and NSClient?
If so, how do this. I already have the agents installed on the machines to be monitored. I want to run the script that Econtra the servers.

What is the syntax? Thank you very much in advance.

Re: Execution script with NRPE.

Posted: Mon Aug 01, 2016 10:24 am
by bwallace
It sounds like you're talking about what we refer to as 'Event Handlers" ----
Event handlers are optional system commands (scripts or executables) that are run when a host or service state change occurs. These
commands include, but are not limited to, restarting services, parsing logs, checking other host or service states, making database
calls, etc. The possibilities are near limitless. Essentially, through event handlers, Nagios XI is capable of running any operation that
can be performed from the command line with the added ability of utilizing macros passed by Nagios XI.
This doc covers everything:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Let us know if this is what you're looking for, thanks.