Hi Hugo, thank you very much for your suggestion. Currently, I do the same thing with :
define command{ command_name check_interface command_line $USER1$/check_snmp_cisco_ifstatus -H $HOSTADDRESS$ -C $ARG1$ -i $ARG2$ } However, is it possible to change HOST status in Status Map to "DOWN" if one of the ip address could not be contacted ? Best Regards, Herman > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Hugo van der Kooij > Sent: Tuesday, December 19, 2006 9:01 PM > To: Nagios Users mailinglist > Subject: Re: [Nagios-users] Server/Router with more than 1 interface > > 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. > > -- > [EMAIL PROTECTED] 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=DEVDE V > _______________________________________________ > Nagios-users mailing list > Nagios-users@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 ------------------------------------------------------------------------- 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@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