<!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><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>