MRTG conf help..

rmxs

Verified User
Joined
Jan 14, 2007
Messages
133
Hello,

i use mrtg can someone please help me with conf because the data its the correct byt the max data now..

Example
Used: 593.1 MB (89.1%) 557.3 MB (83.7%) 560.6 MB (84.2%)

here say that i use 553mb of ram that is 83% of what?(i have 8giga ram)

CPU

user: 56.0 %CPU 32.0 %CPU 24.0 %CPU

here say that my cpu usage is 32% top command report
Cpu(s): 0.1%us, 0.0%sy, 0.0%ni, 99.9%id,


How can i correct this ?

here is my conf

Code:
WorkDir: /var/www/html/mrtg

RunAsDaemon:Yes

Interval:5

Options[_]: nopercent,growright,noinfo,gauge

MaxBytes[_]: 125000000

Xsize[_]: 600
Ysize[_]: 200
Ytics[_]: 10



###############################################################################
# 
# HTML formatting stuff
#
###############################################################################

PageTop[^]: <table cellspacing="0" cellpadding="10" border="0" width="100%" align="center"><tr><td width="185" valign="top" class="small"><table cellspacing="0" cellpadding="5" border="0" width="100%"><tr><td class="tableh">Network</td></tr><tr><td class="tablesh"><a href="index.html">- Traffic</a><br><a href="tcp.html">- Open Connections</a></td></tr><tr><td> </td></tr><tr><td class="tableh">System Stats</td></tr><tr><td class="tablesh"><a href="load.html">- Load Averages</a><br><a href="swap.html">- Swap Memory</a><br><a href="processes.html">- Processes</a><br><a href="uptime.html">- Uptime and Idle Time</a><br><a href="cpu.html">- CPU</a><br><a href="memory.html">- Memory Usage</a></td></tr><tr><td> </td></tr></table></td><td> 

PageFoot[^]: </td></tr></table>

AddHead[^]: <meta http-equiv='Expires' content='-1'><style><!-- body { text-align: center; background-color: #CCCCCC; font-size: 10pt; font-family: arial, verdana; } th, td { font-size: 10pt; font-family: arial, verdana; } h3 { font-size: 12pt; font-family: arial, verdana; font-weight: bold; } .small { font-size: 8pt; font-family: arial, verdana; } .tableh { font-size: 10pt; font-family: arial, verdana; color: white; background-color: black; font-weight: bold; } .tablesh { font-size: 10pt; font-family: arial, verdana; color: black; background-color: #999999; font-weight: normal; } a:visited, a:active, a:link { text-decoration: none; font-weight: normal; font-family: arial, verdana; color: black; } a:hover { font-weight: normal; font-family: arial, verdana; background-color: #999999; color: white; } --></style>



###############################################################################
# 
# Stats
#
###############################################################################


#----------------------------
# Network
#----------------------------

Target[index]: `/var/www/html/mrtg/core/system network eth1`
Options[index]: nopercent, noinfo

Title[index]: Traffic Analysis for eth1
PageTop[index]: <h3>Traffic Analysis for eth1</h3>



#----------------------------
# TCP Connections
#----------------------------

Target[tcp]: `/var/www/html/mrtg/core/system tcp`

Title[tcp]: Established TCP Connections

PageTop[tcp]: <h3>Established TCP Connections</h3>

YLegend[tcp]: Connections

ShortLegend[tcp]:    

LegendI[tcp]: 

LegendO[tcp]: Established 


#----------------------------
# Load
#----------------------------

Target[load]: `/var/www/html/mrtg/core/system load`
Options[load]: gauge, nopercent, noinfo
MaxBytes[load]: 3000

Title[load]: Load Averages
PageTop[load]: <h3>Load Averages</h3>

YLegend[load]: Load (10E-2)
ShortLegend[load]: (10E-2) 
LegendI[load]: 5-minute stagger
LegendO[load]: 15-mintute stagger
Legend1[load]: Load Average over last 5 minutes 
Legend2[load]: Load Average over last 15 minutes 
Legend3[load]: Average over last 5 minutes
Legend4[load]: Average over last 15 minutes



#----------------------------
# Swap
#----------------------------

Target[swap]: `/var/www/html/mrtg/core/system swap`

Title[swap]: Swap Memory Usage

PageTop[swap]: <h3>Swap Memory Usage</h3>

YLegend[swap]: Swap Usage

ShortLegend[swap]:    

LegendI[swap]: 

LegendO[swap]: Used 



#----------------------------
# Processes
#----------------------------

Target[processes]: `/var/www/html/mrtg/core/system processes`

Title[processes]: Processes

PageTop[processes]: <h3>Processes</h3>

YLegend[processes]: Processes

ShortLegend[processes]:    

LegendI[processes]: Total 

LegendO[processes]: Running 



#----------------------------
# Uptime
#----------------------------

Target[uptime]: `/var/www/html/mrtg/core/system uptime`

Title[uptime]: Uptime and Idle Time

PageTop[uptime]: <h3>Uptime and Idle Time</h3>

YLegend[uptime]: Uptime (sec)

ShortLegend[uptime]:    

LegendI[uptime]: Total Uptime 

LegendO[uptime]: Idle Time 



#----------------------------
# CPU
#----------------------------

Target[cpu]: `/usr/bin/awk '/cpu /{print $2+$3; print $2+$3+$4; print "quite some time"; print "domain.com"}'</proc/stat`

Title[cpu]: CPU Usage

PageTop[cpu]: <H3>CPU Usage</h3>

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)



#----------------------------
# Memory
#----------------------------

Target[memory]: `/var/www/html/mrtg/core/system memory`
Options[memory]: gauge, noinfo
MaxBytes[memory]: 8388608000

Title[memory]: Memory Utilization
PageTop[memory]: <H3>Memory Utilization</H3>

YLegend[memory]: Bytes
ShortLegend[memory]: B
LegendI[memory]: Used:
LegendO[memory]: Buffers + Cache:
Legend1[memory]: Free real memory
Legend2[memory]: Free swap memory
Legend3[memory]: Maximal 5 Minute Memory In Use
Legend4[memory]: Maximal 5 Minute Active Memory

Thanks
 
Change:
Code:
Options[memory]: gauge, noinfo

To:
Code:
Options[memory]: gauge, growright

About the CPU - I need an output of "cat /proc/cpuinfo".
 
here

Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad  CPU   Q9300  @ 2.50GHz
stepping        : 7
cpu MHz         : 2000.000
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov                                                                              pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc                                                                              pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips        : 5003.10
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad  CPU   Q9300  @ 2.50GHz
stepping        : 7
cpu MHz         : 2000.000
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 3
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov                                                                              pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc                                                                              pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips        : 4999.86
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 2
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad  CPU   Q9300  @ 2.50GHz
stepping        : 7
cpu MHz         : 2000.000
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 1
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov                                                                              pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc                                                                              pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips        : 4999.81
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 3
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Quad  CPU   Q9300  @ 2.50GHz
stepping        : 7
cpu MHz         : 2000.000
cache size      : 3072 KB
physical id     : 0
siblings        : 4
core id         : 2
cpu cores       : 4
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov                                                                              pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc                                                                              pni monitor ds_cpl vmx smx est tm2 cx16 xtpr lahf_lm
bogomips        : 4999.83
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
 
Back
Top