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.
Handler configuration to call a script
Handler configuration to call a script
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Handler configuration to call a script
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.
Former Nagios Employee