Server/Router with more than 1 interface

Hugo van der Kooij hvdkooij at vanderkooij.org
Tue Dec 19 15:01:09 CET 2006


On Tue, 19 Dec 2006, Herman (ISTD) wrote:

> I have some servers and routers that have more than 1 interface, and
> each interface has IP Address. I would like define a host is alive if
> all of its interface ip address are available via check_ping.
>
> So I define as following, but if I shut down the interface with ip
> 10.254.8.2. Nagios still think the host as alive, since Nagios just
> detect the IP 10.16.20.120 as the indicator of the host. Any workaround
> to make Nagios aware of both IP Addresses/IP Address ? Any suggestion
> will be highly appreciated.

This is one of those rare cases where host dependencies may come into 
play.

But I would add the interfaces as PING service to the host or use SNMP to 
check the real interface status. Something like:

# 'check_snmp_int' command definition define command{
         command_name    check_snmp_int
         command_line    $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG1$ -n $ARG2$
         }

Getting the proper interface names can be a daunting task with some 
routers.

Hugo.

-- 
 	hvdkooij at vanderkooij.org	http://hvdkooij.xs4all.nl/
 	    This message is using 100% recycled electrons.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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