Multiple interfaces

Phil Dibowitz phil at usc.edu
Sat Jul 31 03:52:28 CEST 2004


On Fri, Jul 30, 2004 at 09:17:15PM -0400, Michael W. Oliver wrote:
> On 2004-07-30T15:12:31-0700, Phil Dibowitz wrote:
> > So,
> > 
> > I wanted to configure multiple interfaces for hosts, and the FAQ says it is
> > possible here:
> > 
> > http://www.nagios.org/faqs/viewfaq.php?faq_id=146&expand=false&showdesc=false
> 
> So, if I understand the description on that page, you could define a
> host something like this...
> 
> define host{
> 	host_name	router1.example.com
> 	alias		Router #1
> 	address		fa0-0,192.168.1.1,fa0-1,192.168.2.1
> 	check_command	check-router-interfaces
> 	}
> 
> So, the whole address string would get passed to the plug-in via the
> $HOSTADDRESS$ macro.
> 
> Then, for the `check-router-interfaces` plug-in, you split the
> $HOSTADDRESS$ into pairs... interface name and IP address.  If all
> interfaces are reachable and reply to the query (ping, for example),
> then the host is 'OK'.  If all are down, then the host status is
> 'CRITICAL'.  If one or more, but less than all, are down, then it is
> 'WARNING'.
> 
> This is interesting, as I have up until now been using individual host
> entries for each interface that I want to monitor
> (fa0-0.router1.example.com, fa0-1.router1.example.com, etc.) and this
> seems like it might be... better?
> 
> Hmm... wouldn't this also work for service checks?
> 
> Or, did I totally miss the point the OP was trying to make?  :)

No, that was exactly my point, except that the FAQ doesn't use pairs, it
just uses addresses:
	address	192.168.1.1,192.168.2.1

But none of the plugins I tried support that syntax.


-- 
Phil Dibowitz
Systems Architect and Administrator
Enterprise Infrastructure / ISD / USC
UCC 174 - 213-821-5427

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040730/70d2ec1c/attachment.sig>


More information about the Users mailing list