> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Sekhar > Sent: Tuesday, August 28, 2007 10:22 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Cisco Physical port status check using nagios > > Hi Guys, > > I have a request from my client to monitor cisco router or switch port > status if it is working or not using snmp and nagios. > > Is it possible or not?.How we can achive this.
check_ifoperstatus would be the way to go, IMHO. If you're monitoring a router with just a few interfaces, you can use it to look for the interface by name -- $ ./check_ifoperstatus -H <myrouter> -C <myreadcomm> -d GigabitEthernet1/2 OK: Interface GigabitEthernet1/2 (index 2) is up. If you're monitoring a router with lots of interfaces, a friendlier way of using check_ifoperstatus is to specify the index directly instead of trying to figure it out (the index is the important part). Note that possibility exists the index can change on router reboot. -- ./check_ifoperstatus -H <myrouter> -C <myreadcomm> -k 2 OK: Interface GigabitEthernet1/2 (index 2) is up. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ 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