<div dir="ltr">Nope.<br>I don't know how to do that, how do i?<br><br><div class="gmail_quote">On Thu, Sep 25, 2008 at 10:01 PM, Rich Smrcina <span dir="ltr"><<a href="mailto:rsmrcina@wi.rr.com">rsmrcina@wi.rr.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Did you add your graph definition to hobbitgraph.cfg?<br>
<br>
You would need to bounce Hobbit after changing that file since it is only processed once.<div><div></div><div class="Wj3C7c"><br>
<br>
Sébastien Munch wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br>
<br>
I'm trying to create an extra script for hobbit_rrd. I've followed<br>
tutorials found on the net, especially<br>
<a href="http://www.trantor.org/theshire/doku.php/tutorials:customgraph" target="_blank">http://www.trantor.org/theshire/doku.php/tutorials:customgraph</a><br>
<br>
I'm getting the information in the status page. Data is correctly sent<br>
to the hobbit server.<br>
<br>
Everything seems to be configured correctly, but I'm not getting any rrd<br>
data. In the configurations, I've double-checked paths, execution<br>
rights, etc.<br>
<br>
To simplify the tests, I've changed my extra-script so that it writes<br>
everything in a temporary file.<br>
<br>
The script isn't started : it doesn't write in this temporary file.<br>
<br>
In the rrd-status log, I don't see anything about executing the extra<br>
script.<br>
<br>
hobbitlaunch.cfg :<br>
----------------------------------------------------------<br>
[rrdstatus]<br>
        ENVFILE /usr/lib/hobbit/server/etc/hobbitserver.cfg<br>
        NEEDS hobbitd<br>
        CMD hobbitd_channel --channel=status<br>
--log=BBSERVERLOGS/rrd-status.log hobbitd_rrd --rrddir=$BBVAR/rrd<br>
--extra-script /usr/lib/hobbit/server/ext/rrd_openvz.sh --extra-tests<br>
openvz --debug<br>
----------------------------------------------------------<br>
<br>
/usr/lib/hobbit/server/ext/rrd_openvz.sh :<br>
----------------------------------------------------------<br>
#!/bin/sh<br>
<br>
echo "Pop !" > /tmp/plouf<br>
<br>
hostname=$1<br>
testname=$2<br>
messagefile=$3<br>
<br>
echo "Host $hostname" >> /tmp/plouf<br>
echo "Test $testname" >> /tmp/plouf<br>
echo "Message file $messagefile" >> /tmp/plouf<br>
cat $messagefile >> /tmp/plouf<br>
<br>
exit 0<br>
----------------------------------------------------------<br>
<br>
/var/log/hobbit/rrd-status.log :<br>
----------------------------------------------------------<br>
[...]<br>
2008-09-25 18:01:41 RRD update param 01: '/var/lib/hobbit/rrd/<some<br>
other host 1>/memory.actual.rrd'<br>
2008-09-25 18:01:41 RRD update param 02: '-t'<br>
2008-09-25 18:01:41 RRD update param 03: 'realmempct'<br>
2008-09-25 18:01:41 RRD update param 04: '1222358501:22'<br>
2008-09-25 18:01:41 Want msg 7363, startpos 128053, fillpos 128053,<br>
endpos -1, usedbytes=0, bufleft=400330<br>
2008-09-25 18:01:42 hobbitd_rrd: Got message 7363 @@status#7363|<br>
1222358502.509616|<a href="http://10.1.60.214" target="_blank">10.1.60.214</a>||<the host I want to check>|openvz|<br>
1222360302|green||green|1222249676|0||0||1222358207<br>
2008-09-25 18:01:42 startpos 128527, fillpos 128527, endpos -1<br>
2008-09-25 18:01:42 Want msg 7364, startpos 128527, fillpos 128527,<br>
endpos -1, usedbytes=0, bufleft=399856<br>
2008-09-25 18:01:44 hobbitd_rrd: Got message 7364 @@status#7364|<br>
1222358504.541929|<a href="http://10.1.0.52" target="_blank">10.1.0.52</a>||<some other host 2>|cpu|1222360304|green||<br>
green|1222302537|0||0||0<br>
2008-09-25 18:01:44 startpos 130305, fillpos 130305, endpos -1<br>
2008-09-25 18:01:44 RRD update param 00: 'rrdupdate'<br>
2008-09-25 18:01:44 RRD update param 01: '/var/lib/hobbit/rrd/<some<br>
other host 2>/la.rrd'<br>
[...]<br>
----------------------------------------------------------<br>
<br>
Could anyone see something that would be wrong there ?<br>
<br>
Thanks in advance :)<br>
<br>
Regards<br>
<br>
Sebastien<br>
<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
</blockquote>
<br></div></div>
-- <br>
Rich Smrcina<br>
VM Assist, Inc.<br>
Phone: 414-491-6001<br>
Ans Service:  360-715-2467<br>
rich.smrcina at <a href="http://vmassist.com" target="_blank">vmassist.com</a><br>
<a href="http://www.linkedin.com/in/richsmrcina" target="_blank">http://www.linkedin.com/in/richsmrcina</a><br>
<br>
Catch the WAVV!  <a href="http://www.wavv.org" target="_blank">http://www.wavv.org</a><br>
WAVV 2009 - Orlando, FL - May 15-19, 2009<div><div></div><div class="Wj3C7c"><br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>