Xymon Mailing List Archive search

New UPS monitor added to Xymonton

19 messages in this thread

list Bill Arlofski · Tue, 13 Jul 2010 19:02:21 -0400 ·
I just added a new entry to the Xymonton monitors page.

The set of scripts is to monitor and graph AC input voltage, AC output
voltage, battery charge %, battery voltagee, and UPS Load % of UPSes monitored
by the Network UPS tools (NUT) suite.

NUT is a great open-source UPS monitoring project who's primary goal as stated
on their website is: "...to provide reliable monitoring of UPS and PDU
hardware and ensure safe shutdowns of the systems which are connected. We
attempt to monitor every kind of UPS and PDU, given sufficient interest."

NUT may be found at http://www.networkupstools.org/

The latest versions of the xymon_nut_*.sh scripts, as well as instruction on
installing them may be found at http://www.revpol.com/xymon_nut_scripts

Hope these are useful to someone. :)

P.S.  I am not affiliated with the NUT project in any way other than that I
recommend, install and support it at my client's sites.

(A similar message may be cross-posted to the NUT users mailing list)

-- 
Bill Arlofski
Reverse Polarity, LLC
list Josh Luthman · Tue, 13 Jul 2010 19:47:50 -0400 ·
I will definitely be trying this out in the next few days.

Thanks a bunch for sharing!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
quoted from Bill Arlofski


On Tue, Jul 13, 2010 at 7:02 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>wrote:
I just added a new entry to the Xymonton monitors page.

The set of scripts is to monitor and graph AC input voltage, AC output
voltage, battery charge %, battery voltagee, and UPS Load % of UPSes
monitored
by the Network UPS tools (NUT) suite.

NUT is a great open-source UPS monitoring project who's primary goal as
stated
on their website is: "...to provide reliable monitoring of UPS and PDU
hardware and ensure safe shutdowns of the systems which are connected. We
attempt to monitor every kind of UPS and PDU, given sufficient interest."

NUT may be found at http://www.networkupstools.org/

The latest versions of the xymon_nut_*.sh scripts, as well as instruction
on
installing them may be found at http://www.revpol.com/xymon_nut_scripts

Hope these are useful to someone. :)

P.S.  I am not affiliated with the NUT project in any way other than that I
recommend, install and support it at my client's sites.

(A similar message may be cross-posted to the NUT users mailing list)

--
Bill Arlofski
Reverse Polarity, LLC

list Josh Luthman · Tue, 27 Jul 2010 18:36:49 -0400 ·
Works very well!  I'm not sure about up-load, though.  It seems like it is
expecting you to use 80% or 90% and below is a bad thing.  For me, this will
not work. I try to minimize load and get battery runtime.

This was quite simple once you get NUT configured.  The SNMP config
documentation was a bit lacking so I will share what mine looks like...

#etc/ups.conf
#this is for APC's snmp use called powernet
[apclocation01]#this can be anything you want, it's for your reference, but
must be unique
driver = snmp-ups
port = 192.168.1.10#changethis
community = public#changethis
snmp_version = v1
mibs = apcc
pollfreq = 60

Also I would suggest using a variable that each of the xymon_nut* ext
scripts can look at, it's a bit annoying to change them all, but here is how
I did it:

#the default destination directory is /usr/local/ups
find . -name "xymon_nut*sh" -exec sed -i
"s,\/usr\/bin\/upsc,\/usr\/local\/ups\/bin\/upsc," '{}' \;
#this is to specify where the NUT server is
find . -name "xymon_nut*sh" -exec sed -i "s,host.example.com,127.0.0.1,"
'{}' \;
#these are your unique names in the statements of ups.conf so it will
contact NUT with bin/upsc user-d1ddd78b738e@xymon.invalid and bin/upsc
user-1dff73ae8e7f@xymon.invalid
find . -name "xymon_nut*sh" -exec sed -i "s,apc1000,apc1\ apc2\ apc3," '{}'
quoted from Josh Luthman
\;

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Tue, Jul 13, 2010 at 7:47 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
I will definitely be trying this out in the next few days.

Thanks a bunch for sharing!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Tue, Jul 13, 2010 at 7:02 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>wrote:
I just added a new entry to the Xymonton monitors page.

The set of scripts is to monitor and graph AC input voltage, AC output
voltage, battery charge %, battery voltagee, and UPS Load % of UPSes
monitored
by the Network UPS tools (NUT) suite.

