Page 1 of 1

Handler configuration to call a script

Posted: Thu Nov 24, 2016 5:00 am
by RIDS_I2MP
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.

Re: Handler configuration to call a script

Posted: Mon Nov 28, 2016 10:17 am
by rkennedy
Can you show us the script you're using along with the event handler? I cannot think of a reason on why $CONTACTEMAIL$ would render the $HOSTNAME$ except for variables being passed improperly.