Multiple hostnames in host_name

Shlomo Dubrowin shlomo at dubrowin.org
Tue Aug 8 14:51:20 CEST 2006


This works in Nagios 1.x too.

  Shlomo

On 8/8/06, John Daily <jdaily at apparatus.net> 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 each new host to the appropriate group(s).
>
>  -John
>
>
>
>
>  -----Original Message-----
>  From: nagios-users-bounces at lists.sourceforge.net on behalf
> of Hari Sekhon
>  Sent: Tue 8/8/2006 8:33 AM
>  To: Fridtjof Busse
>  Cc: nagios-users at lists.sourceforge.net
>  Subject: Re: [Nagios-users] Multiple hostnames in host_name
>
>  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 having to add it to tons of
>  > definitions.
>  > Any way to do that?
>  >
>  >
>  yes, the service definitions can definitely take a list like
>
>  host_name   host1,host2,host3...
>
>  Not sure about the macros, check the docs that come with nagios since
>  they do mention quite a bit about this. It is likely you can define your
>  own $MACROS$ as you want and have all the services update just be
>  restarting the daemon.
>
>  -h
>
>
> -------------------------------------------------------------------------
>  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
>
>
>
> -------------------------------------------------------------------------
> 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
>
>


-- 
-----------------------------------------------------------------------
  ,-~~-.___.    ._.
 / |  '     \   | |"""""""""|           Shlomo Dubrowin
(  )         0  | |         |             (Sheldon)
 \_/-, ,----'   | |         |
    ====        !_!--v---v--"
    /  \-'~;      |""""""""|            shlomo at dubrowin.org
   /  __/~| ._-""||        |          http://www.dubrowin.org
 =(  _____|_|____||________|
-----------------------------------------------------------------------

-------------------------------------------------------------------------
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