[mrtg] Re: graphing CPU usage on my Linux BOX (HELP)
Paul C. Williamson
pwilliamson at mandtbank.com
Tue Feb 5 15:53:54 MET 2002
There is at least one problem here, easily fixed...
If you specify anything other than Workdir, you need to specify
everything, but omit the Workdir.
Prepending the Options[^]: growright doesn't make any difference since
you are specifying it in the last line. The prepending is (IMHO) best
applied for html page formatting, but not really good for the graphs.
Are you doing this on a machine local to mrtg? If so, why not just use
the external program interface and do what Alex has demonstrated on
the faq? It's a one-liner:
`/usr/bin/awk '/cpu /{print $2+$3; print $2+$3+$4; print "long time"; print "home"}'</proc/stat`
Note that I don't think this will work with 2.9.17 because of the "long time"
and "home" values. I think these need to be the actual uptime of the box and the hostname of the machine now.
Paul
>>> "mode arc" <modearc at hotmail.com> 02/05/02 01:12AM >>>
Hi,
Im trying to graph my CPU usage in my linux box. When I try to run the
command ./mrtg cpu.cfg im getting an error message
WARNING: "Title [cpu-util]" is not specified
WARNING: "PageTop [cpu-util]" is not specified
WARNING: "MaxBytes [cpu-util]" is not specified
ERROR: Please fix the error(s) in your config file.
Any inputs would be highly appreciated.
here's my config file:
WorkDir: /home/http/mrtg
IconDir: /mrtg/icon
Options[^]: growright
XSize[_]: 350
YSize[_]: 80
Colours[_]: LIGHT BLUE#7aafff,BLUE#1000ff,DARK
BLUE#000066,VIOLET#ff00ff,GREEN#00ff00
LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt,
/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt
Refresh: 300
Interval: 5
Target[cpu]:ssCpuRawUser.0&ssCpuRawUser.0:public at 192.168.70.1 +
ssCpuRawSystem.0&ssCpuRawSystem.0:public at 192.168.70.1 +
ssCpuRawNice.0&ssCpuRawNice.0:public at 192.168.70.1
RouterUptime[cpu]: public at 192.168.70.1
MaxBytes[cpu]: 100
Title[cpu]: CPU
PageTop[cpu]: <H2>CPU Utilization%</H2>
Unscaled[cpu]: ymwd
ShortLegend[cpu]: %
YLegend[cpu]: CPU Utilization
Legend1[cpu]: Active CPU in % (Load)
Legend2[cpu]:
Legend3[cpu]:
Legend4[cpu]:
LegendI[cpu]: Active
LegendO[cpu]:
Options[cpu]: growright,nopercent
Mode
_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
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
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
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
More information about the mrtg
mailing list