Nested (on demand)macros

Simon Kainz simon.kainz at tugraz.at
Mon Jan 11 13:03:40 CET 2010


Hi list!

I#M using Nagios 2.9  and have the following question:

I'm trying to save some typing and to prettyfy my config files, so i
came up with the following:


check_command
check-host-adaptive!$SERVICESTATEID:$HOSTNAME$:conn$!$SERVICEATTEMPT:$HOSTNAME$:conn$


This should run check-host-adaptive with the state id (Ok, warn, crit)
of the plugin conn on the current host (as defines by $HOSTNAME$), the
same holds for the serviceattempts. But Nagios presents me the verbose
text "$SERVICESTATEID:$HOSTNAME$:conn$" instead of the values i want to see.

Any ideas ?

Regards,

-- 
DI Simon Kainz
Graz, University of Technology
Department Computing
Phone: ++43 (0) 316 / 873 6885

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100111/412ec08f/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
-------------- next part --------------
_______________________________________________
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