<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>RE: [Nagios-users] Multiple hostnames in host_name</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>There's another, arguably better way to do it under Nagios 2.x.<BR>
<BR>
Use hostgroups.  Specify the service as applying to all hosts in a hostgroup, then add each new host to the appropriate group(s).<BR>
<BR>
-John<BR>
<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: nagios-users-bounces@lists.sourceforge.net on behalf of Hari Sekhon<BR>
Sent: Tue 8/8/2006 8:33 AM<BR>
To: Fridtjof Busse<BR>
Cc: nagios-users@lists.sourceforge.net<BR>
Subject: Re: [Nagios-users] Multiple hostnames in host_name<BR>
<BR>
Fridtjof Busse wrote:<BR>
> Hi<BR>
> Is there any way to define the hosts for "host_name" in the<BR>
> service-definition as a list?<BR>
> I want to be able to add a hostname to a list (e.g. a macro in<BR>
> resource.cfg) and every service-definition automagically (after a<BR>
> reload) gets the new hostname, without me having to add it to tons of<BR>
> definitions.<BR>
> Any way to do that?<BR>
><BR>
>  <BR>
yes, the service definitions can definitely take a list like<BR>
<BR>
host_name   host1,host2,host3...<BR>
<BR>
Not sure about the macros, check the docs that come with nagios since<BR>
they do mention quite a bit about this. It is likely you can define your<BR>
own $MACROS$ as you want and have all the services update just be<BR>
restarting the daemon.<BR>
<BR>
-h<BR>
<BR>
<BR>
-------------------------------------------------------------------------<BR>
Using Tomcat but need to do more? Need to support web services, security?<BR>
Get stuff done quickly with pre-integrated technology to make your job easier<BR>
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo<BR>
<A HREF="http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642">http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642</A><BR>
_______________________________________________<BR>
Nagios-users mailing list<BR>
Nagios-users@lists.sourceforge.net<BR>
<A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A><BR>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<BR>
::: Messages without supporting info will risk being sent to /dev/null<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>