<div>You mean like this extract from hobbitgraph.cfg??</div><div><br></div><div>     [users]</div><div>             TITLE Users and Processes</div><div>             YAXIS #</div><div>             DEF:p=procs.rrd:la:AVERAGE</div>
<div>             DEF:u=users.rrd:la:AVERAGE</div><div>             AREA:p#00CC00:Processes</div><div>             LINE1:u#000099:Users</div><div><br></div><div>Multiple DEFs with as many rrds as you like...  :)</div><div>
<br></div><div>Ralph Mitchell</div><div><br></div><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman <span dir="ltr"><<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Never mind, missing the name of my UPS on hobbitgraphs.<br>
<br>
How does one put multiple UPS on a single graph, though?  I'm looking<br>
at the disk statement and I don't see where a second rrd file comes in<br>
to play.  Is it necessary for one graph to load from one rrd file?<br>
<div class="im"><br>
Josh Luthman<br>
Office: 937-552-2340<br>
Direct: 937-552-2343<br>
1100 Wayne St<br>
Suite 1337<br>
Troy, OH 45373<br>
<br>
<br>
<br>
</div>On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman<br>
<div><div></div><div class="h5"><<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>> wrote:<br>
> I am having an issue with the graphs.  Is it possible the RRD was<br>
> created without supporting of two decimal places?<br>
><br>
> They are being referenced on their pages but the image does not show<br>
> up.  The RRD files exist and do have values:<br>
><br>
> -> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"<br>
>                <name> 111111111</name><br>
>                <type> GAUGE </type><br>
>                <last_ds> 119.00 </last_ds><br>
>                <name> 222222222</name><br>
>                <type> GAUGE </type><br>
>                <last_ds> 121.00 </last_ds><br>
>                <name> 33333333333</name><br>
>                <type> GAUGE </type><br>
>                <last_ds> 120.00 </last_ds><br>
><br>
><br>
> Josh Luthman<br>
> Office: 937-552-2340<br>
> Direct: 937-552-2343<br>
> 1100 Wayne St<br>
> Suite 1337<br>
> Troy, OH 45373<br>
><br>
><br>
><br>
> On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman<br>
> <<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>> wrote:<br>
>> That fixed it!  Thank you!<br>
>><br>
>> Josh Luthman<br>
>> Office: 937-552-2340<br>
>> Direct: 937-552-2343<br>
>> 1100 Wayne St<br>
>> Suite 1337<br>
>> Troy, OH 45373<br>
>><br>
>><br>
>> On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <<a href="mailto:waa-hobbitml@revpol.com">waa-hobbitml@revpol.com</a>><br>
>> wrote:<br>
>>><br>
>>> On 07/28/10 12:29, Josh Luthman wrote:<br>
>>> >  >Unless I am mistaken, the test I wrote will be set the status to<br>
>>> > yellow if<br>
>>> > the<br>
>>> >> UPS load is greater than or equal to $yellowtest (80%) and the status<br>
>>> >> will<br>
>>> > be<br>
>>> >> set to red if the UPS load is eualto or greater than $redtest (80%).<br>
>>> ><br>
>>> > While this may be your intention that is not what I'm seeing.  I am<br>
>>> > getting<br>
>>> > a red condition with these loads.<br>
>>> ><br>
>>> > - UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1<br>
>>> ><br>
>>> > apcxxxxxx01 : 51.00<br>
>>> > apcyyyy01 : 11.00<br>
>>> > apczzzzzzzz01 : 12.00<br>
>>> ><br>
>>> > My yellow and red are 80 and 90 like you suggest (or at least your<br>
>>> > default<br>
>>> > is =)<br>
>>> ><br>
>>> > -> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test<br>
>>> > datatest="ups\.load:"<br>
>>> > yellowtest="80"<br>
>>> > redtest="90"<br>
>>> ><br>
>>> > Josh Luthman<br>
>>><br>
>>><br>
>>> Ah... I see it...<br>
>>><br>
>>> Your UPS reports load % with two decimal points (51.00), mine reports %<br>
>>> load<br>
>>> with one (35.6)<br>
>>><br>
>>> So the logic in the script is correct, but the part where I was stripping<br>
>>> past<br>
>>> the decimal failed to take into account more than one decimal.<br>
>>><br>
>>> By only stripping the decimal and one numeral past it, the test is saying<br>
>>> "if<br>
>>> 510 > 90 then set the status to red"<br>
>>><br>
>>><br>
>>> To fix it, change the line:<br>
>>><br>
>>> datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`<br>
>>><br>
>>> to<br>
>>><br>
>>> datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`<br>
>>><br>
>>><br>
>>> P.S. I already made all the changes I mentioned in may last email and will<br>
>>> be<br>
>>> putting up the simplified versions possibly later today, including this<br>
>>> fix.<br>
>>><br>
>>><br>
>>> Thanks Josh<br>
>>><br>
>>> --<br>
>>> Bill Arlofski<br>
>>> Reverse Polarity, LLC<br>
>>><br>
>>> To unsubscribe from the xymon list, send an e-mail to<br>
>>> <a href="mailto:xymon-unsubscribe@xymon.com">xymon-unsubscribe@xymon.com</a><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
<br>
To unsubscribe from the xymon list, send an e-mail to<br>
<a href="mailto:xymon-unsubscribe@xymon.com">xymon-unsubscribe@xymon.com</a><br>
<br>
<br>
</div></div></blockquote></div><br>