NUT is a great open-source UPS monitoring project who's primary goal as
stated
on their website is: "...to provide reliable monitoring of UPS and PDU
hardware and ensure safe shutdowns of the systems which are connected. We
attempt to monitor every kind of UPS and PDU, given sufficient interest."

NUT may be found at http://www.networkupstools.org/

The latest versions of the xymon_nut_*.sh scripts, as well as instruction
on
installing them may be found at http://www.revpol.com/xymon_nut_scripts

Hope these are useful to someone. :)

P.S.  I am not affiliated with the NUT project in any way other than that
I
recommend, install and support it at my client's sites.

(A similar message may be cross-posted to the NUT users mailing list)

--
Bill Arlofski
Reverse Polarity, LLC

list Bill Arlofski · Wed, 28 Jul 2010 12:09:58 -0400 ·
On 07/27/10 18:36, Josh Luthman wrote:
Works very well!
Excellent!  That's good to hear.
quoted from Josh Luthman
I'm not sure about up-load, though.  It seems like it is
expecting you to use 80% or 90% and below is a bad thing.
For me, this will not work. I try to minimize load and get
battery runtime.
I am not sure what you mean here.   I chose 80% and 90% as arbitrary test
settings that may be lowered to whatever someone thinks is reasonable.

Unless I am mistaken, the test I wrote will be set the status to yellow if the
UPS load is greater than or equal to $yellowtest (80%) and the status will be
set to red if the UPS load is eualto or greater than $redtest (80%).

So we are on the same page I think... You want low loads on your UPS if
possible, and want to go yellow, then red as the % load increases.   I think I
just failed to choose reasonable default values.  ;)
This was quite simple once you get NUT configured.
Haha... Yeah, NUT can be a PITA, but it is generally worth the initial time
spent.
quoted from Josh Luthman
Also I would suggest using a variable that each of the xymon_nut* ext
scripts can look at, it's a bit annoying to change them all, but here is how
Yeah, thanks for the advice Josh... I will probably implement that when I get
some time to go back to those scripts.  That whole thing started as a way to
just monitor the load or the AC input voltage, then it grew into five
separate, but very similar scripts over time.

And since the binaries are all in the same place on my test machine, those
were just copied from the previous script, so it was not an issue for me which
is why I hadn't considered that..


Oh... And guess what?  I just realized they are all already defined in
~xymon/server/etc/hobbitserver.cfg which gets sourced before the script is
run, so you could probably just comment out those assignments (after adding an
ECHO variable to hobbitserver.cfg)

I will modify the scripts and not have a variable assignment for "echo" though
since echo is built in to most shells (including bash that my scripts use)
While writing the scripts, I found I had a /bin/echo binary so I set a
variable for it.

Update coming soon I guess. ;)

Cheers and thanks for the feedback!


--
Bill Arlofski
Reverse Polarity, LLC
list Josh Luthman · Wed, 28 Jul 2010 12:29:47 -0400 ·
quoted from Bill Arlofski
Unless I am mistaken, the test I wrote will be set the status to yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the status will
be
set to red if the UPS load is eualto or greater than $redtest (80%).
While this may be your intention that is not what I'm seeing.  I am getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from Bill Arlofski
On Wed, Jul 28, 2010 at 12:09 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>wrote:
On 07/27/10 18:36, Josh Luthman wrote:
Works very well!
Excellent!  That's good to hear.
I'm not sure about up-load, though.  It seems like it is
expecting you to use 80% or 90% and below is a bad thing.
For me, this will not work. I try to minimize load and get
battery runtime.
I am not sure what you mean here.   I chose 80% and 90% as arbitrary test
settings that may be lowered to whatever someone thinks is reasonable.

Unless I am mistaken, the test I wrote will be set the status to yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the status will
be
set to red if the UPS load is eualto or greater than $redtest (80%).

So we are on the same page I think... You want low loads on your UPS if
possible, and want to go yellow, then red as the % load increases.   I
think I
just failed to choose reasonable default values.  ;)
This was quite simple once you get NUT configured.
Haha... Yeah, NUT can be a PITA, but it is generally worth the initial time
spent.
Also I would suggest using a variable that each of the xymon_nut* ext
scripts can look at, it's a bit annoying to change them all, but here is
how
Yeah, thanks for the advice Josh... I will probably implement that when I
get
some time to go back to those scripts.  That whole thing started as a way
to
just monitor the load or the AC input voltage, then it grew into five
separate, but very similar scripts over time.

And since the binaries are all in the same place on my test machine, those
were just copied from the previous script, so it was not an issue for me
which
is why I hadn't considered that..


