Execution script with NRPE.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ednaldojta
Posts: 103
Joined: Tue Apr 07, 2015 7:52 am

Execution script with NRPE.

Post 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.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Execution script with NRPE.

Post 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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked