per host custom macros

David Mansfield nagios at dm.cobite.com
Wed Mar 29 18:22:38 CEST 2006


Terry wrote:
> You can specify custom macros in resources.cfg:
> 
> $USER2$="192.168.0.30"

> 
> However, this is not what you want and is no different than specifying
> it in the command itself with $ARG#$ rather than using the

Right. This is useful for a global macro, but I'm looking for something 
host specific.

> $hostaddress$.  Pass the dnscacheaddress onto the command via the
> argument.
> 
> check_dnscache -H $ARG1$
> 
> service foo {
> check_command  check_dnscache!192.168.0.1
> ....
> 
> 

See my other reply where I have two strong arguments against doing it 
this way (to summarize: host information in multiple places, one service 
for each host instead of hostgroup).


David


-------------------------------------------------------
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