[mrtg] mrtg problem!
Greg Hanna (sys admin)
admin at okcinfo.net
Fri May 8 09:09:21 CEST 2009
I would like to take this second to say thank you in advanced, I think MRTG
is an awesome tool for monitoring endless things, I've used it for years.
But recently, I decided I'd take it a little further than just using it to
monitor my bandwidth, I found a HOW-TO on using it to monitor memory swap,
cpu, etc... well the config file I was basically "copying" off of, used the
program 'system' to get the bandwidth information, so I decided to change
the option to use SNMP basically, and it started working great today. But
it seems like I changed the Options tab from what it was before (I have it
commented out when I paste it in a second) on the old config, and changed it
to bits, growright... well prior to doing that, all my graphs worked, but
some of them were going from left to right, versus right to left ... then
all of a sudden a few of my graphs quit working all together. I probably
worked on getting it transferred for about 4 hours last night, from just the
plain bandwidth to monitoring other things, and I love the concept, but I
feel stumped on it.
Below is my config file, and my mrtg graph can be viewed at
http://okcinfo.net/mrtg if needed, I was HOPING I could get some assistance
with my problem!
Thank you again!!
------------- beginning ------------------
WorkDir: /var/www/mrtg
#RunAsDaemon:Yes
Interval:5
#Options[_]: nopercent,growright,noinfo,gauge
Options[_]: bits, growright
MaxBytes[_]: 12500000
EnableIPv6: no
LogDir: /var/log/mrtg
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><br><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]: `/usr/local/mrtg-2/scripts/system network eth0`
#Options[index]: nopercent, noinfo
#
#Title[index]: Traffic Analysis for eth0
#PageTop[index]: <h3>Traffic Analysis for eth0</h3>
Target[index]: #eth0:public at localhost
SetEnv[index]: MRTG_INT_IP="38.106.195.137" MRTG_INT_DESCR="eth0"
Options[index]: bits, growright
MaxBytes[index]: 12500000
Title[index]: Traffic Analysis for eth0 -- venom.okcinfo.net
PageTop[index]: <h1>Traffic Analysis for eth0 -- venom.okcinfo.net</h1>
#----------------------------
# TCP Connections
#----------------------------
Target[tcp]: `/usr/local/mrtg-2/scripts/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]: `/usr/local/mrtg-2/scripts/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]: `/usr/local/mrtg-2/scripts/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]: `/usr/local/mrtg-2/scripts/system processes`
Title[processes]: Processes
PageTop[processes]: <h3>Processes</h3>
YLegend[processes]: Processes
ShortLegend[processes]:
LegendI[processes]: Total
LegendO[processes]: Running
#----------------------------
# Uptime
#----------------------------
Target[uptime]: `/usr/local/mrtg-2/scripts/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]: `/usr/local/mrtg-2/scripts/system memory`
Options[memory]: gauge, noinfo
MaxBytes[memory]: 665536000
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
----------------- EOF -------------------------
--
------------------------------------------
Greg Hanna
System Administrator/Owner
admin at okcinfo.net
http://www.okcinfo.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20090508/5ef285c9/attachment.html
More information about the mrtg
mailing list