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
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
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
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
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
* 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
* "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
> -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
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
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.
-
10 matches
Mail list logo