Xymon Mailing List Archive search

Custom RRD script

3 messages in this thread

list Greg L Hubbard · Tue, 7 Feb 2006 09:11:00 -0600 ·
Hobbit Folk,

I have been struggling with the custom RRD capabilities in the latest
version of Hobbit.  I think I've found the issue -- if custom tests are
listed in the TEST2RRD variable, then those tests are not forwarded to
the test-script for action.  Has anyone else noticed this?

I've been through the source and can't find a reference to the TEST2RRD
environment variable (but I am not much of a C programmer), so I can't
verify/validate this behavior.  But I have verified it by
adding/subtracting my custom tests to the TEST2RRD variable and watching
my debug output.  Also, based on some recent mail, I think I know where
to look now...

Can anyone comment on this?  I would really like to be able to include
my custom RRD graphs on the status pages...

I am using Solaris 8 on SPARC, Hobbit version is hobbit-4.1.2p1.

GLH
list Henrik Størner · Tue, 7 Feb 2006 17:02:06 +0100 ·
quoted from Greg L Hubbard
On Tue, Feb 07, 2006 at 09:11:00AM -0600, Hubbard, Greg L wrote:
I have been struggling with the custom RRD capabilities in the latest
version of Hobbit.  I think I've found the issue -- if custom tests are
listed in the TEST2RRD variable, then those tests are not forwarded to
the test-script for action.  Has anyone else noticed this?
Hmm - no, at least it shouldn't behave like that.

The custom RRD setup should be very simple. If your data shows up in the
"mytest" column on the Hobbit display, add the "--extra-tests=mytest"
and "--extra-script=mycustomscript.sh" options to the hobbitd_rrd
commandline (in hobbitlaunch.cfg), and that should be it. Your script
should get called whenever there's a status update for the "mytest"
column.

The part that probably tricks you up is that "mytest" must be added
to both the TEST2RRD setting, and the GRAPHS setting. If it's missing
from either of these, Hobbit won't send it through the RRD update 
process.


Regards,
Henrik
list Greg L Hubbard · Tue, 7 Feb 2006 10:52:03 -0600 ·
Hmm.  I am not seeing that.  I have my custom tests (I am up to 4 now)
in specified in the GRAPHS variable, but NOT in the TEST2RRD variable,
and I am getting the values, and seeing the graphs in my Trends display.

But if I put them in the TEST2RRD variable, then my custom script is
never called.  Which is what made me wonder -- now I am really getting
confused.

In (grin) in case you haven't heard it before -- congratulations on a
great tool -- I think it has significant improvements over BB in every
area!

GLH 
quoted from Henrik Størner

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Tuesday, February 07, 2006 10:02 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Custom RRD script

On Tue, Feb 07, 2006 at 09:11:00AM -0600, Hubbard, Greg L wrote:
I have been struggling with the custom RRD capabilities in the latest 
version of Hobbit.  I think I've found the issue -- if custom tests 
are listed in the TEST2RRD variable, then those tests are not 
forwarded to the test-script for action.  Has anyone else noticed
this?
Hmm - no, at least it shouldn't behave like that.

The custom RRD setup should be very simple. If your data shows up in the
"mytest" column on the Hobbit display, add the "--extra-tests=mytest"
and "--extra-script=mycustomscript.sh" options to the hobbitd_rrd
commandline (in hobbitlaunch.cfg), and that should be it. Your script
should get called whenever there's a status update for the "mytest"
column.

The part that probably tricks you up is that "mytest" must be added to
both the TEST2RRD setting, and the GRAPHS setting. If it's missing from
either of these, Hobbit won't send it through the RRD update process.


Regards,
Henrik