how to customize which macros get sent with service event handlers?

prosolutions at gmx.net prosolutions at gmx.net
Tue Mar 7 19:22:11 CET 2006


According to http://nagios.sourceforge.net/docs/2_0/eventhandlers.html:

"In most cases, event handler commands will be shell or perl scripts. At
a minimum, the scripts should take the following macros as arguments: 

Service event handler macros: $SERVICESTATE$, $SERVICESTATETYPE$,
$SERVICEATTEMPT$"


I have created a simple external command triggerend by a service event
handler that just echoes $@ to a temp file and can verify that it does provide these three macros to the external command.  But I want/need to provide other macros (such as $HOSTNAME$) to my external command.  I'm am not sure how this is done - am not finding anything in the docs which mentions how to do this.  Is there some config option where which macros are sent by an event handler can be defined?



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list