<html><body><p>Hi all,<br><br>i had this problem (with different monitors) from time to time as well.<br>Scots suggestion will do the trick by suppressing the negativ values to be displayed at the graphs, but has some drawbacks:<br><br>Keep in mind that the aggregation of values in rrd takes all numbers from rrd file into account. That means your wrong negative number will impact your overall graph also for the positive numbers in the history, and can lead to a more or less wrong graph (dependend how many and of which values you have for negatives).<br>This can result in some kind of very false trends in the longer term history, and you will not see where this comes from...<br><br>That means: better would be to fix the root cause (as always).<br><br>Norbert<br><br><br><img width="16" height="16" src="cid:1__=4EBB0A1ADFC612818f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Scot Kreienkamp ---14/12/2016 16:22:26---Hi list, I have a powershell client that is occasionally rep"><font color="#424282">Scot Kreienkamp ---14/12/2016 16:22:26---Hi list, I have a powershell client that is occasionally reporting negative values for CPU usage.  S</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Scot Kreienkamp <Scot.Kreienkamp@la-z-boy.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">"xymon@xymon.com" <xymon@xymon.com></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">14/12/2016 16:22</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[Xymon] Discarding Powershell client CPU negative values</font><br><font size="2" color="#5F5F5F">Sent by:        </font><font size="2">"Xymon" <xymon-bounces@xymon.com></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font face="Calibri">Hi list,</font><br><font face="Calibri"> </font><br><font face="Calibri">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.  </font><br><font face="Calibri"> </font><br><font face="Calibri">Here’s a diff:<br></font><br><font face="Calibri">36,37c36</font><br><font face="Calibri"><       CDEF:la_min0=avg,100,/</font><br><font face="Calibri"><       CDEF:la=la_min0,0,1000,LIMIT</font><br><font face="Calibri">---</font><br><font face="Calibri">>       CDEF:la=avg,100,/</font><br><font face="Calibri"> </font><br><font face="Calibri"> </font><br><font face="Calibri">And here’s what my graphs.cfg looks like now:</font><br><font face="Calibri">[la]</font><br><font face="Calibri">        TITLE CPU Load</font><br><font face="Calibri">        YAXIS Load</font><br><font face="Calibri">        DEF:avg=la.rrd:la:AVERAGE</font><br><font face="Calibri">        CDEF:la_min0=avg,100,/</font><br><font face="Calibri">        CDEF:la=la_min0,0,1000,LIMIT</font><br><font face="Calibri">        AREA:la#00CC00:CPU Load Average</font><br><font face="Calibri">        -u 1.0</font><br><font face="Calibri">        GPRINT:la:LAST: \: %5.1lf (cur)</font><br><font face="Calibri">        GPRINT:la:MAX: \: %5.1lf (max)</font><br><font face="Calibri">        GPRINT:la:MIN: \: %5.1lf (min)</font><br><font face="Calibri">        GPRINT:la:AVERAGE: \: %5.1lf (avg)\n</font><p><b><font size="2" face="Arial Narrow">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</font></b><font size="2" face="Calibri"><br>One La-Z-Boy Drive | Monroe, Michigan 48162  |</font><font face="Calibri"> </font><font face="Wingdings">(</font><font face="Calibri"> 734-384-6403 | </font><font face="Tahoma">| </font><font size="2" face="Wingdings">)</font><font size="2" face="Calibri"> </font><font size="2" face="Calibri">7349151444</font><font size="2" face="Calibri"> </font><font size="2" face="Arial Narrow">| </font><font face="Wingdings">*</font><font size="2" face="Arial Narrow">  </font><a href="mailto:%7BE-mail%7D"><u><font size="2" color="#0563C1" face="Calibri">Scot.Kreienkamp@la-z-boy.com</font></u></a><u><font size="2" color="#0563C1" face="Arial Narrow"><br></font></u><a href="http://www.la-z-boy.com/"><u><font size="2" color="#0563C1" face="Arial Narrow">www</font></u></a><a href="http://www.la-z-boy.com/"><u><font size="2" color="#0563C1" face="Arial Narrow">.la-z-boy.com</font></u></a><font size="2" face="Arial Narrow"> | </font><a href="https://www.facebook.com/lazboy"><u><font size="2" color="#0563C1" face="Arial Narrow">facebook.</font></u></a><a href="https://www.facebook.com/lazboy"><u><font size="2" color="#0563C1" face="Arial Narrow">com</font></u></a><a href="https://www.facebook.com/lazboy"><u><font size="2" color="#0563C1" face="Arial Narrow">/</font></u></a><a href="http://facebook.com/lazboy"><u><font size="2" color="#0563C1" face="Calibri">lazboy</font></u></a><font size="2" face="Arial Narrow"> | </font><a href="https://twitter.com/lazboy"><u><font size="2" color="#0563C1" face="Calibri">twitter.com/lazboy</font></u></a><font size="2" face="Calibri"> | </font><a href="https://www.youtube.com/user/lazboy"><u><font size="2" color="#0563C1" face="Calibri">youtube.com/</font></u></a><a href="https://www.youtube.com/user/lazboy"><u><font size="2" color="#0563C1" face="Calibri">lazboy</font></u></a><font size="2" face="Calibri"><br></font><font size="4" face="Arial Narrow"><br></font><img src="cid:2__=4EBB0A1ADFC612818f9e8a93df938690918c4EB@" width="192" height="45"><font size="4" face="Arial Narrow">  </font><p><font size="4" face="Arial Narrow"> </font><p><font size="2" face="Arial Narrow">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.</font><tt>_______________________________________________<br>Xymon mailing list<br>Xymon@xymon.com<br></tt><tt><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></tt><tt><br></tt><p><p><BR>
</body></html>