Xymon Mailing List Archive search

Sending data from script to an rrd

list Rob Munsch
Wed, 18 Oct 2006 15:17:25 -0400
Message-Id: <user-25c28d5c5fc3@xymon.invalid>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rob Munsch wrote:
Ralph Mitchell wrote:
On 10/18/06, Rob Munsch <user-f39e4aae1456@xymon.invalid> wrote:
When you add the --extra-script option in the [rrdstatus] block,
Well i'm stuck already.  What file is that block in?  I can't find it in
'server.cfg nor 'graph.cfg...
It's in server/etc/hobbitlaunch.cfg
yeah found that with a grep rrdstatus, heh oops.
So something like

echo "DS:cputemp:GAUGE:600:0:U"
echo "cputemp.rrd"

probably isn't far off after all?
That should do it, yes.  That's the format for the RRD creation, and
the name to create.  If you just want to push out one value, you'd
follow that with:
  echo "$temp"
I seem to still be doing something wrong...
yeah, i'm kind of an idiot:

/local/hobbit/client/ext/cputemp.sh: line 25: 100: command not found
DS:cputemp:GAUGE:600:0:U
cputemp.rrd
100
/local/hobbit/client/ext/cputemp.sh: line 25: 100: command not found
DS:cputemp:GAUGE:600:0:U
cputemp.rrd
100

On the client my script is happily shouting this out to stdout.  Where
do i include these "echo" lines to get them properly noted by the
server's rrdtool?  I can see that no cputemp.rrd exists on the server.
It's not getting there.


- --
Rob Munsch
Solutions For Progress IT
www.solutionsforprogress.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFNn3FBvBcJFK6xYURAitiAJ9r6yMc6JTVvCHBvgVlq4/bWeQseACfdCiD
m3BEriuMmaDMZMGqxxhweeA=
=MT36
-----END PGP SIGNATURE-----