>Unless I am mistaken, the test I wrote will be set the status to yellow if the<br>
>UPS load is greater than or equal to $yellowtest (80%) and the status will 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 getting 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 default 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 clear="all">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><div class="gmail_quote">On Wed, Jul 28, 2010 at 12:09 PM, Bill Arlofski <span dir="ltr"><<a href="mailto:waa-hobbitml@revpol.com">waa-hobbitml@revpol.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

On 07/27/10 18:36, Josh Luthman wrote:<br>
> Works very well!<br>
<br>
Excellent!  That's good to hear.<br>
<div class="im"><br>
> I'm not sure about up-load, though.  It seems like it is<br>
> expecting you to use 80% or 90% and below is a bad thing.<br>
> For me, this will not work. I try to minimize load and get<br>
> battery runtime.<br>
<br>
</div>I am not sure what you mean here.   I chose 80% and 90% as arbitrary test<br>
settings that may be lowered to whatever someone thinks is reasonable.<br>
<br>
Unless I am mistaken, the test I wrote will be set the status to yellow if the<br>
UPS load is greater than or equal to $yellowtest (80%) and the status will be<br>
set to red if the UPS load is eualto or greater than $redtest (80%).<br>
<br>
So we are on the same page I think... You want low loads on your UPS if<br>
possible, and want to go yellow, then red as the % load increases.   I think I<br>
just failed to choose reasonable default values.  ;)<br>
<div class="im"><br>
> This was quite simple once you get NUT configured.<br>
<br>
</div>Haha... Yeah, NUT can be a PITA, but it is generally worth the initial time<br>
spent.<br>
<div class="im"><br>
> Also I would suggest using a variable that each of the xymon_nut* ext<br>
> scripts can look at, it's a bit annoying to change them all, but here is how<br>
<br>
</div>Yeah, thanks for the advice Josh... I will probably implement that when I get<br>
some time to go back to those scripts.  That whole thing started as a way to<br>
just monitor the load or the AC input voltage, then it grew into five<br>
separate, but very similar scripts over time.<br>
<br>
And since the binaries are all in the same place on my test machine, those<br>
were just copied from the previous script, so it was not an issue for me which<br>
is why I hadn't considered that..<br>
<br>
<br>
<br>
Oh... And guess what?  I just realized they are all already defined in<br>
~xymon/server/etc/hobbitserver.cfg which gets sourced before the script is<br>
run, so you could probably just comment out those assignments (after adding an<br>
ECHO variable to hobbitserver.cfg)<br>
<br>
I will modify the scripts and not have a variable assignment for "echo" though<br>
since echo is built in to most shells (including bash that my scripts use)<br>
While writing the scripts, I found I had a /bin/echo binary so I set a<br>
variable for it.<br>
<br>
Update coming soon I guess. ;)<br>
<br>
Cheers and thanks for the feedback!<br>
<div class="im"><br>
<br>
--<br>
Bill Arlofski<br>
Reverse Polarity, LLC<br>
<br>
To unsubscribe from the xymon list, send an e-mail to<br>
</div><a href="mailto:xymon-unsubscribe@xymon.com">xymon-unsubscribe@xymon.com</a><br>
<br>
<br>
</blockquote></div><br>