Multiple interfaces

Michael W. Oliver michael at gargantuan.com
Sat Jul 31 03:17:15 CEST 2004


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?  :)

-- 
Mike
perl -e 'print unpack("u","88V]N=&%C=\"!I;F9O(&EN(&AE861E<G,*");'




-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
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