Monitoring Web sites with Hobbit
I am new to hobbit and as per the description it seems that hobbit can monitor http/https site.
Can It monitor sequence of sites, almost like a simulated Synthetic transaction?
Thanks Ashish Vashisht Senior Tivoli Administrator Wright Express Corp Work: 207-523-7537 Cell: 207-332-4813
On Wed, Oct 03, 2007 at 11:37:44PM -0400, Vashisht, Ashish wrote:
I am new to hobbit and as per the description it seems that hobbit can monitor http/https site.
Correct.
Can It monitor sequence of sites, almost like a simulated Synthetic transaction?
No, Hobbit will only do a single http request - not a sequence of requests.
Regards, Henrik
Hullo Henrik,
As i was researching the internet for any knowledge about monitoring using SNMP quering...i saw something like this stated by you "sometime later this year, I'll probably look into adding some SNMP support to Hobbit, in the form of an SNMP module that can query SNMP-enabled devices for status information, thereby integrating support for SNMP devices into Hobbit." so i was wondering...is this SNMP support already added onto hobbit??
Thank you, regards Allen
Hi Allen,
it's being worked on. The current snapshot has some support for collecting SNMP data from network devices (essentially, I wrote it so Hobbit can replace an aging MRTG server we have), but it will be extended so you can use it to collect other types of data and have it fed into hobbit.
Regards, Henrik
On Thu, Oct 04, 2007 at 09:00:11AM +0300, ansiimire at africaonline.co.ug wrote:
Hullo Henrik,
As i was researching the internet for any knowledge about monitoring using SNMP quering...i saw something like this stated by you "sometime later this year, I'll probably look into adding some SNMP support to Hobbit, in the form of an SNMP module that can query SNMP-enabled devices for status information, thereby integrating support for SNMP devices into Hobbit." so i was wondering...is this SNMP support already added onto hobbit??
Thank you, regards Allen
Henrik,
Could you please explain a little about the differences of using the SNMP module in hobbit and using DEVMON ?
I'm busy in switching from Big Brother to hobbit and at the same time want to implement the old MRTG graphs of our cisco routers and switches into the hobbit monitoring. Which one should I use, Devmon of your new feature ?
Regards and thanks for the good work of hobbit,
Bert Klomp NLR
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: donderdag 4 oktober 2007 12:42 To: hobbit at hswn.dk Subject: [hobbit] Re: SNMP (was: Monitoring Web sites with Hobbit)
Hi Allen,
it's being worked on. The current snapshot has some support for collecting SNMP data from network devices (essentially, I wrote it so Hobbit can replace an aging MRTG server we have), but it will be extended so you can use it to collect other types of data and have it fed into hobbit.
Regards, Henrik
On Thu, Oct 04, 2007 at 09:00:11AM +0300, ansiimire at africaonline.co.ug wrote:
Hullo Henrik,
As i was researching the internet for any knowledge about monitoring using SNMP quering...i saw something like this stated by you "sometime later this year, I'll probably look into adding some SNMP support to Hobbit, in the form of an SNMP module that can query SNMP-enabled devices for status information, thereby integrating support for SNMP devices into Hobbit." so i was wondering...is this SNMP support already added onto hobbit??
Thank you, regards Allen
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Fri, Oct 05, 2007 at 11:02:23AM +0200, Klomp, H. wrote:
Could you please explain a little about the differences of using the SNMP module in hobbit and using DEVMON ?
I'm busy in switching from Big Brother to hobbit and at the same time want to implement the old MRTG graphs of our cisco routers and switches into the hobbit monitoring. Which one should I use, Devmon of your new feature ?
Right now, you should use Devmon. It works, it is - from what I know - a lot more flexible, and it works with a lot of different types of network gear.
There are really just two reasons why I started doing some SNMP tools myself: 1) I was curious to see how it worked, and 2) I am not sure how Devmon would handle the 12.000 network interfaces that I must poll every 5 minutes. It might work just fine, I haven't really looked very much into how Devmon works.
Regards, Henrik
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.
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
Hi all, I am trying to read the sysDescr from the snmp device, i wanted to know if i can reach the snmp device via snmp, and whether i am using the correct read only community string. But this is the error i get...any ideas on what am missing out or doing wrong?. TM:/home/hobbit/server/etc # snmpget -v1 -c afol-public TM [10.176.10.69] Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-TM::rfc1157Proxy.
Thanks
To get a response from snmpget you should also enter a objectid.
Your snmpget command should look something like
snmpget -v1 -c afol-public hostname .1.3.6.1.2.1.1.1.0
Regards,
Bert Klomp
-----Original Message----- From: ansiimire at africaonline.co.ug [mailto:ansiimire at africaonline.co.ug] Sent: maandag 8 oktober 2007 10:08 To: hobbit at hswn.dk Subject: RE: [hobbit]help needed
Hi all, I am trying to read the sysDescr from the snmp device, i wanted to know if i can reach the snmp device via snmp, and whether i am using the correct read only community string. But this is the error i get...any ideas on what am missing out or doing wrong?. TM:/home/hobbit/server/etc # snmpget -v1 -c afol-public TM [10.176.10.69] Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-TM::rfc1157Proxy.
Thanks
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Wow..thank you Bert..i got it. insteat of entering that OID..i had been entering the ip istead...silly me. Thanks alot.
To get a response from snmpget you should also enter a objectid.
Your snmpget command should look something like
snmpget -v1 -c afol-public hostname .1.3.6.1.2.1.1.1.0
Regards,
Bert Klomp
-----Original Message----- From: ansiimire at africaonline.co.ug [mailto:ansiimire at africaonline.co.ug] Sent: maandag 8 oktober 2007 10:08 To: hobbit at hswn.dk Subject: RE: [hobbit]help needed
Hi all, I am trying to read the sysDescr from the snmp device, i wanted to know if i can reach the snmp device via snmp, and whether i am using the correct read only community string. But this is the error i get...any ideas on what am missing out or doing wrong?. TM:/home/hobbit/server/etc # snmpget -v1 -c afol-public TM [10.176.10.69] Error in packet Reason: (noSuchName) There is no such variable name in this MIB. Failed object: SNMPv2-TM::rfc1157Proxy.
Thanks
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
Hi all,
i have multiple hobbit server but i would like that only one is the bbpager.
There is a way to make acknowledge on multiple servers, for the same tests that are on more servers?
thanks for yours suggestions
Marco
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
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
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
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
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
I was using the standard message from the Cisco-7206 template. Although in working with the Network team, the box is actually a 7204. I don't know if there would be that much of a difference between the two models. The hobbit screen gives me all the right detail of usage, so I would suspect it is OK. I don't know if there is any difference in the interface type. The two boxes we wanted to start gathering data are DS3. I noticed the message file has ds0 and ds1, but I need to get more information about the message file. I looked at all the doc and could not find much.
Thank you, Tom
-----Original Message----- From: Klomp, H. [mailto:klomph at nlr.nl] Sent: Monday, October 08, 2007 2:15 AM 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
participants (7)
-
ansiimire@africaonline.co.ug
-
Ashish_Vashisht@WrightExpress.com
-
Craig_Whilding@mentor.com
-
henrik@hswn.dk
-
klomph@nlr.nl
-
marco.avvisano@regione.toscana.it
-
Tom.Stewart@landsend.com