Multiple hostnames in host_name

Marc Powell marc at ena.com
Tue Aug 8 17:47:03 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Fridtjof Busse
> Sent: Tuesday, August 08, 2006 8:16 AM
> To: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Multiple hostnames in host_name
> 
> * Hari Sekhon <hpsekhon at googlemail.com>:
> > > Well, stuff like $USER2$ does not work for me and the docs don't
> > > mention such a setup (or I didn't find it yet).
> > >
> > >
> > did you put the $USERn$ definition in a resource file and source it
> > via nagios.cfg as follows:
> >
> > resource_file=/path/to/usermacros.cfg
> 
> Yes and I get:
> Error: Could not find any host matching '$USER2$'
> 
> $USER1$ (path to my plugin-dir) works fine, but the service-definition
> doesn't seem to handle $USER?$.

No, all $MACROS$ are only valid in command{} definitions. You can't use
them in service{} definitions.

http://nagios.sourceforge.net/docs/2_0/macros.html

--
Marc

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&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