OK,
I have partially solved the problem. I actually found this by accident !!
I was trying to fix the alarm issue and removed the Ge.+ and added Se.+|Fa.+ to the exceptions file under if_load. Now I am getting graphs on the three interfaces (I don't have a Ge* interface on the box) ! My only problem now is that the alarm still doesn't seem to be working, even thought my warning status is set to 50% on the Se interface and it is currently running above 60%.
Tom
-----Original Message----- From: Whilding, Craig [mailto:Craig_Whilding at mentor.com] Sent: Monday, October 08, 2007 9:13 AM To: hobbit at hswn.dk Subject: RE: [hobbit] Hobbit Devmon question / help needed
Something I have noticed now is that none of the interfaces in your html start Gi. These are the only interface names that graph for me, im not sure what/where this is specified. Your Se starting ports may be ignored. I know my Fa ports currently are and I only see data sent for Gi ports.
<tr><td>Fa0/22 [Workstation]</td><td>100.00 Mbps</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 1.07 Kbps (0.00%)</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 3.23 Kbps (0.00%)</td></tr>
<tr><td>Fa0/23 [Workstation]</td><td>100.00 Mbps</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 5.66 Kbps (0.01%)</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 13.68 Kbps (0.01%)</td></tr> <tr><td>Fa0/24 [uplink to dlink]</td><td>100.00 Mbps</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 255.00 bps (0.00%)</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 2.68 Kbps (0.00%)</td></tr> <tr><td>Gi0/1 [ukalanrx1 g1-2 uplink]</td><td>1000.00 Mbps</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 974.12 Kbps (0.10%)</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 306.02 Kbps (0.03%)</td></tr>
<tr><td>Gi0/2</td><td>1000.00 Mbps</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 0.00 bps (0.00%)</td><td><IMG SRC="/hobbit/gifs/green.gif" ALT="green" HEIGHT="16" WIDTH="16" BORDER=0> 0.00 bps (0.00%)</td></tr> </table> <!--DEVMON RRD: if_load 0 0 DS:ds0:COUNTER:600:0:U DS:ds1:COUNTER:600:0:U Gi0_1 4082073936:4086913349 Gi0_2 448:448 -->
Thanks, Craig
-----Original Message----- From: Klomp, H. [mailto:klomph at nlr.nl] Sent: 08 October 2007 14:23 To: hobbit at hswn.dk Subject: RE: [hobbit] Hobbit Devmon question / help needed
Tom,
the is no RRD inferface information in your html file. Only the definiton of the RRD file, but no actual information. So no information will be send to the rrd file bij the extra-rrd.script.
You have to look at the devmon site for why there is no information.
Regards,
Bert Klomp
-----Original Message----- From: Stewart, Tom L. [mailto:Tom.Stewart at landsend.com] Sent: maandag 8 oktober 2007 15:16 To: hobbit at hswn.dk Subject: RE: [hobbit] Hobbit Devmon question / help needed
Thank you for the information but it still did not give me the RRD detail.
Tom
-----Original Message----- From: Whilding, Craig [mailto:Craig_Whilding at mentor.com] Sent: Monday, October 08, 2007 3:53 AM To: hobbit at hswn.dk Subject: RE: [hobbit] Hobbit Devmon question / help needed
The following code produces rrd files for me (straight copy and paste):
#!/usr/bin/perl
#Input parameters:Hostname,testname(column),and messagefile $HOSTNAME=$ARGV[0];; $TESTNAME=$ARGV[1];; $FNAME=$ARGV[2];;
#Read the entire files open(FILEHANDLE,$FNAME)||die("can't read file\n"); @input=<FILEHANDLE>; close(FILEHANDLE);
if ( $TESTNAME eq "if_load") {
# Analyze the message we got
#open(OUT, ">", $filename);
foreach $line (@input) {
if ($line =~ /(^[A-Z].*) (\d+):(\d+)$/ ) {
# The RRD dataset definitions
print "DS:in:DERIVE:600:0:U\n";
print "DS:out:DERIVE:600:0:U\n";
# The filename
print "if_load_$1.rrd\n";
# The data
print "$2:$3\n";
}
}
#close (OUT);
}
Messages file
<b>Interface error rates:</b> Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) {ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoad.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors}
Thanks, Craig
-----Original Message----- From: Klomp, H. [mailto:klomph at nlr.nl] Sent: 08 October 2007 08:15 To: hobbit at hswn.dk Subject: RE: [hobbit] Hobbit Devmon question / help needed
I've been looking at your message file but can't find anything strange
in it.
What I did see was that there was no interface informatie in de RRD part
of your output.
The RRD file of my output file looks like <!--DEVMON RRD: if_load 0 0
DS:ds0:COUNTER:600:0:U DS:ds1:COUNTER:600:0:U
Gi1_1 3631408838:1068715647
Did you correctly identify the ifInOctets and ifOutOctets ?
Regards, Bert Klomp
-----Original Message----- From: Stewart, Tom L. [mailto:Tom.Stewart at landsend.com] Sent: zondag 7 oktober 2007 16:41 To: hobbit at hswn.dk Subject: [hobbit] Hobbit Devmon question / help needed
I downloaded Devmon and have it running just fine.
However, I am having a problem with getting the stats from a Devmon if_load status into rrd. The rrd's never get created. I did do the other parts and since I am creating a tmp file from the extra-rrd.pl, that would indicate that the code is executing !
Here is where I believe the problem is.
From the extra-rrd.pl the code is as follows:
Code start ------------ #!/usr/bin/perl
Input parameters: Hostname, testname (column), and messagefile
#$HOSTNAME=$ARGV[0]; ; $TESTNAME=$ARGV[1]; ; $FNAME=$ARGV[2]; ; $filename="/tmp/if_log";
Read the entire files
open (FILEHANDLE,$FNAME) || die ("cant read file\n"); @input = <FILEHANDLE>; close (FILEHANDLE);
if ( $TESTNAME eq "if_load") {
# Analyze the message we got
open(OUT, ">", $filename);
print OUT "This is the stuff\n at input";
foreach $line (@input) {
if ($line =~ /(^[A-Z].*) (\d+):(\d+)$/ ) {
# The RRD dataset definitions
print "DS:in:DERIVE:600:0:U\n";
print "DS:out:DERIVE:600:0:U\n";
# The filename
print "if_load_$1.rrd\n";
# The data
print "$2:$3\n";
}
}
close (OUT);
} Code stop -----------------------
I added some code to create and show what is in the if_load stat in the /tmp/if_log file for debugging.
The /tmp/if_log file I see is:
bash-3.00$ cat /tmp/if_log This is the stuff status INET-7204.if_load green Sun Oct 7 09:29:05 2007
<b>Interface error rates:</b> Input load: yellow=50%, red=75% Output load: yellow=50%, red=75% Not alarming on any values <table border=1 cellpadding=5> <tr><td>Ifc name</td><td>Ifc Speed</td><td>Rate in (load %)</td><td>Rate out (load %)</td></tr> <tr><td>Se1/0 [Berbee DS3]</td><td>44210000</td><td>&green 697.48 Kbps (1.58%)</td><td>&green 1.62 Mbps (3.67%)</td></tr> <tr><td>Fa0/0 [Vlan100 inet-6509-1]</td><td>100000000</td><td>&green 1.62 Mbps (1.62%)</td><td>&green 713.65 Kbps (0.71%)</td></tr> <tr><td>Fa2/0 [Vlan101 inet-6509-2]</td><td>100000000</td><td>&green 180.00 bps (0.00%)</td><td>&green 11.29 Kbps (0.01%)</td></tr> <tr><td>Fa2/1</td><td>100000000</td><td>&green 0.00 bps (0.00%)</td><td>&green 0.00 bps (0.00%)</td></tr> </table> <!--DEVMON RRD: if_load 0 0 DS:ds0:COUNTER:600:0:U DS:ds1:COUNTER:600:0:U -->
Devmon version 0.3.0-beta2 running on
Here is a copy of the message file from devmon/templates/cisco-7206/if_load
The message file for the device (7206) shows:
<b>Interface error rates:</b> Input load: yellow={ifInLoad.thresh:yellow}%, red={ifInLoad.thresh:red}% Output load: yellow={ifOutLoad.thresh:yellow}%, red={ifOutLoad.thresh:red}% TABLE:rrd(DS:ds0:ifInOctets:COUNTER; DS:ds1:ifOutOctets:COUNTER) Ifc name|Ifc Speed|Rate in (load %)|Rate out (load %) {ifName}{ifAliasBox}|{ifSpeed}|{ifInLoad.color}{ifInSpeed} ({ifInLoad}%){ifInLoa d.errors}|{ifOutLoad.color}{ifOutSpeed} ({ifOutLoad}%){ifOutLoad.errors}
I suspect the message file is wrong? But I have only started this on Friday, so I figured the experts could point me to the right direction.
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk