<!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=800194420-30112006><FONT face=Arial
color=#0000ff size=2>Sorry Greg, which temp file, brain is getting a bit fried
here :-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=800194420-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=800194420-30112006><FONT face=Arial
color=#0000ff size=2>The /tmp log file which the rrd-ext.sh is outputting to is
showing which means the data is comming in from the BB status command every time
the scripts run.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=800194420-30112006></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=800194420-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Thu Nov 30 20:31:35 GMT
2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_400<BR>18<BR>Thu Nov 30 20:36:36 GMT
2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_9081<BR>17<BR>Thu Nov 30 20:38:35 GMT
2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_13633<BR>13<BR>Thu Nov 30 20:43:35
GMT 2006<BR>/usr/lib/hobbit/server/tmp/rrd_msg_24605<BR>14<BR></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=800194420-30112006>Ger.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Hubbard, Greg L
[mailto:greg.hubbard@eds.com] <BR><B>Sent:</B> 30 November 2006
20:35<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> RE: [hobbit] Custom RRD
graphs<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=772203120-30112006><FONT face=Arial
color=#0000ff size=2>Sounds good -- you have almost written a tutorial on how to
add custom graphs</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=772203120-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=772203120-30112006><FONT face=Arial
color=#0000ff size=2>So what is in your temp file? I usually write this
stuff to a log file.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=772203120-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=772203120-30112006><FONT face=Arial
color=#0000ff size=2>GLH</FONT></SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>From:</B> Ger Maguire
[mailto:ger@fwi.ie] <BR><B>Sent:</B> Thursday, November 30, 2006 2:17
PM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> RE: [hobbit] Custom RRD
graphs<BR></FONT><BR></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>I think I have gone through all the steps and have
poured over the docs and manpages</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>So far:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>1 Created custom script outputing data to hobbit using
status switch</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>$BBHOME/bin/bb $BBDISP "status $HOST.$TEST $COLOUR
$OUTPUT"<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>2 Created rrd-ext script and have it getting data as per
below (numeric vale for catching a % value)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>3 Modified hobbitserver.cfg</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>Added acpu test to TEST2RRD="cpu=la,disk, ...
,acpu"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>Added acpu test to GRAPHS="la,disk, ...
,acpu"</FONT></SPAN></DIV></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV><SPAN
class=691210320-30112006><FONT face=Arial color=#0000ff size=2>
<DIV dir=ltr align=left><SPAN class=691210320-30112006><FONT face=Arial
color=#0000ff size=2>4 Modified
hobbitlaunch.cfg</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2></FONT><FONT
face=Arial color=#0000ff size=2></FONT><BR><FONT face=Arial color=#0000ff
size=2>[rrdstatus]<BR> ENVFILE
/usr/lib/hobbit/server/etc/hobbitserver.cfg<BR>
NEEDS hobbitd<BR> CMD
hobbitd_channel --channel=status --log=$BBSERVERLOGS/rrd-status.log<BR><SPAN
class=691210320-30112006>
</SPAN>hobbitd_rrd --rrddir=$BBVAR/rrd
--extra-script=/usr/lib/hobbit/server/ext/rrd-ext.sh
--extra-tests=acpu<BR></DIV></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>I haven't modified [rrddata] as I'm sending the data
in using the status command but I'll stick it in and see if it makes a
difference.<BR></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>Added the test itself to hobbitlaunch to run every 5
mins, all works ok pages update in hobbit</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>[acpu]<BR>
ENVFILE
/usr/lib/hobbit/server/etc/hobbitserver.cfg<BR>
NEEDS hobbitd<BR> CMD
$BBHOME/ext/acpu.sh<BR> INTERVAL
5m<BR></SPAN></FONT></DIV></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006> </DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>5 Modified hobbitgraph.cfg with the
following</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006> </DIV></SPAN></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>[acpu]<BR>
TITLE CPU Utilisation<BR> YAXIS %
Load<BR>
DEF:acpu=acpu.rrd:acpu:AVERAGE<BR>
AREA:acpu#00CC00:Utilisation<BR>
GPRINT:acpu:LAST: \: %5.1lf%s
(cur)<BR> GPRINT:acpu:MAX: \:
%5.1lf%s (max)<BR> GPRINT:acpu:MIN:
\: %5.1lf%s (min)<BR>
GPRINT:acpu:AVERAGE: \: %5.1lf%s (avg)\n</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006></SPAN></FONT><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>The rrd files get created in the correct place and
the pages in hobbit show the graph but there is just no data being displayed
and the timestamp on the acpu.rrd files is showing they are not being
updated.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>This is where I'm stumped, the log files don't show
any relevant info or messages to point me to anything thats
wrong.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=691210320-30112006>I'm running it on debian sarge distro using the .deb
package from sourceforge.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT size=+0><SPAN class=691210320-30112006><FONT
face=Arial color=#0000ff size=2>Ger.</FONT></SPAN></DIV></FONT>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Hubbard, Greg L
[mailto:greg.hubbard@eds.com] <BR><B>Sent:</B> 30 November 2006
19:55<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> RE: [hobbit] Custom RRD
graphs<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2>Why bother when Hobbit will use your echo output to do
that?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2>But there is more to graphing than simply creating the
RRD files. Next you have to create graph definitions that will use your
new files, and these graphs have to work. Then you can add your new
graphs to the Hobbit server so they will show up with the associated test
(TEST2RRD variable) and/or in the trends display.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2>You say you see the data being echoed -- are the RRD
files not getting created/updated? Did you add your rrd-ext to the right
place on the server? Did you add it to hobbit-rrd for both data and
status messages?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2>(or whatever, I am going from dim
memory)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=999485119-30112006><FONT face=Arial
color=#0000ff size=2>GLH</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<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> Thursday, November 30, 2006 1:44 PM<BR><B>To:</B>
hobbit@hswn.dk<BR><B>Subject:</B> RE: [hobbit] Custom RRD
graphs<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>