<div class="gmail_quote">On Thu, Jan 29, 2009 at 8:40 PM, Max <span dir="ltr"><<a href="mailto:perldork@webwizarddesign.com">perldork@webwizarddesign.com</a>></span> wrote:<br><br>Thanks for the detailed comments Max! <br>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c"><br>
</div></div>The OID that maps to ifOperStatus from RFC1213-MIB is 1.3.6.1.2.1.2.2.1.8<br>
<br>
So grep for<br>
<br>
1.3.6.1.2.1.2.2.1.8.1</blockquote><div><br>No luck. No such string in there.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
if the interface you want to look at is indeed at index 1 :). </blockquote><div><br>Ah! Now I am lost! What do you mean by this. Sorry I am a networks newbiee and especially SNMP is greek-n-latin to me!<br><br>Actually I am not even sure what I should be monitoring on a switch. I was just using the example from the nagios tutorial for now. Maybe its "alive/dead status" ; bandwidth of individual ports (but that's mrtg's job right?) ; dropped packets; some thermal events? How does one go about this? What are other users montoring on their switches and how does one go about translating the fairly cryptic SNMP fields into something usable? Should I dig into my Dell switch manuals? Or is this reinventing the wheel and Nagios has an automated way to achieve this already?<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
If you are just running this for one port on one switch, then loading<br>
the MIB is no biggie, if you plan to monitor hundreds or thousands of<br>
ports, would be better to use the numeric form of the OID and run an<br>
ePN plugin using the perl Net::SNMP or NSNMP library or a plugin that<br>
implements the C Net-SNMP libraries directly</blockquote><div><br>The maximum I'll end up monitoring is perhaps 4 switches with 48 ports each. So from your stats this should be on the fairly low side. <br></div></div>
<br>-- <br>Rahul<br>