[Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Fridtjof Busse
Hi Is there any way to define the hosts for "host_name" in the service-definition as a list? I want to be able to add a hostname to a list (e.g. a macro in resource.cfg) and every service-definition automagically (after a reload) gets the new hostname, without me having to add it to tons of definit

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Hari Sekhon
Fridtjof Busse wrote: > Hi > Is there any way to define the hosts for "host_name" in the > service-definition as a list? > I want to be able to add a hostname to a list (e.g. a macro in > resource.cfg) and every service-definition automagically (after a > reload) gets the new hostname, without me h

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread John Daily
Title: RE: [Nagios-users] Multiple hostnames in host_name There's another, arguably better way to do it under Nagios 2.x. Use hostgroups.  Specify the service as applying to all hosts in a hostgroup, then add each new host to the appropriate group(s). -John -Original Me

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Shlomo Dubrowin
host to the appropriate group(s). > > -John > > > > > -Original Message- > From: [EMAIL PROTECTED] on behalf > of Hari Sekhon > Sent: Tue 8/8/2006 8:33 AM > To: Fridtjof Busse > Cc: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-us

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Hari Sekhon
Fridtjof Busse wrote: * Hari Sekhon <[EMAIL PROTECTED]>: yes, the service definitions can definitely take a list like host_name host1,host2,host3... That's what I'm currently doing. Not sure about the macros, check the docs that come with nagios since th

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Fridtjof Busse
* Hari Sekhon <[EMAIL PROTECTED]>: > > 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/userm

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Fridtjof Busse
* "John Daily" <[EMAIL PROTECTED]>: > There's another, arguably better way to do it under Nagios 2.x. > > Use hostgroups. Specify the service as applying to all hosts in a > hostgroup, then add each new host to the appropriate group(s). Thanks for the hint, I'll look into it. Although I'd prefer

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Marc Powell
> -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Fridtjof Busse > Sent: Tuesday, August 08, 2006 8:16 AM > To: nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] Multiple hostnames in host_name > &g

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Jim Richardson
On 8/8/06, Shlomo Dubrowin <[EMAIL PROTECTED]> wrote: This works in Nagios 1.x too.  ShlomoOn 8/8/06, John Daily <[EMAIL PROTECTED]> wrote: There's another, arguably better way to do it under Nagios 2.x.>>  Use hostgroups.  Specify the service as applying to all hosts in a> hostgroup, then add

Re: [Nagios-users] Multiple hostnames in host_name

2006-08-08 Thread Patrick Morris
On Tue, 08 Aug 2006, Jim Richardson wrote: > On that note, is there a way in a service definition to specify a > hostgroup, excluding some specific members of that host group? something > like > > define service { > hostgroup_name foo!bar > > } See use_regexp_matching in the docs. -