Oh... And guess what?  I just realized they are all already defined in
~xymon/server/etc/hobbitserver.cfg which gets sourced before the script is
run, so you could probably just comment out those assignments (after adding
an
ECHO variable to hobbitserver.cfg)

I will modify the scripts and not have a variable assignment for "echo"
though
since echo is built in to most shells (including bash that my scripts use)
While writing the scripts, I found I had a /bin/echo binary so I set a
variable for it.

Update coming soon I guess. ;)

Cheers and thanks for the feedback!


--
Bill Arlofski
Reverse Polarity, LLC

list Bill Arlofski · Wed, 28 Jul 2010 12:46:55 -0400 ·
quoted from Josh Luthman
On 07/28/10 12:29, Josh Luthman wrote:
Unless I am mistaken, the test I wrote will be set the status to yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the status will
be
set to red if the UPS load is eualto or greater than $redtest (80%).
While this may be your intention that is not what I'm seeing.  I am getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports % load
with one (35.6)

So the logic in the script is correct, but the part where I was stripping past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is saying "if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and will be
putting up the simplified versions possibly later today, including this fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC
list Josh Luthman · Wed, 28 Jul 2010 12:59:39 -0400 ·
That fixed it!  Thank you!
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from Bill Arlofski
On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>wrote:
On 07/28/10 12:29, Josh Luthman wrote:
Unless I am mistaken, the test I wrote will be set the status to yellow
if
the
UPS load is greater than or equal to $yellowtest (80%) and the status
will
be
set to red if the UPS load is eualto or greater than $redtest (80%).
While this may be your intention that is not what I'm seeing.  I am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports %
load
with one (35.6)

So the logic in the script is correct, but the part where I was stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and will
be
putting up the simplified versions possibly later today, including this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Josh Luthman · Wed, 28 Jul 2010 14:41:06 -0400 ·
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
                <name> 111111111</name>
                <type> GAUGE </type>
                <last_ds> 119.00 </last_ds>
                <name> 222222222</name>
                <type> GAUGE </type>
                <last_ds> 121.00 </last_ds>
                <name> 33333333333</name>
                <type> GAUGE </type>
                <last_ds> 120.00 </last_ds>
quoted from Josh Luthman


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>
quoted from Josh Luthman
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
 >Unless I am mistaken, the test I wrote will be set the status to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the status
will
be
set to red if the UPS load is eualto or greater than $redtest (80%).
While this may be your intention that is not what I'm seeing.  I am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports %
load
with one (35.6)

So the logic in the script is correct, but the part where I was stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and will
be
putting up the simplified versions possibly later today, including this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Josh Luthman · Wed, 28 Jul 2010 14:59:47 -0400 ·
Never mind, missing the name of my UPS on hobbitgraphs.

How does one put multiple UPS on a single graph, though?  I'm looking
at the disk statement and I don't see where a second rrd file comes in
to play.  Is it necessary for one graph to load from one rrd file?
quoted from Josh Luthman

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
               <name> 111111111</name>
               <type> GAUGE </type>
               <last_ds> 119.00 </last_ds>
               <name> 222222222</name>
               <type> GAUGE </type>
               <last_ds> 121.00 </last_ds>
               <name> 33333333333</name>
               <type> GAUGE </type>
               <last_ds> 120.00 </last_ds>


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <user-0b8af203a56e@xymon.invalid>
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
 >Unless I am mistaken, the test I wrote will be set the status to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the status
will
be
set to red if the UPS load is eualto or greater than $redtest (80%).
While this may be your intention that is not what I'm seeing.  I am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports %
load
with one (35.6)

So the logic in the script is correct, but the part where I was stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and will
be
putting up the simplified versions possibly later today, including this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Ralph Mitchell · Wed, 28 Jul 2010 18:20:31 -0400 ·
You mean like this extract from hobbitgraph.cfg??

     [users]
             TITLE Users and Processes
             YAXIS #
             DEF:p=procs.rrd:la:AVERAGE
             DEF:u=users.rrd:la:AVERAGE
             AREA:p#00CC00:Processes
             LINE1:u#000099:Users

Multiple DEFs with as many rrds as you like...  :)

Ralph Mitchell


On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
Never mind, missing the name of my UPS on hobbitgraphs.

