Dear huynxbk45,
Hello,
Type following commands.Code:############################################################################### # Multi Router Traffic Grapher -- Configuration File ############################################################################### WorkDir: /var/www/server RunAsDaemon:Yes Interval:5 Options[_]: nopercent,growright,noinfo,gauge MaxBytes[_]: 125000000 #---------------------------- # CPU #---------------------------- Target[cpu]: `/usr/bin/awk '/cpu /{print $2+$3; print $2+$3+$4; print "quite some time"}'</proc/stat` Title[cpu]: CPU usage for server PageTop[cpu]: <H1>CPU Usage</H1> MaxBytes[cpu]: 100 Options[cpu]: nopercent,growright,noinfo,bits LegendI[cpu]: user: LegendO[cpu]: total: Ylegend[cpu]: %CPU ShortLegend[cpu]: %CPU Legend1[cpu]: Time spent in user mode Legend2[cpu]: Time spent in user mode + time spent in system mode Legend3[cpu]: Maximum occurance of time spent in user mode Legend4[cpu]: Maximum occurance of (time spent in user mode + time spent in system mode)
# export LANG=C
# /usr/bin/perl /usr/bin/mrtg /etc/mrtg/server.cfg
Best Regards.


ublic@localhost + ssCpuRawSystem.0&ssCpuRawSystem.0
Reply With Quote

Bookmarks