[Xymon] Discarding Powershell client CPU negative values

Scot Kreienkamp Scot.Kreienkamp at la-z-boy.com
Wed Dec 14 16:22:00 CET 2016


Hi list,

I have a powershell client that is occasionally reporting negative values for CPU usage.  Since that's not possible I wanted to pass along this easy modification for load average in the graphs.cfg for any clients that want to get rid of the negative values on their graphs.  This doesn't remove them from the RRD, just discards values below 0 and above 1000 when generating the graph.  Load cannot be negative so this may be something to include in the base configuration.

Here's a diff:

36,37c36
<       CDEF:la_min0=avg,100,/
<       CDEF:la=la_min0,0,1000,LIMIT
---
>       CDEF:la=avg,100,/


And here's what my graphs.cfg looks like now:
[la]
        TITLE CPU Load
        YAXIS Load
        DEF:avg=la.rrd:la:AVERAGE
        CDEF:la_min0=avg,100,/
        CDEF:la=la_min0,0,1000,LIMIT
        AREA:la#00CC00:CPU Load Average
        -u 1.0
        GPRINT:la:LAST: \: %5.1lf (cur)
        GPRINT:la:MAX: \: %5.1lf (max)
        GPRINT:la:MIN: \: %5.1lf (min)
        GPRINT:la:AVERAGE: \: %5.1lf (avg)\n

Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162  | * 734-384-6403 | | * 7349151444 | *  Scot.Kreienkamp at la-z-boy.com<mailto:%7BE-mail%7D>
www<http://www.la-z-boy.com/>.la-z-boy.com<http://www.la-z-boy.com/> | facebook.<https://www.facebook.com/lazboy>com<https://www.facebook.com/lazboy>/<https://www.facebook.com/lazboy>lazboy<http://facebook.com/lazboy> | twitter.com/lazboy<https://twitter.com/lazboy> | youtube.com/<https://www.youtube.com/user/lazboy>lazboy<https://www.youtube.com/user/lazboy>

[cid:lzbVertical_hres.jpg]



This message is intended only for the individual or entity to which it is addressed.  It may contain privileged, confidential information which is exempt from disclosure under applicable laws.  If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information.  If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20161214/6ad79c65/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lzbVertical_hres.jpg
Type: image/jpeg
Size: 21288 bytes
Desc: lzbVertical_hres.jpg
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20161214/6ad79c65/attachment.jpg>


More information about the Xymon mailing list