ivan...@gmail.com
unread,Apr 16, 2012, 10:14:52 AM4/16/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have a working MRTG that's getting values from %ProcessorTime in Win32_PerfFormattedData_PerfOS_Processor
But the values I'm getting here are only spot measurements AFAIK, so they're not really showing the average processor usage over the last 5 minute period.
So I wanted to make an MRTG config that uses %ProcessorTime in Win32_PerfRawData_PerfOS_Processor instead.
I know how this counter works, and I know how to do the math - on paper.
But I'm not able to get MRTG to do the correct math
I have an external script 'wmicget.bat' that outputs values from WMI classes/properties in the correct MRTG 4-line format
If I do it like this, it will make graphs showing idle processor time...
Target[CPURAW]: `wmicget.bat Win32_PerfRawData_PerfOS_Processor PercentProcessorTime _Total` / 100000
So on paper to get it to show processor time (instead of idle time), you just subtract the result from 100, like this...
Target[CPURAW]: 100 - ( `wmicget.bat Win32_PerfRawData_PerfOS_Processor PercentProcessorTime _Total` / 100000 )
... but it's just outputting ridiculous high numbers.
What's going on? Am I doing something wrong, or is MRTG doing the math totally wrong?