Xymon Mailing List Archive search

hobbit + bb-xsnmp.pl

list Dan Vande More
Tue, 15 Nov 2005 10:43:28 -0600
Message-Id: <user-6e5fc753bddf@xymon.invalid>

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