<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=300084119-30112006><FONT face=Arial
color=#0000ff size=2>Guys, When creating custom scripts, has anyone just used
rrdcreate and rrdtool update to directly output the data to the rrd files
?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=300084119-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=300084119-30112006><FONT face=Arial
color=#0000ff size=2>If the the tests are all residing on the one machine and
not polling data from other clients is it an easier way to update the graphs as
I just can't get the status script to update for me ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=300084119-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=300084119-30112006><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=300084119-30112006><FONT face=Arial
color=#0000ff size=2>Ger.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Ger Maguire [mailto:ger@fwi.ie]
<BR><B>Sent:</B> 29 November 2006 20:13<BR><B>To:</B>
hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] Custom RRD
graphs<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>Hi
folks,</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>I have created a
custom script for capturing CPU utilisation from a device and updated all the
relevant files but I cannot get my rrd files to update
correctly.</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>An initial rrd file
gets created but the data does not get input into it.</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>I have created a
rrd-ext sript which is running and is capturing the incomming status data and by
looking at the /tmp files I can see that the echo outputs are being generated
correctly every 5 mintes.</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>---->
rrd-ext.sh</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2>HOSTNAME="$1"<BR>TESTNAME="$2"<BR>FNAME="$3"</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>if [ "$TESTNAME" =
"acpu" ]<BR>then<BR> echo "`date`"
>>
/tmp/hobbit.$HOSTNAME.$TESTNAME<BR>
echo "$FNAME" >>
/tmp/hobbit.$HOSTNAME.$TESTNAME<BR> #
Analyze the message we got<BR> #
ACPU=`grep "connected" $FNAME | awk '{print
$14}'`<BR> ACPU=`grep "The 5" $FNAME |
cut -d"(" -f2 | cut -d"." -f1`<BR> #
The RRD dataset definitions<BR> echo
"DS:acpu:GAUGE:600:0:100"<BR> # The
filename<BR> echo
"acpu.rrd"<BR> # The
data<BR> echo
"$ACPU"<BR> echo "$ACPU"
>> /tmp/hobbit.$HOSTNAME.$TESTNAME<BR>fi</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>The value I want to
graph is simply a cpu % counter, have I got the above values and setting correct
for this ?</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>Any help or pointers
appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>Output that this
produces is below showing that it is getting the data correctly from the status
input.</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>--->
/tmp/hobbit.$HOSTNAME.$TESTNAME</FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial size=2>Wed Nov 29 19:54:07
GMT 2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_13879<BR>14<BR>Wed Nov 29
19:59:05 GMT 2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_26569<BR>25<BR>Wed Nov
29 20:04:07 GMT 2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_2788<BR>17<BR>Wed Nov
29 20:09:12 GMT
2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_11944<BR>9<BR></FONT></SPAN></DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2>Ger.</DIV></FONT></SPAN>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2> </DIV></FONT></SPAN>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=519020520-29112006><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY></HTML>