Andy,<br><br> I orginally had done that and set them to GAUGE but the database constantly returned NAN or UNKN values, until I changed it to DERIVE and it worked.... I will rebuild the RRD and try it again.<br><br><div class="gmail_quote">
On Dec 3, 2007 11:29 AM, Andy Riebs <<a href="mailto:andy.riebs@hp.com">andy.riebs@hp.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Marc,<br><br>If the data that you are gathering are the total number of current users<br>on a set of systems, for example, you probably want to use "GAUGE"<br>instead of "DERIVE" in your rrd. DERIVE (and "COUNTER", for that
<br>matter) both assume numbers that should constantly increase.<br><br>hth!<br><font color="#888888">/andy<br></font><div><div></div><div class="Wj3C7c"><br>On Mon, 2007-12-03 at 15:25 +0000, Marc T. Kaplan wrote:<br>> Andy,
<br>><br>><br>> You are right, I was not sure if it was a specific issue or general<br>> given RRDtools. I posted parts of the script you referenced in your<br>> reply below. I have run different values and tried reading up on RRD
<br>> to understand it better, given the specific database I am trying to<br>> create. This is more or less a project that I was thrown into head<br>> first and I am still trying to understand everything related to RRD.
<br>> If you see anything specific regarding the data below please tell me<br>> what might be wrong.<br>><br>> ******************************************************************************<br>><br>> rrdtool create $rrd_dir/usr.rrd -s 86400 \
<br>> DS:alpha:DERIVE:172800:U:U DS:delta:DERIVE:172800:U:U<br>> DS:eta:DERIVE:172800:U:U DS:epsilon:DERIVE:172800:U:U \<br>> DS:gamma:DERIVE:172800:U:U DS:iota:DERIVE:172800:U:U<br>> DS:kappa:DERIVE:172800:U:U DS:lambda:DERIVE:172800:U:U \
<br>> DS:omega:DERIVE:172800:U:U DS:theta:DERIVE:172800:U:U<br>> DS:xi:DERIVE:172800:U:U DS:zeta:DERIVE:172800:U:U \<br>> RRA:AVERAGE:0.5:2:90; \<br>><br>> ******************************************************************************
<br>><br>> alpha=$(grep alpha $fileloc | awk -F': ' '{print $2}') \<br>> delta=$(grep delta $fileloc | awk -F': ' '{print $2}') \<br>> eta=$(grep ' eta' $fileloc | awk -F': ' '{print $2}') \
<br>> epsilon=$(grep epsilon $fileloc | awk -F': ' '{print $2}') \<br>> gamma=$(grep gamma $fileloc | awk -F': ' '{print $2}') \<br>> iota=$(grep iota $fileloc | awk -F': ' '{print $2}') \
<br>> kappa=$(grep kappa $fileloc | awk -F': ' '{print $2}') \<br>> lambda=$(grep lambda $fileloc | awk -F': ' '{print $2}') \<br>> omega=$(grep omega $fileloc | awk -F': ' '{print $2}') \
<br>> theta=$(grep theta $fileloc | awk -F': ' '{print $2}') \<br>> xi=$(grep xi $fileloc | awk -F': ' '{print $2}') \<br>> zeta=$(grep zeta $fileloc | awk -F': ' '{print $2}')
<br>><br>> rrdtool update $rrd_dir/usr.rrd N:$alpha:$delta:$eta:$epsilon:$gamma:<br>> $iota:$kappa:$lambda:$omega:$theta:$xi:$zeta;<br>><br>> *****************************************************************************
<br>><br>> rrdtool graph usr.rrd.gif --title="Users per server" \<br>> --start -1m \<br>> --vertical-label=Users \<br>> --alt-autoscale \<br>> --units-length 10 \<br>> --units-exponent 0 \<br>
> DEF:pta=usr.rrd:alpha:AVERAGE LINE1:pta#000000:Alpha \<br>> DEF:ptd=usr.rrd:delta:AVERAGE LINE1:ptd#151B54:Delta \<br>> DEF:pte=usr.rrd:eta:AVERAGE LINE1:pte#463E41:Eta \<br>> DEF:ptep=usr.rrd:epsilon:AVERAGE
LINE1:ptep#800517:Epsilon \<br>> DEF:ptg=usr.rrd:gamma:AVERAGE LINE1:ptg#8E35EF:Gamma \<br>> DEF:pti=usr.rrd:iota:AVERAGE LINE1:pti#F778A1:Iota \<br>> DEF:ptk=usr.rrd:kappa:AVERAGE LINE1:ptk#6698FF:Kappa \<br>> DEF:ptl=
usr.rrd:lambda:AVERAGE LINE1:ptl#667C26:Lambda \<br>> DEF:pto=usr.rrd:omega:AVERAGE LINE1:pto#87F717:Omega \<br>> DEF:ptt=usr.rrd:theta:AVERAGE LINE1:ptt#FFFC17:Theta \<br>> DEF:ptx=usr.rrd:xi:AVERAGE LINE1:ptx#C47451:Xi \
<br>> DEF:ptz=usr.rrd:zeta:AVERAGE LINE1:ptz#806517:Zeta<br>><br>><br>> On Dec 3, 2007 10:18 AM, Andy Riebs <<a href="mailto:andy.riebs@hp.com">andy.riebs@hp.com</a>> wrote:<br>> Marc,<br>>
<br>> "Reversed values" is not the norm :)<br>><br>> It would help to send along the commands you are using the<br>> create the<br>> graph, and, perhaps, the commands that you are using to store
<br>> the data.<br>><br>> /andy<br>><br>><br>> On Mon, 2007-12-03 at 15:11 +0000, Marc T. Kaplan wrote:<br>> > Hello all,<br>> ><br>> ><br>
> > Just a quick question, I have gotten my RRD setup and it<br>> is<br>> > running and storing correctly but upon graphing the data I<br>> am<br>> > receiving data that is a bit strange. It seems that
<br>> everything is<br>> > getting graphed in reverse, that is that everything is<br>> showing as a<br>> > negative when it should be positive. Is there anything<br>> specific I
<br>> > should look up or do to change the values so they are<br>> plotted<br>> > correctly?<br>><br>> --<br>> Andy Riebs, HP High Performance Computing R&D
<br>> Technology for better business outcomes<br>> Linux Software, <<a href="http://www.hp.com/go/clusters" target="_blank">http://www.hp.com/go/clusters</a>><br>> Catalyst Program, <
<a href="http://www.hp.com/go/catalysts" target="_blank">http://www.hp.com/go/catalysts</a>><br>> (w) +1.603.884.1521, <a href="mailto:andy.riebs@hp.com">andy.riebs@hp.com</a><br>> (h) <a href="mailto:andy@candooz.com">
andy@candooz.com</a><br>> My opinions are not necessarily those of HP<br>><br>><br></div></div>--<br><div><div></div><div class="Wj3C7c">Andy Riebs, HP High Performance Computing R&D<br> Technology for better business outcomes
<br>Linux Software, <<a href="http://www.hp.com/go/clusters" target="_blank">http://www.hp.com/go/clusters</a>><br>Catalyst Program, <<a href="http://www.hp.com/go/catalysts" target="_blank">http://www.hp.com/go/catalysts
</a>><br>(w) +1.603.884.1521, <a href="mailto:andy.riebs@hp.com">andy.riebs@hp.com</a><br>(h) <a href="mailto:andy@candooz.com">andy@candooz.com</a><br>My opinions are not necessarily those of HP<br><br></div></div></blockquote>
</div><br>