[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [xymon] New UPS monitor added to Xymonton
- To: xymon (at) xymon.com
- Subject: Re: [xymon] New UPS monitor added to Xymonton
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Wed, 28 Jul 2010 18:20:31 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=/pzY3H1x/16xa5vq2f0tlthtASgkT+TXa4kn5iZN7c0=; b=TxBuNDK+F07LiZtXxqxzgFR0P0egyXGT+FZjeBX5LjWy0SU/0HYf0TTHCCNQ3S6FMN hyIDbdOFz2v3QA3fT8Qkb4DYx5g764b/zMu63IWXJcdRetkIl+uJ6uHdZV67t5j18mGn h1O7ONilin0dJ8HekK+q2360vVuids+DX9DXo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kaUr2Pc7XLM17Fg48XhWojlkegSV+yGjNU8LscFHLLrUITVhSk8SktLEpuuY9VgmCD DhSOzc28GG9ZwpGC8OIQCahz9r+yrxMmVdjed7ukvE7iSfpZ8TbGhiPxub0zlyT8mY8G lSll4psUz6m7lYH79R1nYyOraEMil7LbxlIxs=
- References: <4C3CF07D.9020709 (at) revpol.com> <AANLkTin5JioI4gLqdKDGaBFhdOwEQnuNgOBUT0b2WdcK (at) mail.gmail.com> <AANLkTimxWE4uXmLnvtywK6P74QPCTCY_tc7CicaqBJbE (at) mail.gmail.com> <4C505656.7060107 (at) revpol.com> <AANLkTim=hG2s0z33CZX2fHe3bDo9CN4bXAzjy6Og=Hz4 (at) mail.gmail.com> <4C505EFF.60305 (at) revpol.com> <AANLkTikvFgBop14-GoBvAFBbvtG1xHAFd_u-C3QyMk8q (at) mail.gmail.com> <AANLkTi=eMH+qvi1BKrqZqiLik7bfvp7tOm4Dbbr7Uynd (at) mail.gmail.com> <AANLkTi=Z0x-ECt29JFyvv5oCThRWDN5DHa2_qNVsB3c5 (at) mail.gmail.com>
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
<josh (at) imaginenetworksllc.com>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: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
>
>
> On Wed, Jul 28, 2010 at 2:41 PM, Josh Luthman
> <josh (at) imaginenetworksllc.com> 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: 937-552-2340
> > Direct: 937-552-2343
> > 1100 Wayne St
> > Suite 1337
> > Troy, OH 45373
> >
> >
> >
> > On Wed, Jul 28, 2010 at 12:59 PM, Josh Luthman
> > <josh (at) imaginenetworksllc.com> wrote:
> >> That fixed it! Thank you!
> >>
> >> Josh Luthman
> >> Office: 937-552-2340
> >> Direct: 937-552-2343
> >> 1100 Wayne St
> >> Suite 1337
> >> Troy, OH 45373
> >>
> >>
> >> On Wed, Jul 28, 2010 at 12:46 PM, Bill Arlofski <
> waa-hobbitml (at) revpol.com>
> >> 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
> >>>
> >>> To unsubscribe from the xymon list, send an e-mail to
> >>> xymon-unsubscribe (at) xymon.com
> >>>
> >>>
> >>
> >>
> >
>
> To unsubscribe from the xymon list, send an e-mail to
> xymon-unsubscribe (at) xymon.com
>
>
>