<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I can still not generate the CPU graph after adding GAUGE to my config.<div>I really have no idea now. The CPU graph generated by MRTG is not all 'zero's, after I zoom the graph and seeing it careful, it doesn't generate CPU</div><div>statistics at all. </div><div><br></div><div>Here I'll give out my config completely:</div><div><br></div><div>In mrtg server, my config is:</div><div><br></div><div><div>#</div><div># Define global options</div><div>#</div><div><br></div><div>LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt,/usr/share/snmp/mibs/TCP-MIB.txt</div><div>workdir: /var/www/mrtg/</div><div><br></div><div><br></div><div>#</div><div># CPU Monitoring</div><div># (Scaled so that the sum of all three values doesn't exceed 100)</div><div>#</div><div><br></div><div>Target[cluster1.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:<a href="mailto:public@172.16.6.183">public@172.16.6.183</a> + ssCpuRawSystem.0&ssCpuRawSystem.0:<a href="mailto:public@172.16.6.183">public@172.16.6.183</a> + ssCpuRawNice.0&ssCpuRawNice.0:<a href="mailto:public@172.16.6.183">public@172.16.6.183</a></div><div>Title[cluster1.cpu]: Server CPU Load</div><div>PageTop[cluster1.cpu]: <H1>CPU Load For Cluster1- System, User and Nice Processes</H1></div><div>MaxBytes[cluster1.cpu]: 100</div><div>ShortLegend[cluster1.cpu]: %</div><div>YLegend[cluster1.cpu]: CPU Utilization</div><div>Legend1[cluster1.cpu]: Current CPU percentage load</div><div>LegendI[cluster1.cpu]: Used</div><div>LegendO[cluster1.cpu]:</div><div>Options[cluster1.cpu]: gauge,withzeroes,noo,growright</div><div>Unscaled[cluster1.cpu]: ymwd</div><div><br></div><div><br></div><div>Here I also want to give out my memory stat config(which works correctly):</div><div><br></div><div><div>#</div><div># Memory Monitoring (Total Versus Available Memory)</div><div>#</div><div><br></div><div><br></div><div>Target[cluster1.memory]: memAvailReal.0&memTotalReal.0:<a href="mailto:public@172.16.6.183">public@172.16.6.183</a></div><div>Title[cluster1.memory]: Free Memory</div><div>PageTop[cluster1.memory]: <H1>Free Memory For Cluster1</H1></div><div>MaxBytes[cluster1.memory]: 100000000000</div><div>ShortLegend[cluster1.memory]: B</div><div>YLegend[cluster1.memory]: Bytes</div><div>LegendI[cluster1.memory]: Free</div><div>LegendO[cluster1.memory]: Total</div><div>Legend1[cluster1.memory]: Free memory, not including swap, in bytes</div><div>Legend2[cluster1.memory]: Total memory</div><div>Options[cluster1.memory]: gauge,growright,nopercent</div><div>kMG[cluster1.memory]: k,M,G,T,P,X</div><div><br></div><div><br></div><div>And I don't think there's any problem in snmpd config in target machine, because I can get the CPU info correctly on mrtg server:</div><div><div>snmpwalk -v 1 -c public 172.16.6.183 UCD-SNMP-MIB::ssCpuRawUser</div><div>UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 1230311</div><div><br></div><div><div> snmpwalk -v 1 -c public 172.16.6.183 UCD-SNMP-MIB::ssCpuRawSystem</div><div>UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 1072451</div><div><br></div></div></div><div>I don't know why Memory collection works but CPU stat not work, because they are using the same MIB and have very similar configs.</div><div><br></div><div>I'm really frustrated because I cannot find where I'm wrong. Can anyone help me?</div><div><br></div><div>Thanks!</div><div><br></div><div>- Li Wei Nan</div></div></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span><br><div><div>On Sep 3, 2008, at 7:04 AM, Steve Shipway wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div lang="EN-GB" link="blue" vlink="blue" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div class="Section1"><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Let me guess – you’re storing and displaying just zeros, right?<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">You need to read up on the difference between a COUNTER (the default MRTG mode) and a GAUGE.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">A COUNTER is a total count, such as with network traffic. Here, you want to graph the RATE OF CHANGE of the value.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">A GAUGE is an absolute value. Here, you want to graph the UNMODIFIED VALUE.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Since a CPU usage is a gauge (IE, it is not a constantly increasing count, such as with network bytes transmitted) you need to add the ‘gauge’ option, otherwise you will graph the rate of change, which will usually be zero. You can think of the CPU usage OID as a ‘number of seconds CPU time used per second’, IE a rate. Since it is already a rate, you do not want the default ‘counter’ mode.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Similarly, with a memory value, you will probably want the ‘gauge’ option.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">If (for example) you were monitoring a count of total pages printed by a printer, then this would be a ‘counter’ and you’d want to see the rate of change instead.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Summary: always add the gauge option, unless you’re sure the value you are retrieving is a constantly increasing count rather than a rate.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">You probably want to add the ‘noo’ option as well to suppress the second line.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">If you’re using routers2 as your frontend, also add the extended options ‘fixunit’ and ‘nototal’. It will help the display look better for small values.<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; ">Steve<o:p></o:p></span></font></div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy; "><o:p> </o:p></span></font></div><div style="border-top-style: none; border-right-style: none; border-bottom-style: none; border-width: initial; border-color: initial; border-left-style: solid; border-left-color: blue; border-left-width: 1.5pt; padding-top: 0cm; padding-right: 0cm; padding-bottom: 0cm; padding-left: 4pt; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>Target[cluster1.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:<a href="mailto:public@172.16.6.183" style="color: blue; text-decoration: underline; ">public@172.16.6.183</a> + ssCpuRawSystem.0&ssCpuRawSystem.0:<a href="mailto:public@172.16.6.183" style="color: blue; text-decoration: underline; ">public@172.16.6.183</a> + ssCpuRawNice.0&ssCpuRawNice.0:<a href="mailto:public@172.16.6.183" style="color: blue; text-decoration: underline; ">public@172.16.6.183</a> <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>Title[cluster1.cpu]: Server CPU Load <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>PageTop[cluster1.cpu]: <H1>CPU Load For Cluster1- System, User and Nice Processes</H1> <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>MaxBytes[cluster1.cpu]: 100<o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>ShortLegend[cluster1.cpu]: % <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>YLegend[cluster1.cpu]: CPU Utilization <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>Legend1[cluster1.cpu]: Current CPU percentage load <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>LegendI[cluster1.cpu]: Used <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>LegendO[cluster1.cpu]: <o:p></o:p></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span><font color="red"><span style="color: red; ">Options[cluster1.cpu]: growright,nopercent <o:p></o:p></span></font></div></div><div><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><span class="apple-tab-span"><font size="3" face="Times New Roman"><span style="font-size: 12pt; "> <span class="Apple-converted-space"> </span></span></font></span>Unscaled[cluster1.cpu]: ymwd<o:p></o:p></div></div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0cm; margin-right: 0cm; margin-left: 0cm; margin-bottom: 0.0001pt; font-size: 12pt; font-family: 'Times New Roman'; "><font size="1" face="STHeiti"><span style="font-size: 9pt; font-family: STHeiti; "><o:p> </o:p></span></font></div></div></div></div></div></div></div></div></span></blockquote></div><br></div></div></body></html>