Nagios Alerts Creation with Event Handlers
Posted: Wed Sep 07, 2016 5:18 am
Hi Team,
I am trying to fire an event handler by passing some Macros like Service Name and Host Name but when I am trying to fetch these macros in script, The service names are either coming blank or returning the HostNames itself. Can you pls assist me if I need to update any settings on the Nagios side. Please find the command below for event handler.
/home/Test/event_handler_test.sh $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $HOSTOUTPUT$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $SERVICENOTES$ $NOTIFICATIONTYPE$ $CONTACTEMAIL$ $HOSTGROUPNAMES$ $SERVICEGROUPNAMES$ $SERVICE$
I am trying to fire an event handler by passing some Macros like Service Name and Host Name but when I am trying to fetch these macros in script, The service names are either coming blank or returning the HostNames itself. Can you pls assist me if I need to update any settings on the Nagios side. Please find the command below for event handler.
/home/Test/event_handler_test.sh $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$ $HOSTOUTPUT$ $SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$ $SERVICENOTES$ $NOTIFICATIONTYPE$ $CONTACTEMAIL$ $HOSTGROUPNAMES$ $SERVICEGROUPNAMES$ $SERVICE$