[hobbit] Sending data from script to an rrd
Rob Munsch
rmunsch at solutionsforprogress.com
Wed Oct 18 21:17:25 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Rob Munsch wrote:
> Ralph Mitchell wrote:
>> On 10/18/06, Rob Munsch <rmunsch at solutionsforprogress.com> 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-----
More information about the Xymon
mailing list