Xymon Mailing List Archive search

Graphing non-NCV data

4 messages in this thread

list David Fogarty · Tue, 28 Oct 2014 15:42:20 -0700 (PDT) ·
Hi everyone,
I'm trying to graph data that is not in NCV format.  I was able to do this in BB, but I'm having trouble finding documentation on how it's done in Xymon.  The documentation at "/help/howtograph.html" seems to assume data is always in NCV format.

Is there a way to parse it as it comes in along with the disk, cpu, and other tests, or should I be getting data from disk.

If I'm getting it off the disk, does that mean I should enable "bbstatus" and "hostdata" in hobbitlaunch.cfg?

Is it recommended to run a data collection script as an ext script, or just straight out of cron.

Am I forgetting something?  Is there documentation out there that I just failed to find?

FYI, I'm running version 4.3.0~beta2.dfsg-9.1 from Debian 7 (wheezy).

Thanks,
Dave Fogarty

--
Senior System Administrator
CollegeNET.com
list Ralph Mitchell · Tue, 28 Oct 2014 20:52:50 -0400 ·
Take a look at the man page for xymond_rrd.   The --extra-script and
--extra-tests options allow you to pass incoming reports through a script
to extract whatever you need.  Your script then emits the results to put in
the RRD.  There's a good example script at the end of the man page.

Ralph Mitchell
quoted from David Fogarty


On Tue, Oct 28, 2014 at 6:42 PM, David Fogarty <user-ec392d47385f@xymon.invalid> wrote:
Hi everyone,
I'm trying to graph data that is not in NCV format.  I was able to do this
in BB, but I'm having trouble finding documentation on how it's done in
Xymon.  The documentation at "/help/howtograph.html" seems to assume data
is always in NCV format.

Is there a way to parse it as it comes in along with the disk, cpu, and
other tests, or should I be getting data from disk.

If I'm getting it off the disk, does that mean I should enable "bbstatus"
and "hostdata" in hobbitlaunch.cfg?

Is it recommended to run a data collection script as an ext script, or
just straight out of cron.

Am I forgetting something?  Is there documentation out there that I just
failed to find?

FYI, I'm running version 4.3.0~beta2.dfsg-9.1 from Debian 7 (wheezy).

Thanks,
Dave Fogarty

--
Senior System Administrator
CollegeNET.com

list Stef Coene · Wed, 29 Oct 2014 08:14:41 +0100 ·
You can also send a trends message.
This is an extra message with the rrd you want to use and the numbers.
I use that feature a lot.

Some lines from one of my scripts written in perl:
   $rrd_return .= "data $ENV{MACHINE}.trends\n" ;
   $rrd_return .= "[iostat.$device.rrd]\n" ;
   $rrd_return .= "DS:Kbps:GAUGE:600:0:U $split[0]\n" ;
   $rrd_return .= "DS:tps:GAUGE:600:0:U $split[1]\n" ;
   $rrd_return .= "DS:bkread:GAUGE:600:0:U $split[2]\n" ;
   $rrd_return .= "DS:bkwrtn:GAUGE:600:0:U $split[3]\n" ;


Stef
list David Fogarty · Wed, 29 Oct 2014 09:15:59 -0700 (PDT) ·
Thanks Ralph!  I think this looks very promising.  I had not found that 
documentation yet.

Stef, thanks for that too.  I'll look into it as well.
quoted from Ralph Mitchell

Dave Fogarty

--
Senior System Administrator
CollegeNET.com

On Tue, 28 Oct 2014, Ralph Mitchell wrote:
Take a look at the man page for xymond_rrd.   The --extra-script and --extra-tests
options allow you to pass incoming reports through a script to extract whatever you
need.  Your script then emits the results to put in the RRD.  There's a good example
script at the end of the man page.
Ralph Mitchell


On Tue, Oct 28, 2014 at 6:42 PM, David Fogarty <user-ec392d47385f@xymon.invalid> wrote:
      Hi everyone,
      I'm trying to graph data that is not in NCV format.  I was able to do this
      in BB, but I'm having trouble finding documentation on how it's done in
      Xymon.  The documentation at "/help/howtograph.html" seems to assume data
      is always in NCV format.

      Is there a way to parse it as it comes in along with the disk, cpu, and
      other tests, or should I be getting data from disk.

      If I'm getting it off the disk, does that mean I should enable "bbstatus"
      and "hostdata" in hobbitlaunch.cfg?

      Is it recommended to run a data collection script as an ext script, or just
      straight out of cron.

      Am I forgetting something?  Is there documentation out there that I just
      failed to find?

      FYI, I'm running version 4.3.0~beta2.dfsg-9.1 from Debian 7 (wheezy).

      Thanks,
      Dave Fogarty

      --
      Senior System Administrator
      CollegeNET.com