per host custom macros

David Mansfield nagios at dm.cobite.com
Wed Mar 29 18:19:32 CEST 2006



Ben O'Hara wrote:
> Create check called check_dns_cache in checkcommands.cfg calling 
> check_dns or whatever you are using and use $ARG1$ as a macro thats 
> passed to it.
> 
> In services.cfg you define the check as
> 
> check_command    check_dns_cache!1.2.3.4
> 

I see that possibility, but it seems really inconvenient to have to 
configure host specific information in the service definition.  There 
are two reasons for that:

1) host specific information is 'spammed' around my config
2) i have to define one 'service' object for every host i want to check, 
instead of being able to use a 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