Handler configuration to call a script
Posted: Thu Nov 24, 2016 5:00 am
Hi Team,
We want to trigger a handler whenever a critical alert is triggered from Nagios. This handler will call a script and output will display some macro values. we are trying to display contact email to whom the alert is sent from Nagios . We are using CONTACTEMAIL macro but it is displaying hostname.
Kindly let us know which macro need to be used and how it can be passed to a shell script using handler.
We want to trigger a handler whenever a critical alert is triggered from Nagios. This handler will call a script and output will display some macro values. we are trying to display contact email to whom the alert is sent from Nagios . We are using CONTACTEMAIL macro but it is displaying hostname.
Kindly let us know which macro need to be used and how it can be passed to a shell script using handler.