Execute Script/Program at each and every alert

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
amitgupta19
Posts: 286
Joined: Fri Sep 08, 2017 5:53 am

Execute Script/Program at each and every alert

Post by amitgupta19 »

I have script and Program which will contain the read only api of the nagios.

How to invoke the script/program along with each alert.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Execute Script/Program at each and every alert

Post by scottwilkerson »

There are 2 directives you can enable in the nagios.cfg that you can enable that will run a nagios command object you specify

Code: Select all

global_host_event_handler=
global_service_event_handler=
See details here
https://assets.nagios.com/downloads/nag ... dlers.html
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked