Yes I have the same problem. Although the format is close to the output
from unix hosts:
Memory Used Total Percentage
green Physical 221M 512M 43%
green Swap 89M 10590M 0%
the cisco equipment have different pools of memory that bb-xsnmp.pl
reports. For an IOS system you get this:
Memory Used Total Percentage
green Processor 5388772 54132444 9.95%
green I/O 1088780 8393328 12.97%
for a catos system you get something more like this though:
Memory Used Total Percentage
green DRAM 84903000 134086864 63.32%
green MALLOC 16298432 49809728 32.72%
green FLASH 15569836 33554432 46.40%
green NVRAM 435266 524288 83.02%
green MBUF 123776 4231168 2.93%
green CLUSTER 1861632 14188544 13.12%
hobbitd very specifically looks for :
phys = strstr(msg, "Physical"); if (phys == NULL) phys = strstr(msg,
"Real");
swap = strstr(msg, "Swap"); if (swap == NULL) swap = strstr(msg,
"Page");
actual = strstr(msg, "Actual"); if (actual == NULL) actual = str
str(msg, "Virtual");
so maybe FLASH and NVRAM could more appropriately be graphed under disk
but I didn't see a good way to map say I/O ram to Physical, Swap, or
Actual. I think the change will need to be on the Hobbitd side in
do_memory.c
Butch
-----Original Message-----
From: Marco Avvisano [mailto:user-e09c0f3f8c70@xymon.invalid]
Sent: Friday, November 18, 2005 3:49 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] hobbit + bb-xsnmp.pl
I'm testing these version (1.79), all work fine except the memory
graph
(no
rrd file is created for memory)
Have you the same problem?
Marco
----- Original Message -----
From: "Deal, Richard" <user-f6f804cb0a50@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, November 15, 2005 8:38 PM
Subject: RE: [hobbit] hobbit + bb-xsnmp.pl
In case this can help anyone else I have included Dan's patch and
all
the various fixes I have for bb-xsnmp.pl and put it up to deadcat:
http://www.deadcat.net/viewfile.php?fileid=929
The 1.78_beta (my main starting point) was from Ben Pitzer who has
done
a lot of work getting the script working. I have not been able to
get
back in touch with him though as my last contact was over a year
ago.
(just want to give credit were credit is due).
I hope others find this as useful as I have.
Butch
-----Original Message-----
From: Dan Vande More [mailto:user-f3c4c62d9d50@xymon.invalid]
Sent: Tuesday, November 15, 2005 11:43 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] hobbit + bb-xsnmp.pl
The script was empty:)
Thanks for the info though, I really like the idea of it pinging
before checking. Also, I got hobbit to graph temperature by hacking
it
to spit out the format that hobbit likes. Note hobbit expects the
third column to be degrees F, where as I just print the threshold.
Since the thresholds aren't really acurate (Some say 750C, some say
65535C, etc), and hobbit doesn't use the F column, I just put it
there
for good measure.
Since a diff wouldn't do you any good either, here are the lines
I've
changed:
(line 2981, inside sub temperature_message) # compose message
$message = "status $commahost.$test $worstcolor
".scalar(localtime)."\n\n";
my @indices = sort { $a <=> $b } keys(%statedb);
foreach my $index (@indices) {
my $description=$descrdb{$index};
$description=~s/ |:|-|\(|\)|\\|\//_/g;
$description=~s/__/_/g;
$description=lc($description);
$message .= '&'.$colordb{$index}."
$description\t".$valuedb{$index}."\t".$threshdb{$index}."\n";
} # foreach my $index (@indices)
The only thing I have to work on now is splitting the graphs. My
7609's have 47 temperature sensors apiece:)
Thanks again for the help.
Dan
On 11/15/05, Deal, Richard <user-f6f804cb0a50@xymon.invalid> wrote:I have a version of bb-xsnmp.pl running directly under hobbit.
Most
of
the graphs already work with the hobbit server.
I ripped out all the bb-combo.sh stuff as hobbit doesn't have
combo.sh
but that is just to get it to run under the hobbit server.
I also added support for querying the hobbit server to see if a
conn
test is red to prevent hangs. This was a bigger deal as I would
find
that bb-xsnmp.pl would hang if a small non-important device
failed
such
as a wireless access point and all the other devices would go
purple
instantly.
I could give the patches but my version of bb-xsnmp.pl is based
on a
beta version I received from someone else that fixed other
issues,
so I
will include the whole thing.
I put this in hobbitlaunch.cfg:
[xsnmp]
ENVFILE /local/HOBBIT/hobbit/client/etc/hobbitclient.cfg
NEEDS hobbitd
CMD /local/HOBBIT/hobbit/server/ext/bb-xsnmp.pl
LOGFILE $BBSERVERLOGS/bb-xsnmp.log
INTERVAL 5m
I have it testing several APC UPS units with environment monitors
(temperature graph doesn't work but monitoring does)
5 netapp servers for : cpu disk fans power temperature uptime
Cpu, disk, and inode graphs work
65xx IOS routers/switches for : cpu uptime memory power fans
temperature
bgp
Cpu graph works but temperature is totally unusable
65xx CatOS switches for : uptime memory power fans temperature
Cisco 12xx wireless access points for: cpu memory
Cpu graph works.
I hope this helps
BTW, I also run these from the Hobbit server:
aironet.pl
bb-ospf.pl
bb-xsnmp.pl
bb-brocade.pl
bb-liebert.pl
And these on various clients:
bb-cpu2.sh
bb-prtdiag.sh
emc-clarrion.sh
ntpstat.sh
bb-msgs.sh
bb-raid.sh
sge.sh
bb-ntp.sh
bb-vxcheck.sh
meta
-----Original Message-----
From: Dan Vande More [mailto:user-f3c4c62d9d50@xymon.invalid]
Sent: Monday, November 14, 2005 5:36 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] hobbit + bb-xsnmp.pl
Hey has anyone got the configs to get bb-xsnmp.pl to work with
hobbit
rrd and graphing?
Henrik I saw you offered to do it here:
http://www.hswn.dk/hobbiton/2005/04/msg00080.html
But I can't find much else regarding it.
Thanks
Dan