Execute Script/Program at each and every alert

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Execute Script/Program at each and every alert

Postby amitgupta19 » Mon Aug 12, 2019 10:44 am

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.
amitgupta19
 
Posts: 180
Joined: Fri Sep 08, 2017 5:53 am

Re: Execute Script/Program at each and every alert

Postby scottwilkerson » Mon Aug 12, 2019 10:55 am

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/nagioscore/docs/nagioscore/4/en/eventhandlers.html
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15728
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 20 guests