How does one put multiple UPS on a single graph, though?  I'm looking
at the disk statement and I don't see where a second rrd file comes in
to play.  Is it necessary for one graph to load from one rrd file?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
               <name> 111111111</name>
               <type> GAUGE </type>
               <last_ds> 119.00 </last_ds>
               <name> 222222222</name>
               <type> GAUGE </type>
               <last_ds> 121.00 </last_ds>
               <name> 33333333333</name>
               <type> GAUGE </type>
               <last_ds> 120.00 </last_ds>


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <
user-0b8af203a56e@xymon.invalid>
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
Unless I am mistaken, the test I wrote will be set the status to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the
status
will
be
set to red if the UPS load is eualto or greater than $redtest (80%).
While this may be your intention that is not what I'm seeing.  I am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports %
load
with one (35.6)

So the logic in the script is correct, but the part where I was
stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is
saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and
will
be
putting up the simplified versions possibly later today, including this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Josh Luthman · Wed, 28 Jul 2010 19:39:02 -0400 ·
I see!  Would be nice to have an example or place to document this in more
detail.  Could we start a public Xymon Wiki for these kinds of things?

I believe I have it correct - three DEF, LINE and GPRINT lines (note that
they are being escaped with \ ) for three UPS units.  I'm not certain as the
data is all at 120v at the moment.
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from Ralph Mitchell
On Wed, Jul 28, 2010 at 6:20 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>wrote:
You mean like this extract from hobbitgraph.cfg??

     [users]
             TITLE Users and Processes
             YAXIS #
             DEF:p=procs.rrd:la:AVERAGE
             DEF:u=users.rrd:la:AVERAGE
             AREA:p#00CC00:Processes
             LINE1:u#000099:Users

Multiple DEFs with as many rrds as you like...  :)

Ralph Mitchell


On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid
quoted from Ralph Mitchell
wrote:
Never mind, missing the name of my UPS on hobbitgraphs.

How does one put multiple UPS on a single graph, though?  I'm looking
at the disk statement and I don't see where a second rrd file comes in
to play.  Is it necessary for one graph to load from one rrd file?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
               <name> 111111111</name>
               <type> GAUGE </type>
               <last_ds> 119.00 </last_ds>
               <name> 222222222</name>
               <type> GAUGE </type>
               <last_ds> 121.00 </last_ds>
               <name> 33333333333</name>
               <type> GAUGE </type>
               <last_ds> 120.00 </last_ds>


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <
user-0b8af203a56e@xymon.invalid>
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
Unless I am mistaken, the test I wrote will be set the status to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the
status
will
be
set to red if the UPS load is eualto or greater than $redtest
(80%).
While this may be your intention that is not what I'm seeing.  I am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports
%
load
with one (35.6)

So the logic in the script is correct, but the part where I was
stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is
saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and
will
be
putting up the simplified versions possibly later today, including
this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Josh Luthman · Wed, 28 Jul 2010 22:37:47 -0400 ·
I find this works quite well for me.  Notice the smaller line size the
farther down it goes - this enables you to actually see the bigger
lines above (behind) the others.

Also note that the LINE is not being commented at the end but is a
identifying a hex color.

http://imgur.com/33K2w.png

[in-voltage]
        TITLE Input AC Voltage
        YAXIS VAC
        DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
        DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
        DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
        LINE6.5:FIRSTUPS#00CCCC:FIRSTUPS
        LINE3.5:SECONDUPS#CC0000:SECONDUPS
        LINE1.5:THIRDUPS#FFFF00:THIRDUPS
        COMMENT:\n
        GPRINT:FIRSTUPS:LAST: FIRSTUPS \: %5.1lf%s (cur)
        GPRINT:FIRSTUPS:MAX: \: %5.1lf%s (max)
        GPRINT:FIRSTUPS:MIN: \: %5.1lf%s (min)
        GPRINT:FIRSTUPS:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:SECONDUPS:LAST: SECONDUPS \: %5.1lf%s (cur)
        GPRINT:SECONDUPS:MAX: \: %5.1lf%s (max)
        GPRINT:SECONDUPS:MIN: \: %5.1lf%s (min)
        GPRINT:SECONDUPS:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:THIRDUPS:LAST: THIRDUPS \: %5.1lf%s (cur)
        GPRINT:THIRDUPS:MAX: \: %5.1lf%s (max)
        GPRINT:THIRDUPS:MIN: \: %5.1lf%s (min)
        GPRINT:THIRDUPS:AVERAGE: \: %5.1lf%s (avg)\n
quoted from Josh Luthman

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 7:39 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I see!  Would be nice to have an example or place to document this in more
detail.  Could we start a public Xymon Wiki for these kinds of things?

