Re: [Nagios-users] Server/Router with more than 1 interface
On Wed, 20 Dec 2006, Herman (ISTD) wrote: > Hi Hugo, thank you very much for your suggestion. > > Currently, I do the same thing with : > > define command{ >command_namecheck_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 ? Be creative. Make dummy hosts using snmp as host check and base your topology (parent) on that. Nagios --> router --> link --> router --> host To which router interface you need to assign this dummy link host is left as an exercise for the reader. Hugo. -- [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. A: Yes. >Q: Are you sure? >>A: Because it reverses the logical flow of conversation. >>>Q: Why is top posting frowned upon? - 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
Re: [Nagios-users] Server/Router with more than 1 interface
Hi Hugo, thank you very much for your suggestion. Currently, I do the same thing with : define command{ command_namecheck_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_namecheck_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
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_namecheck_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=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
[Nagios-users] Server/Router with more than 1 interface
Dear all, 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. Thank you. define host{ use generic-host; Name of host template to use host_name NAS-TMMIN-HO alias FTP Server address 10.16.20.120,10.254.8.2 parents HO_Core_SW max_check_attempts 2 check_command check-host-alive contact_groups admins notification_interval 120 notification_optionsd,u,r notification_period 24x7 flap_detection_enabled 1 } - 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