<div>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.</div>
<div> </div>
<div>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. </div>
<div> </div>
<div>Below is my config file, and my mrtg graph can be viewed at <a href="http://okcinfo.net/mrtg">http://okcinfo.net/mrtg</a> if needed, I was HOPING I could get some assistance with my problem! <br clear="all"></div>
<div> </div>
<div>Thank you again!!</div>
<div> </div>
<div>------------- beginning ------------------</div>
<div><span lang="EN">
<p>WorkDir: /var/www/mrtg</p>
<p>#RunAsDaemon:Yes</p>
<p>Interval:5</p>
<p>#Options[_]: nopercent,growright,noinfo,gauge</p>
<p>Options[_]: bits, growright</p>
<p>MaxBytes[_]: 12500000</p>
<p>EnableIPv6: no</p>
<p>LogDir: /var/log/mrtg</p>
<p>Xsize[_]: 600</p>
<p>Ysize[_]: 200</p>
<p>Ytics[_]: 10</p>
<p>###############################################################################</p>
<p># </p>
<p># HTML formatting stuff</p>
<p>#</p>
<p>###############################################################################</p>
<p>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>&nbsp;</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>&nbsp;</td></tr></table></td><td></p>
<p>PageFoot[^]: </td></tr></table></p>
<p>AddHead[^]: <meta http-equiv='Expires' content='-1'><style><!-- body { </p>
<p>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></p>
<p>###############################################################################</p>
<p># </p>
<p># Stats</p>
<p>#</p>
<p>###############################################################################</p>
<p> </p>
<p>#----------------------------</p>
<p># Network</p>
<p>#----------------------------</p>
<p>#Target[index]: `/usr/local/mrtg-2/scripts/system network eth0`</p>
<p>#Options[index]: nopercent, noinfo</p>
<p>#</p>
<p>#Title[index]: Traffic Analysis for eth0</p>
<p>#PageTop[index]: <h3>Traffic Analysis for eth0</h3></p>
<p>Target[index]: #eth0:public@localhost</p>
<p>SetEnv[index]: MRTG_INT_IP="38.106.195.137" MRTG_INT_DESCR="eth0"</p>
<p>Options[index]: bits, growright</p>
<p>MaxBytes[index]: 12500000</p>
<p>Title[index]: Traffic Analysis for eth0 -- <a href="http://venom.okcinfo.net">venom.okcinfo.net</a></p>
<p>PageTop[index]: <h1>Traffic Analysis for eth0 -- <a href="http://venom.okcinfo.net">venom.okcinfo.net</a></h1></p>
<p> </p>
<p>#----------------------------</p>
<p># TCP Connections</p>
<p>#----------------------------</p>
<p>Target[tcp]: `/usr/local/mrtg-2/scripts/system tcp`</p>
<p>Title[tcp]: Established TCP Connections</p>
<p>PageTop[tcp]: <h3>Established TCP Connections</h3></p>
<p>YLegend[tcp]: Connections</p>
<p>ShortLegend[tcp]: &nbsp;&nbsp;&nbsp;</p>
<p>LegendI[tcp]: </p>
<p>LegendO[tcp]: Established&nbsp;</p>
<p>#----------------------------</p>
<p># Load</p>
<p>#----------------------------</p>
<p>Target[load]: `/usr/local/mrtg-2/scripts/system load`</p>
<p>Options[load]: gauge, nopercent, noinfo</p>
<p>MaxBytes[load]: 3000</p>
<p>Title[load]: Load Averages</p>
<p>PageTop[load]: <h3>Load Averages</h3></p>
<p>YLegend[load]: Load (10E-2)</p>
<p>ShortLegend[load]: (10E-2)&nbsp;</p>
<p>LegendI[load]: 5-minute stagger</p>
<p>LegendO[load]: 15-mintute stagger</p>
<p>Legend1[load]: Load Average over last 5 minutes&nbsp;</p>
<p>Legend2[load]: Load Average over last 15 minutes&nbsp;</p>
<p>Legend3[load]: Average over last 5 minutes</p>
<p>Legend4[load]: Average over last 15 minutes</p>
<p>#----------------------------</p>
<p># Swap</p>
<p>#----------------------------</p>
<p>Target[swap]: `/usr/local/mrtg-2/scripts/system swap`</p>
<p>Title[swap]: Swap Memory Usage</p>
<p>PageTop[swap]: <h3>Swap Memory Usage</h3></p>
<p>YLegend[swap]: Swap Usage</p>
<p>ShortLegend[swap]: &nbsp;&nbsp;&nbsp;</p>
<p>LegendI[swap]: </p>
<p>LegendO[swap]: Used&nbsp;</p>
<p>#----------------------------</p>
<p># Processes</p>
<p>#----------------------------</p>
<p>Target[processes]: `/usr/local/mrtg-2/scripts/system processes`</p>
<p>Title[processes]: Processes</p>
<p>PageTop[processes]: <h3>Processes</h3></p>
<p>YLegend[processes]: Processes</p>
<p>ShortLegend[processes]: &nbsp;&nbsp;&nbsp;</p>
<p>LegendI[processes]: Total&nbsp;</p>
<p>LegendO[processes]: Running&nbsp;</p>
<p>#----------------------------</p>
<p># Uptime</p>
<p>#----------------------------</p>
<p>Target[uptime]: `/usr/local/mrtg-2/scripts/system uptime`</p>
<p>Title[uptime]: Uptime and Idle Time</p>
<p>PageTop[uptime]: <h3>Uptime and Idle Time</h3></p>
<p>YLegend[uptime]: Uptime (sec)</p>
<p>ShortLegend[uptime]: &nbsp;&nbsp;&nbsp;</p>
<p>LegendI[uptime]: Total Uptime&nbsp;</p>
<p>LegendO[uptime]: Idle Time&nbsp;</p>
<p>#----------------------------</p>
<p># CPU</p>
<p>#----------------------------</p>
<p>Target[cpu]: `/usr/bin/awk '/cpu /{print $2+$3; print $2+$3+$4; print "quite some time"; print "<a href="http://domain.com">domain.com</a>"}'</proc/stat`</p>
<p>Title[cpu]: CPU Usage</p>
<p>PageTop[cpu]: <H3>CPU Usage</h3></p>
<p>MaxBytes[cpu]: 100</p>
<p>Options[cpu]: nopercent,growright,noinfo,bits</p>
<p>LegendI[cpu]: &nbsp;user:</p>
<p>LegendO[cpu]: &nbsp;total:</p>
<p>Ylegend[cpu]: %CPU</p>
<p>ShortLegend[cpu]: %CPU</p>
<p>Legend1[cpu]: Time spent in user mode</p>
<p>Legend2[cpu]: Time spent in user mode + time spent in system mode</p>
<p>Legend3[cpu]: Maximum occurance of time spent in user mode</p>
<p>Legend4[cpu]: Maximum occurance of (time spent in user mode + time spent in system mode)</p>
<p>#----------------------------</p>
<p># Memory</p>
<p>#----------------------------</p>
<p>Target[memory]: `/usr/local/mrtg-2/scripts/system memory`</p>
<p>Options[memory]: gauge, noinfo</p>
<p>MaxBytes[memory]: 665536000</p>
<p>Title[memory]: Memory Utilization</p>
<p>PageTop[memory]: <H3>Memory Utilization</H3></p>
<p>YLegend[memory]: Bytes</p>
<p>ShortLegend[memory]: B</p>
<p>LegendI[memory]: Used:</p>
<p>LegendO[memory]: Buffers + Cache:</p>
<p>Legend1[memory]: Free real memory</p>
<p>Legend2[memory]: Free swap memory</p>
<p>Legend3[memory]: Maximal 5 Minute Memory In Use</p>
<p>Legend4[memory]: Maximal 5 Minute Active Memory</p>
<p> </p>
<p>----------------- EOF -------------------------</p></span></div>
<div></div><br>-- <br>------------------------------------------<br>Greg Hanna<br>System Administrator/Owner<br><a href="mailto:admin@okcinfo.net">admin@okcinfo.net</a><br><a href="http://www.okcinfo.net">http://www.okcinfo.net</a><br>