per host custom macros

Terry td3201 at gmail.com
Wed Mar 29 18:54:48 CEST 2006


You could maybe write an "intelligent" plugin to query the host
information from another source based on the service name or something
but nagios needs to know the IP address somehow.  Where would you want
to put this information so nagios can perform the service
appropriately?

On 3/29/06, David Mansfield <nagios at dm.cobite.com> wrote:
>
> 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&kid0944&bid$1720&dat1642
_______________________________________________
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