<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Excellent point Norbert, one that I had considered as well.  I chose to do what I did because otherwise the graph was unreadable and unuseable.  I would rather
 have small parts incorrect and still be able to use the graph to visualize the overall history.  I would much rather the source be corrected. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">As an alternative, the RRD for load could (and arguably should, since load cannot be negative) be set to reject negative numbers without any harm to the accuracy. 
 That was my original goal, but I was unable to quickly figure out a way to do so. 
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p id="c1-id-6" style="FONT-FAMILY: Arial"><span id="c1-id-7" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal"><strong id="c1-id-39"><span id="c1-id-41" style="font-size:9pt">Scot Kreienkamp  | Senior Systems Engineer | La-Z-Boy Corporate</span></strong><br id="c1-id-8">
</span><span id="c1-id-9" style="FONT-SIZE: 8pt; FONT-FAMILY: Calibri; LETTER-SPACING: normal">One La-Z-Boy Drive | Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com</span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Xymon [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Norbert Kriegenburg<br>
<b>Sent:</b> Wednesday, December 14, 2016 10:47 AM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Discarding Powershell client CPU negative values<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<p style="margin-left:.5in">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" id="_x0000_i1025" src="cid:image001.gif@01D256B0.27911CA0" alt="Inactive hide details for Scot Kreienkamp ---14/12/2016 16:22:26---Hi list, I have a powershell client that is occasionally rep"><span style="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</span><br>
<br>
<span style="font-size:10.0pt;color:#5F5F5F">From: </span><span style="font-size:10.0pt">Scot Kreienkamp <<a href="mailto:Scot.Kreienkamp@la-z-boy.com">Scot.Kreienkamp@la-z-boy.com</a>></span><br>
<span style="font-size:10.0pt;color:#5F5F5F">To: </span><span style="font-size:10.0pt">"<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>" <<a href="mailto:xymon@xymon.com">xymon@xymon.com</a>></span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Date: </span><span style="font-size:10.0pt">14/12/2016 16:22</span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Subject: </span><span style="font-size:10.0pt">[Xymon] Discarding Powershell client CPU negative values</span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Sent by: </span><span style="font-size:10.0pt">"Xymon" <<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>></span><o:p></o:p></p>
<div class="MsoNormal" style="margin-left:.5in">
<hr size="2" width="100%" noshade="" style="color:#8091A5" align="left">
</div>
<p class="MsoNormal" style="margin-left:.5in"><br>
<br>
<br>
<span style="font-family:"Calibri","sans-serif"">Hi list,</span><br>
<br>
<span style="font-family:"Calibri","sans-serif"">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.
</span><br>
<br>
<span style="font-family:"Calibri","sans-serif"">Here’s a diff:<br>
</span><br>
<span style="font-family:"Calibri","sans-serif"">36,37c36</span><br>
<span style="font-family:"Calibri","sans-serif"">< CDEF:la_min0=avg,100,/</span><br>
<span style="font-family:"Calibri","sans-serif"">< CDEF:la=la_min0,0,1000,LIMIT</span><br>
<span style="font-family:"Calibri","sans-serif"">---</span><br>
<span style="font-family:"Calibri","sans-serif"">> CDEF:la=avg,100,/</span><br>
<br>
<br>
<span style="font-family:"Calibri","sans-serif"">And here’s what my graphs.cfg looks like now:</span><br>
<span style="font-family:"Calibri","sans-serif"">[la]</span><br>
<span style="font-family:"Calibri","sans-serif"">TITLE CPU Load</span><br>
<span style="font-family:"Calibri","sans-serif"">YAXIS Load</span><br>
<span style="font-family:"Calibri","sans-serif"">DEF:avg=la.rrd:la:AVERAGE</span><br>
<span style="font-family:"Calibri","sans-serif"">CDEF:la_min0=avg,100,/</span><br>
<span style="font-family:"Calibri","sans-serif"">CDEF:la=la_min0,0,1000,LIMIT</span><br>
<span style="font-family:"Calibri","sans-serif"">AREA:la#00CC00:CPU Load Average</span><br>
<span style="font-family:"Calibri","sans-serif"">-u 1.0</span><br>
<span style="font-family:"Calibri","sans-serif"">GPRINT:la:LAST: \: %5.1lf (cur)</span><br>
<span style="font-family:"Calibri","sans-serif"">GPRINT:la:MAX: \: %5.1lf (max)</span><br>
<span style="font-family:"Calibri","sans-serif"">GPRINT:la:MIN: \: %5.1lf (min)</span><br>
<span style="font-family:"Calibri","sans-serif"">GPRINT:la:AVERAGE: \: %5.1lf (avg)\n</span><o:p></o:p></p>
<p style="margin-left:.5in"><b><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate</span></b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""><br>
One La-Z-Boy Drive | Monroe, Michigan 48162 |</span><span style="font-family:"Calibri","sans-serif"">
</span><span style="font-family:Wingdings">(</span><span style="font-family:"Calibri","sans-serif""> 734-384-6403 |
</span><span style="font-family:"Tahoma","sans-serif"">| </span><span style="font-size:10.0pt;font-family:Wingdings">)</span><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""> 7349151444
</span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">| </span>
<span style="font-family:Wingdings">*</span><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">
</span><a href="mailto:%7BE-mail%7D"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#0563C1">Scot.Kreienkamp@la-z-boy.com</span></a><u><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#0563C1"><br>
</span></u><a href="http://www.la-z-boy.com/"><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#0563C1">www</span></a><a href="http://www.la-z-boy.com/"><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#0563C1">.la-z-boy.com</span></a><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">
 | </span><a href="https://www.facebook.com/lazboy"><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#0563C1">facebook.</span></a><a href="https://www.facebook.com/lazboy"><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#0563C1">com</span></a><a href="https://www.facebook.com/lazboy"><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif";color:#0563C1">/</span></a><a href="http://facebook.com/lazboy"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#0563C1">lazboy</span></a><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">
 | </span><a href="https://twitter.com/lazboy"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#0563C1">twitter.com/lazboy</span></a><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""> |
</span><a href="https://www.youtube.com/user/lazboy"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#0563C1">youtube.com/</span></a><a href="https://www.youtube.com/user/lazboy"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#0563C1">lazboy</span></a><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""><br>
</span><span style="font-size:13.5pt;font-family:"Arial Narrow","sans-serif""><br>
</span><img border="0" width="192" height="45" id="_x0000_i1027" src="cid:image002.jpg@01D256B0.27911CA0"><o:p></o:p></p>
<p style="margin-left:.5in"><span style="font-size:10.0pt;font-family:"Arial Narrow","sans-serif"">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.</span><tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>Xymon mailing list</tt><br>
<tt><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a></tt><br>
<tt><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a></tt></span><o:p></o:p></p>
<p style="margin-left:.5in"><o:p> </o:p></p>
</div>
</body>
</html>