<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>

<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><a href="mailto:sigurdur@raforninn.is"
title="sigurdur@raforninn.is">Siguršur Gušbrandsson</a> wrote a pretty detailed
tutorial on what he through setting up a custom graph that I put up on The Shire’s
tutorial page.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>=G=<span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Bill Richardson
[mailto:wrichardson@llbean.com] <br>
<b>Sent:</b> Monday, August 11, 2008 9:54 AM<br>
<b>To:</b> hobbit@hswn.dk<br>
<b>Subject:</b> [hobbit] RRD Graphing configuration<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
have looked high and low for a way to change how custom rrd's are created
in hobbit.</span><o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
have created a custom script to graph and have 2 problems that I would like to
figure out.</span><o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>1.)
I would like to change the step from 300 secs to 60 secs in the rrd's and
run the script ever 60 secs instead of 300 secs. "The default rrd behavior
is set to 300 secs"</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>2.)
I would like to get the true values not average. The problem is I
have data that I want to graph that can range from 0 to 5 
"thats 0, 1, 2, 3, 4  or 5" and the graph shows average so my
graphs come out with numbers like 6m "6 milli" for a true value of 2
and so on. The problem is the data will sit a 0 for an hour or more
and then go to 1 or 2 for just one sample. Average is not the right choice
and I cant get the true figures I 'm looking for.</span><o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'> Seems
like the way to do this is in the hobbitserver.cfg. I added the following to
the hobbitserver.cfg</span><o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal>NCV_testgraph="test1total:GAUGE,test2total:GAUGE,test3total:GAUGE"<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>What
other values can you pass to rrd other than GAUGE? Can I set a step to say 60
instead or 300 and can I change the default behavior of AVERAGE to something
else that may work for my above example? The rrd docs are not clear on this.</span><o:p></o:p></p>

<div>

<p class=MsoNormal> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Early
on I was thinking that maybe I could fix the AVERAGE problem with a change to
the hobbitgraph.cfg but this is what I found:</span><o:p></o:p></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>The
hobbitgraph.cfg does not have any effect on how rrd file is created.
I deleted the testgraph.rrd made the changes to hobbitgraph.cfg and no go.
You cant see the graphs if you use anything but AVERAGE after changing the
hobbitgraph.cfg. It looks like the *.rrd's are created by default
"AVERAGE" and you just edit the hobbitgraph.cfg to view
whats already built. I need to figure out how to change the way the rrd's
are built and its not thru the hobbitgraph.cfg.</span><o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>BTW
here is the output from rrdtool dump see attached. </span><o:p></o:p></p>

<p class=MsoNormal> <o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>You
will see two areas that need to be changed "the step 300 and AVERAGE"</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>1:</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><!--
Round Robin Database Dump --><rrd> <version> 0003
</version></span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><step>
300 </step> <!-- Seconds --></span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>2:</span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><!--
Round Robin Archives --> <rra></span><o:p></o:p></p>

<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><cf>
AVERAGE </cf></span><o:p></o:p></p>

<div>

<p class=MsoNormal> <o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Thanks
for any clues... : )</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal> <o:p></o:p></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Bill
Richardson</span><o:p></o:p></p>

<div>

<p class=MsoNormal> <o:p></o:p></p>

</div>

</div>

</body>

</html>