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.
Execute Script/Program at each and every alert
-
- Posts: 286
- Joined: Fri Sep 08, 2017 5:53 am
-
- 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
There are 2 directives you can enable in the nagios.cfg that you can enable that will run a nagios command object you specify
See details here
https://assets.nagios.com/downloads/nag ... dlers.html
Code: Select all
global_host_event_handler=
global_service_event_handler=
https://assets.nagios.com/downloads/nag ... dlers.html