I believe I have it correct - three DEF, LINE and GPRINT lines (note that
they are being escaped with \ ) for three UPS units.  I'm not certain as the
data is all at 120v at the moment.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 6:20 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid>
quoted from Josh Luthman
wrote:
You mean like this extract from hobbitgraph.cfg??
     [users]
             TITLE Users and Processes
             YAXIS #
             DEF:p=procs.rrd:la:AVERAGE
             DEF:u=users.rrd:la:AVERAGE
             AREA:p#00CC00:Processes
             LINE1:u#000099:Users
Multiple DEFs with as many rrds as you like...  :)
Ralph Mitchell

On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
Never mind, missing the name of my UPS on hobbitgraphs.

How does one put multiple UPS on a single graph, though?  I'm looking
at the disk statement and I don't see where a second rrd file comes in
to play.  Is it necessary for one graph to load from one rrd file?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
               <name> 111111111</name>
               <type> GAUGE </type>
               <last_ds> 119.00 </last_ds>
               <name> 222222222</name>
               <type> GAUGE </type>
               <last_ds> 121.00 </last_ds>
               <name> 33333333333</name>
               <type> GAUGE </type>
               <last_ds> 120.00 </last_ds>


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski
<user-0b8af203a56e@xymon.invalid>
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
 >Unless I am mistaken, the test I wrote will be set the status to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the
status
will
be
set to red if the UPS load is eualto or greater than $redtest
(80%).
While this may be your intention that is not what I'm seeing.  I am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on 127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine reports
%
load
with one (35.6)

So the logic in the script is correct, but the part where I was
stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is
saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email and
will
be
putting up the simplified versions possibly later today, including
this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Ralph Mitchell · Wed, 28 Jul 2010 22:50:49 -0400 ·
Did you mean to have all three DEFS the same rrd/variable:

       DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE

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.

Ralph Mitchell


On Wed, Jul 28, 2010 at 10:37 PM, Josh Luthman
quoted from Josh Luthman
<user-4c45a83f15cb@xymon.invalid>wrote:
I find this works quite well for me.  Notice the smaller line size the
farther down it goes - this enables you to actually see the bigger
lines above (behind) the others.

Also note that the LINE is not being commented at the end but is a
identifying a hex color.

http://imgur.com/33K2w.png

[in-voltage]
       TITLE Input AC Voltage
       YAXIS VAC
       DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       LINE6.5:FIRSTUPS#00CCCC:FIRSTUPS
       LINE3.5:SECONDUPS#CC0000:SECONDUPS
       LINE1.5:THIRDUPS#FFFF00:THIRDUPS
       COMMENT:\n
       GPRINT:FIRSTUPS:LAST: FIRSTUPS \: %5.1lf%s (cur)
       GPRINT:FIRSTUPS:MAX: \: %5.1lf%s (max)
       GPRINT:FIRSTUPS:MIN: \: %5.1lf%s (min)
       GPRINT:FIRSTUPS:AVERAGE: \: %5.1lf%s (avg)\n
       GPRINT:SECONDUPS:LAST: SECONDUPS \: %5.1lf%s (cur)
       GPRINT:SECONDUPS:MAX: \: %5.1lf%s (max)
       GPRINT:SECONDUPS:MIN: \: %5.1lf%s (min)
       GPRINT:SECONDUPS:AVERAGE: \: %5.1lf%s (avg)\n
       GPRINT:THIRDUPS:LAST: THIRDUPS \: %5.1lf%s (cur)
       GPRINT:THIRDUPS:MAX: \: %5.1lf%s (max)
       GPRINT:THIRDUPS:MIN: \: %5.1lf%s (min)
       GPRINT:THIRDUPS:AVERAGE: \: %5.1lf%s (avg)\n

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 7:39 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I see!  Would be nice to have an example or place to document this in
more
detail.  Could we start a public Xymon Wiki for these kinds of things?

I believe I have it correct - three DEF, LINE and GPRINT lines (note that
they are being escaped with \ ) for three UPS units.  I'm not certain as
the
data is all at 120v at the moment.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 6:20 PM, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid

wrote:
You mean like this extract from hobbitgraph.cfg??
     [users]
             TITLE Users and Processes
             YAXIS #
             DEF:p=procs.rrd:la:AVERAGE
             DEF:u=users.rrd:la:AVERAGE
             AREA:p#00CC00:Processes
             LINE1:u#000099:Users
Multiple DEFs with as many rrds as you like...  :)
Ralph Mitchell

On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
Never mind, missing the name of my UPS on hobbitgraphs.

