<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>a plugin to check interface errors</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>I'm wondering if someone has written a plugin to check for interface errors. I have already looked at check_ifoperstatus and check_ifstatus - and I've already got my own versions of them for SNMPv3.</FONT></P>

<P><FONT SIZE=2>What I'm looking for is a way to detect interface errors. I've got some perl code I'm still working on, but the data storage is killing me. To explain:</FONT></P>

<P><FONT SIZE=2>Basically, I'm walking the MIBs 1.3.6.1.2.1.2.2.1.14 (ifInErrors) and 1.3.6.1.2.1.2.2.1.20 (ifOutErrors) every 10 minutes and storing them each in an different rrd (a file named $hostname-$ifDescr.rrd). Then, I'm rrd fetching the last 60 minutes worth of data - if there's at least $warning_cnt errors in that time period, return warning. Finally, I'm rrd fetching the last 180 minutes (3 hrs) worth of data - if there's an error rate of at least $critical_rate per minute, return critical.</FONT></P>

<P><FONT SIZE=2>I'm having problems with storing the rrd data with the RRDs perl module - I'm trying to simulate the data by pre-populating a rrd file with errors, and I'm getting a floating point results (instead of int). I'm using RRDtool 1.0.45. FWIW, my RRD create looks like this:</FONT></P>

<P><FONT SIZE=2>        RRDs::create ( $filename,</FONT>
<BR><FONT SIZE=2>            "--start", $now - 60,</FONT>
<BR><FONT SIZE=2>            "--step", "600",</FONT>
<BR><FONT SIZE=2>            "DS:ifInErrors:COUNTER:600:U:U",</FONT>
<BR><FONT SIZE=2>            "DS:ifOutErrors:COUNTER:600:U:U",</FONT>
<BR><FONT SIZE=2>            "RRA:MAX:0.5:1:600",</FONT>
<BR><FONT SIZE=2>            "RRA:MAX:0.5:1:150",</FONT>
<BR><FONT SIZE=2>        );</FONT>
</P>

<P><FONT SIZE=2>Summary:</FONT>
</P>

<P><FONT SIZE=2>1) Has anyone written a plugin to check interface errors?</FONT>
<BR><FONT SIZE=2>2) Has anyone had strange problems with RRDs and float/int problems?</FONT>
</P>

<P><FONT SIZE=2>Thanks</FONT>
<BR><FONT SIZE=2>Tony</FONT>
</P>

<P><FONT SIZE=2>--</FONT>
<BR><FONT SIZE=2>"Computer science is as much about computers as</FONT>
<BR><FONT SIZE=2>        astronomy is about telescopes" -- Edsger Dijkstra</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------</FONT>
<BR><FONT SIZE=2>Anthony Tonns, UNIX Administrator - atonns@mail.ivillage.com</FONT>
</P>

</BODY>
</HTML>