<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello all<br>
<br>
Was able to get the OID value through SNMPwalk.<br>
<br>
<br>
anibe@hawk # snmpwalk -v 1 -c public 196.2xxx.xxx.xxx | grep
iso.3.6.1.2.1.2.2.1.8.258<br>
<i><small>iso.3.6.1.2.1.2.2.1.8.258 = INTEGER: 2</small></i><br>
<br>
<br>
The Integer value 2 shows that ifOperStatus is down. i.e the port
is not operational. 1 shows it is up<br>
<br>
<br>
1 : up<br>
2 : down<br>
3 : testing<br>
4 : unknown<br>
5 : dormant<br>
6 : notPresent<br>
7 : lowerLayerDown<br>
<small><br>
Source
<a class="moz-txt-link-freetext" href="http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.2.1.2.2.1.8.&translate=Translate&submitValue=SUBMIT&submitClicked=true">http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=1.3.6.1.2.1.2.2.1.8.&translate=Translate&submitValue=SUBMIT&submitClicked=true</a></small><br>
<br>
<br>
All I have to do is implement a nagios plugin (check_snmp) to send
a notification if the integer value = 2<br>
<br>
<br>
<br>
Thanks <span class="modulecontentbold" style="color: rgb(0, 0,
0); font-family: arial, helvetica, sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: -webkit-left; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><br>
</span><br>
<pre class="moz-signature" cols="72">--
Anibe Onuche
Internet Exchange Point of Nigeria
Network /Communication Department</pre>
<span class="modulecontentbold" style="color: rgb(0, 0, 0);
font-family: arial, helvetica, sans-serif; font-size: 12px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; orphans: auto;
text-align: -webkit-left; text-indent: 0px; text-transform:
none; white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);"><br>
<br>
<br>
</span><br>
On 11/12/2013 8:36 PM, Keshwarsingh Nadan wrote:<br>
</div>
<blockquote
cite="mid:1bbe99f6e254440384de56cac2a82edf@DBXPR04MB207.eurprd04.prod.outlook.com"
type="cite">
<pre wrap="">See this
<a class="moz-txt-link-freetext" href="http://servihoo.net/iso/help.txt">http://servihoo.net/iso/help.txt</a>
--
Regards,
Keshwarsingh
This message is strictly personal and the opinions expressed do not
represent
those of my employers, either past, present or potential future.
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:afnog-bounces@afnog.org">afnog-bounces@afnog.org</a> [<a class="moz-txt-link-freetext" href="mailto:afnog-bounces@afnog.org">mailto:afnog-bounces@afnog.org</a>] On
Behalf Of JP
Sent: Tuesday, November 12, 2013 11:22 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:afnog@afnog.org">afnog@afnog.org</a>
Subject: Re: [afnog] OID value
On 12 Nov 2013, at 9:15 PM, Anibe Onuche <a class="moz-txt-link-rfc2396E" href="mailto:a.onuche@nixp.net"><a.onuche@nixp.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks
The example you gave only works for the entire switch and not the
interface (slot/port)
The interface is to monitor a link for redundancy and I want to use
nagios to implement an snmp ping to monitor and email me when there
</pre>
</blockquote>
<pre wrap="">are issue.
</pre>
<blockquote type="cite">
<pre wrap="">
Tried getting the implementation through the OID tree without success
</pre>
</blockquote>
<pre wrap="">
You're attempting to solve the wrong problem. sysUptime is only for the
system itself, not for interfaces.
Set up interface traps, and a collector. Act on traps received.
-J
_______________________________________________
afnog mailing list
<a class="moz-txt-link-freetext" href="http://afnog.org/mailman/listinfo/afnog">http://afnog.org/mailman/listinfo/afnog</a>
</pre>
</blockquote>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>