[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] hobbitd_rrd not starting an extra script



Did you add your graph definition to hobbitgraph.cfg?

You would need to bounce Hobbit after changing that file since it is only processed once.

Sébastien Munch wrote:
Hello

I'm trying to create an extra script for hobbit_rrd. I've followed
tutorials found on the net, especially
http://www.trantor.org/theshire/doku.php/tutorials:customgraph

I'm getting the information in the status page. Data is correctly sent
to the hobbit server.

Everything seems to be configured correctly, but I'm not getting any rrd
data. In the configurations, I've double-checked paths, execution
rights, etc.

To simplify the tests, I've changed my extra-script so that it writes
everything in a temporary file.

The script isn't started : it doesn't write in this temporary file.

In the rrd-status log, I don't see anything about executing the extra
script.

hobbitlaunch.cfg :
----------------------------------------------------------
[rrdstatus]
        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        CMD hobbitd_channel --channel=status
--log=BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd
--extra-script /usr/lib/hobbit/server/ext/rrd_openvz.sh --extra-tests
openvz --debug
----------------------------------------------------------

/usr/lib/hobbit/server/ext/rrd_openvz.sh :
----------------------------------------------------------
#!/bin/sh

echo "Pop !" > /tmp/plouf

hostname=$1
testname=$2
messagefile=$3

echo "Host $hostname" >> /tmp/plouf
echo "Test $testname" >> /tmp/plouf
echo "Message file $messagefile" >> /tmp/plouf
cat $messagefile >> /tmp/plouf

exit 0
----------------------------------------------------------

/var/log/hobbit/rrd-status.log :
----------------------------------------------------------
[...]
2008-09-25 18:01:41 RRD update param 01: '/var/lib/hobbit/rrd/<some
other host 1>/memory.actual.rrd'
2008-09-25 18:01:41 RRD update param 02: '-t'
2008-09-25 18:01:41 RRD update param 03: 'realmempct'
2008-09-25 18:01:41 RRD update param 04: '1222358501:22'
2008-09-25 18:01:41 Want msg 7363, startpos 128053, fillpos 128053,
endpos -1, usedbytes=0, bufleft=400330
2008-09-25 18:01:42 hobbitd_rrd: Got message 7363 @@status#7363|
1222358502.509616|10.1.60.214||<the host I want to check>|openvz|
1222360302|green||green|1222249676|0||0||1222358207
2008-09-25 18:01:42 startpos 128527, fillpos 128527, endpos -1
2008-09-25 18:01:42 Want msg 7364, startpos 128527, fillpos 128527,
endpos -1, usedbytes=0, bufleft=399856
2008-09-25 18:01:44 hobbitd_rrd: Got message 7364 @@status#7364|
1222358504.541929|10.1.0.52||<some other host 2>|cpu|1222360304|green||
green|1222302537|0||0||0
2008-09-25 18:01:44 startpos 130305, fillpos 130305, endpos -1
2008-09-25 18:01:44 RRD update param 00: 'rrdupdate'
2008-09-25 18:01:44 RRD update param 01: '/var/lib/hobbit/rrd/<some
other host 2>/la.rrd'
[...]
----------------------------------------------------------

Could anyone see something that would be wrong there ?

Thanks in advance :)

Regards

Sebastien


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk



--
Rich Smrcina
VM Assist, Inc.
Phone: 414-491-6001
Ans Service:  360-715-2467
rich.smrcina at vmassist.com
http://www.linkedin.com/in/richsmrcina

Catch the WAVV!  http://www.wavv.org
WAVV 2009 - Orlando, FL - May 15-19, 2009