MRTG uses normal mathematical precedence. Therefore, your example, which is like:
A + B + C + D / 4 Will evaluate the same as A + B + C + ( D / 4 ) What you want is ( A + B + C + D ) / 4 Just use parenthesis appropriately in your target line. Make sure to have white space around every operator, and indent continuation lines. For example, Target[mccubeapp02-cpu]: ( .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .48:[EMAIL PROTECTED] + .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.49&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .49:[EMAIL PROTECTED] + .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.50&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .50:[EMAIL PROTECTED] + .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.51&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .51:[EMAIL PROTECTED] ) / 4 HTH Jerry -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 4:15 PM To: [EMAIL PROTECTED] Subject: [mrtg] mult. CPU Quick question. I haven't had to add targets together until now. I am adding 4 processors to get a total CPU usage. Here's a sample: ### CPU Utilization Target[mccubeapp02-cpu]: .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .48:[EMAIL PROTECTED] + .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.49&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .49:[EMAIL PROTECTED] + .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.50&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .50:[EMAIL PROTECTED] + .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.51&.1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1 .51:[EMAIL PROTECTED] / 4 Title[mccubeapp02-cpu]: CPU Utilization (average) PageTop[mccubeapp02-cpu]: <h1>McCubeApp02 CPU Utilization </h1> #AbsMax[mccubeapp02-cpu]: 400 MaxBytes[mccubeapp02-cpu]: 100 #Factor[mccubeapp02-cpu]: .25 Options[mccubeapp02-cpu]: gauge, growright, nopercent, noo, unknaszero YLegend[mccubeapp02-cpu]: CPU Usage (%) ShortLegend[mccubeapp02-cpu]: % Legend1[mccubeapp02-cpu]: Total CPU Usage LegendI[mccubeapp02-cpu]: TotalCPU: My question is, is this right? If I divide at the end, does it divide the total by 4 or just the last target? My other option was to have a factor of 1/4. Factor[xx]: .25 (it's commented out above). Please let me know if there are other flaws in my config. I've strictly been dealing with routers until now. Thanks, Jeremy Fluhmann McLane Information Systems -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- Unsubscribe mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/mrtg FAQ http://faq.mrtg.org Homepage http://www.mrtg.org WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