How does one put multiple UPS on a single graph, though?  I'm looking
at the disk statement and I don't see where a second rrd file comes in
to play.  Is it necessary for one graph to load from one rrd file?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
               <name> 111111111</name>
               <type> GAUGE </type>
               <last_ds> 119.00 </last_ds>
               <name> 222222222</name>
               <type> GAUGE </type>
               <last_ds> 121.00 </last_ds>
               <name> 33333333333</name>
               <type> GAUGE </type>
               <last_ds> 120.00 </last_ds>


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski
<user-0b8af203a56e@xymon.invalid>
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
Unless I am mistaken, the test I wrote will be set the status
to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the
status
will
be
set to red if the UPS load is eualto or greater than $redtest
(80%).
While this may be your intention that is not what I'm seeing.  I
am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on
127.0.0.1
apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least
your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine
reports
%
load
with one (35.6)

So the logic in the script is correct, but the part where I was
stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is
saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email
and
will
be
putting up the simplified versions possibly later today, including
this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Josh Luthman · Wed, 28 Jul 2010 23:40:19 -0400 ·
Good catch, thank you!  Updated hobbitgraph.cfg and image...

http://imgur.com/N3pd5.png

[in-voltage]
        TITLE Input AC Voltage
        YAXIS VAC
        DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
        DEF:SECONDUPS=in-voltage.rrd:SECONDUPS:AVERAGE
        DEF:THIRDUPS=in-voltage.rrd:THIRDUPS:AVERAGE
        LINE1.5:FIRSTUPS#00CCCC:FIRSTUPS
        LINE1.5:SECONDUPS#CC0000:SECONDUPS
quoted from Ralph Mitchell
        LINE1.5:THIRDUPS#FFFF00:THIRDUPS
        COMMENT:\n
        GPRINT:FIRSTUPS:LAST: FIRSTUPS \: %5.1lf%s (cur)
        GPRINT:FIRSTUPS:MAX: \: %5.1lf%s (max)
        GPRINT:FIRSTUPS:MIN: \: %5.1lf%s (min)
        GPRINT:FIRSTUPS:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:SECONDUPS:LAST: SECONDUPS \: %5.1lf%s (cur)
        GPRINT:SECONDUPS:MAX: \: %5.1lf%s (max)
        GPRINT:SECONDUPS:MIN: \: %5.1lf%s (min)
        GPRINT:SECONDUPS:AVERAGE: \: %5.1lf%s (avg)\n
        GPRINT:THIRDUPS:LAST: THIRDUPS \: %5.1lf%s (cur)
        GPRINT:THIRDUPS:MAX: \: %5.1lf%s (max)
        GPRINT:THIRDUPS:MIN: \: %5.1lf%s (min)
        GPRINT:THIRDUPS:AVERAGE: \: %5.1lf%s (avg)\n


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 10:50 PM, Ralph Mitchell
quoted from Ralph Mitchell
<user-00a5e44c48c0@xymon.invalid> wrote:
Did you mean to have all three DEFS the same rrd/variable:
       DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
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.
Ralph Mitchell

On Wed, Jul 28, 2010 at 10:37 PM, Josh Luthman <user-4c45a83f15cb@xymon.invalid>
wrote:
I find this works quite well for me.  Notice the smaller line size the
farther down it goes - this enables you to actually see the bigger
lines above (behind) the others.

Also note that the LINE is not being commented at the end but is a
identifying a hex color.

http://imgur.com/33K2w.png

[in-voltage]
       TITLE Input AC Voltage
       YAXIS VAC
       DEF:FIRSTUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:SECONDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       DEF:THIRDUPS=in-voltage.rrd:FIRSTUPS:AVERAGE
       LINE6.5:FIRSTUPS#00CCCC:FIRSTUPS
       LINE3.5:SECONDUPS#CC0000:SECONDUPS
       LINE1.5:THIRDUPS#FFFF00:THIRDUPS
       COMMENT:\n
       GPRINT:FIRSTUPS:LAST: FIRSTUPS \: %5.1lf%s (cur)
       GPRINT:FIRSTUPS:MAX: \: %5.1lf%s (max)
       GPRINT:FIRSTUPS:MIN: \: %5.1lf%s (min)
       GPRINT:FIRSTUPS:AVERAGE: \: %5.1lf%s (avg)\n
       GPRINT:SECONDUPS:LAST: SECONDUPS \: %5.1lf%s (cur)
       GPRINT:SECONDUPS:MAX: \: %5.1lf%s (max)
       GPRINT:SECONDUPS:MIN: \: %5.1lf%s (min)
       GPRINT:SECONDUPS:AVERAGE: \: %5.1lf%s (avg)\n
       GPRINT:THIRDUPS:LAST: THIRDUPS \: %5.1lf%s (cur)
       GPRINT:THIRDUPS:MAX: \: %5.1lf%s (max)
       GPRINT:THIRDUPS:MIN: \: %5.1lf%s (min)
       GPRINT:THIRDUPS:AVERAGE: \: %5.1lf%s (avg)\n

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 7:39 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I see!  Would be nice to have an example or place to document this in
more
detail.  Could we start a public Xymon Wiki for these kinds of things?

