Handler configuration to call a script

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Handler configuration to call a script

Post 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.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Handler configuration to call a script

Post 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.
Former Nagios Employee
Locked