Did you mean to have all three DEFS the same rrd/variable:<div><br></div><div><div>       DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE</div><div>       DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE</div><div>       DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE</div>
<div><br></div><div>You can also put the LINE lines in between the GPRINTs so that the colored dots show up in the same line as the appropriate cur/min/max/avg values.</div><div><br></div><div>Ralph Mitchell</div><div><br>
</div><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 10:37 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;">
I find this works quite well for me.  Notice the smaller line size the<br>
farther down it goes - this enables you to actually see the bigger<br>
lines above (behind) the others.<br>
<br>
Also note that the LINE is not being commented at the end but is a<br>
identifying a hex color.<br>
<br>
<a href="http://imgur.com/33K2w.png" target="_blank">http://imgur.com/33K2w.png</a><br>
<br>
[in-voltage]<br>
        TITLE Input AC Voltage<br>
        YAXIS VAC<br>
        DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE<br>
        DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE<br>
        DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE<br>
        LINE6.5:FIRSTUPS#00CCCC:FIRSTUPS<br>
        LINE3.5:SECONDUPS#CC0000:SECONDUPS<br>
        LINE1.5:THIRDUPS#FFFF00:THIRDUPS<br>
        COMMENT:\n<br>
        GPRINT:FIRSTUPS:LAST: FIRSTUPS \: %5.1lf%s (cur)<br>
        GPRINT:FIRSTUPS:MAX: \: %5.1lf%s (max)<br>
        GPRINT:FIRSTUPS:MIN: \: %5.1lf%s (min)<br>
        GPRINT:FIRSTUPS:AVERAGE: \: %5.1lf%s (avg)\n<br>
        GPRINT:SECONDUPS:LAST: SECONDUPS \: %5.1lf%s (cur)<br>
        GPRINT:SECONDUPS:MAX: \: %5.1lf%s (max)<br>
        GPRINT:SECONDUPS:MIN: \: %5.1lf%s (min)<br>
        GPRINT:SECONDUPS:AVERAGE: \: %5.1lf%s (avg)\n<br>
        GPRINT:THIRDUPS:LAST: THIRDUPS \: %5.1lf%s (cur)<br>
        GPRINT:THIRDUPS:MAX: \: %5.1lf%s (max)<br>
        GPRINT:THIRDUPS:MIN: \: %5.1lf%s (min)<br>
        GPRINT:THIRDUPS:AVERAGE: \: %5.1lf%s (avg)\n<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 7:39 PM, Josh Luthman<br>
<div><div></div><div class="h5"><<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>> wrote:<br>
> I see!  Would be nice to have an example or place to document this in more<br>
> detail.  Could we start a public Xymon Wiki for these kinds of things?<br>
><br>
> I believe I have it correct - three DEF, LINE and GPRINT lines (note that<br>
> they are being escaped with \ ) for three UPS units.  I'm not certain as the<br>
> data is all at 120v at the moment.<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 6:20 PM, Ralph Mitchell <<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>><br>
> wrote:<br>
>><br>
>> You mean like this extract from hobbitgraph.cfg??<br>
>>      [users]<br>
>>              TITLE Users and Processes<br>
>>              YAXIS #<br>
>>              DEF:p=procs.rrd:la:AVERAGE<br>
>>              DEF:u=users.rrd:la:AVERAGE<br>
>>              AREA:p#00CC00:Processes<br>
>>              LINE1:u#000099:Users<br>
>> Multiple DEFs with as many rrds as you like...  :)<br>
>> Ralph Mitchell<br>
>><br>
>> On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman<br>
>> <<a href="mailto:josh@imaginenetworksllc.com">josh@imaginenetworksllc.com</a>> wrote:<br>
>>><br>
>>> 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>
>>><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 2:41 PM, Josh Luthman<br>
>>> <<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<br>
>>> >> <<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<br>
>>> >>> >> status<br>
>>> >>> >> will<br>
>>> >>> > be<br>
>>> >>> >> set to red if the UPS load is eualto or greater than $redtest<br>
>>> >>> >> (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>
>>> >>> %<br>
>>> >>> load<br>
>>> >>> with one (35.6)<br>
>>> >>><br>
>>> >>> So the logic in the script is correct, but the part where I was<br>
>>> >>> 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<br>
>>> >>> 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<br>
>>> >>> will<br>
>>> >>> be<br>
>>> >>> putting up the simplified versions possibly later today, including<br>
>>> >>> 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>
>><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></div>