I believe I have it correct - three DEF, LINE and GPRINT lines (note
that
they are being escaped with \ ) for three UPS units.  I'm not certain as
the
data is all at 120v at the moment.

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 6:20 PM, Ralph Mitchell
<user-00a5e44c48c0@xymon.invalid>
wrote:
You mean like this extract from hobbitgraph.cfg??
     [users]
             TITLE Users and Processes
             YAXIS #
             DEF:p=procs.rrd:la:AVERAGE
             DEF:u=users.rrd:la:AVERAGE
             AREA:p#00CC00:Processes
             LINE1:u#000099:Users
Multiple DEFs with as many rrds as you like...  :)
Ralph Mitchell

On Wed, Jul 28, 2010 at 2:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
Never mind, missing the name of my UPS on hobbitgraphs.

How does one put multiple UPS on a single graph, though?  I'm looking
at the disk statement and I don't see where a second rrd file comes in
to play.  Is it necessary for one graph to load from one rrd file?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
I am having an issue with the graphs.  Is it possible the RRD was
created without supporting of two decimal places?

They are being referenced on their pages but the image does not show
up.  The RRD files exist and do have values:

-> rrdtool dump out-voltage.rrd |grep "name\|type\|last_ds"
               <name> 111111111</name>
               <type> GAUGE </type>
               <last_ds> 119.00 </last_ds>
               <name> 222222222</name>
               <type> GAUGE </type>
               <last_ds> 121.00 </last_ds>
               <name> 33333333333</name>
               <type> GAUGE </type>
               <last_ds> 120.00 </last_ds>


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
<user-4c45a83f15cb@xymon.invalid> wrote:
That fixed it!  Thank you!

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski
<user-0b8af203a56e@xymon.invalid>
wrote:
On 07/28/10 12:29, Josh Luthman wrote:
 >Unless I am mistaken, the test I wrote will be set the status
to
yellow if
the
UPS load is greater than or equal to $yellowtest (80%) and the
status
will
be
set to red if the UPS load is eualto or greater than $redtest
(80%).
While this may be your intention that is not what I'm seeing.  I
am
getting
a red condition with these loads.

- UPS load % for apcxxxxxr01 apcyyyy01 apczzzzzzzzz01 on
127.0.0.1

apcxxxxxx01 : 51.00
apcyyyy01 : 11.00
apczzzzzzzz01 : 12.00

My yellow and red are 80 and 90 like you suggest (or at least
your
default
is =)

-> cat ~myhobbituser/server/ext/xymon_nut_ups-load.sh|grep test
datatest="ups\.load:"
yellowtest="80"
redtest="90"

Josh Luthman

Ah... I see it...

Your UPS reports load % with two decimal points (51.00), mine
reports
%
load
with one (35.6)

So the logic in the script is correct, but the part where I was
stripping
past
the decimal failed to take into account more than one decimal.

By only stripping the decimal and one numeral past it, the test is
saying
"if
510 > 90 then set the status to red"


To fix it, change the line:

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]//'`

to

datanopoint=`echo "$data" | "$SED" -e 's/\.[0-9]\{1,2\}//'`


P.S. I already made all the changes I mentioned in may last email
and
will
be
putting up the simplified versions possibly later today, including
this
fix.


Thanks Josh

--
Bill Arlofski
Reverse Polarity, LLC

list Buchan Milne · Thu, 29 Jul 2010 23:07:01 +0100 ·
quoted from Josh Luthman
On Thursday, 29 July 2010 00:39:02 Josh Luthman wrote:
I see!  Would be nice to have an example or place to document this in more
detail.
Documentation is in svn, feel free to submit documentation patches, or offer to improve the documentation (unfortunately, documentation does not write itself).
Could we start a public Xymon Wiki for these kinds of things?
There *IS* a public Xymon wiki:
http://sourceforge.net/apps/mediawiki/xymon/

I thought I had communicated it to this list.

At present, it is configured to require users to be logged in to SF to edit. If you have an SF account, and want to contribute to the wiki, please contact me, T. J. or the developers list.

I have asked T. J. to be the wiki admin, so please don't make huge changes without consulting him.

Regards,
Buchan
list TJ Yang · Fri, 30 Jul 2010 05:43:15 -0500 ·
On Thu, Jul 29, 2010 at 5:07 PM, Buchan Milne
quoted from Buchan Milne
<user-9b139aff4dec@xymon.invalid> wrote:
On Thursday, 29 July 2010 00:39:02 Josh Luthman wrote:
I see!  Would be nice to have an example or place to document this in more
detail.
Documentation is in svn, feel free to submit documentation patches, or offer to
improve the documentation (unfortunately, documentation does not write
itself).
Could we start a public Xymon Wiki for these kinds of things?
There *IS* a public Xymon wiki:
http://sourceforge.net/apps/mediawiki/xymon/

I thought I had communicated it to this list.

At present, it is configured to require users to be logged in to SF to edit. If
you have an SF account, and want to contribute to the wiki, please contact me,
T. J. or the developers list.

I have asked T. J. to be the wiki admin, so please don't make huge changes
without consulting him.
Hi Josh

Please go ahead and  put in your RRD notes on SF xymon wiki howto section.
I will consolidate your howto notes into bigger one after I move howto
from wikibook site.

tj
Regards,
Buchan

-- 
T.J. Yang
list Josh Luthman · Fri, 30 Jul 2010 18:30:48 -0400 ·
I will help write documentation as much as I can.  I don't think I can
do anything to the SVN or Wiki because of permission issues.  Also,
I'm totally ignorant as to operating inside SVN.
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from TJ Yang
On Fri, Jul 30, 2010 at 6:43 AM, TJ Yang <user-61afc885aa73@xymon.invalid> wrote:
On Thu, Jul 29, 2010 at 5:07 PM, Buchan Milne
<user-9b139aff4dec@xymon.invalid> wrote:
On Thursday, 29 July 2010 00:39:02 Josh Luthman wrote:
I see!  Would be nice to have an example or place to document this in more
detail.
Documentation is in svn, feel free to submit documentation patches, or offer to
improve the documentation (unfortunately, documentation does not write
itself).
Could we start a public Xymon Wiki for these kinds of things?
There *IS* a public Xymon wiki:
http://sourceforge.net/apps/mediawiki/xymon/

I thought I had communicated it to this list.

At present, it is configured to require users to be logged in to SF to edit. If
you have an SF account, and want to contribute to the wiki, please contact me,
T. J. or the developers list.

I have asked T. J. to be the wiki admin, so please don't make huge changes
without consulting him.
Hi Josh

Please go ahead and  put in your RRD notes on SF xymon wiki howto section.
I will consolidate your howto notes into bigger one after I move howto
from wikibook site.

tj
Regards,
Buchan

--
T.J. Yang
list Buchan Milne · Mon, 2 Aug 2010 08:36:50 +0100 ·
quoted from Josh Luthman
On Friday, 30 July 2010 23:30:48 Josh Luthman wrote:
I will help write documentation as much as I can.  I don't think I can
do anything to the SVN or Wiki because of permission issues.
[...]
At present, it is configured to require users to be logged in to SF to
edit. If you have an SF account, and want to contribute to the wiki,
please contact me, T. J. or the developers list.
T. J. or Henrik or I needed to give you 'editor' access to modify wiki pages, 
which we could only do after you had logged in. It is done now.

Regards,
Buchan
list Josh Luthman · Mon, 2 Aug 2010 17:22:43 -0400 ·
Thank you for the access, Buchan!

Open to any productive comments or critiques.  This is what I have created:
https://sourceforge.net/apps/mediawiki/xymon/index.php?title=Graph_multiple_RRD_sources
signature

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from Buchan Milne
On Mon, Aug 2, 2010 at 3:36 AM, Buchan Milne <user-9b139aff4dec@xymon.invalid> wrote:
On Friday, 30 July 2010 23:30:48 Josh Luthman wrote:
I will help write documentation as much as I can.  I don't think I can
do anything to the SVN or Wiki because of permission issues.
[...]
At present, it is configured to require users to be logged in to SF to
edit. If you have an SF account, and want to contribute to the wiki,
please contact me, T. J. or the developers list.
T. J. or Henrik or I needed to give you 'editor' access to modify wiki pages,
which we could only do after you had logged in. It is done now.

Regards,
Buchan