Hello you guys out there... I need help and hope someone will be available<br><br>Here's what I got:<br><br>Router: Cisco ASA5505 currently reporting traffic utilization to management station. Both outside and inside being monitored very well<br>
<br>Management Station: SunFire X4100 running on CentOS5 with latest and greatest fixes & patches<br><br>SNMP running on the management station itself and reporting to itself CPU, disk, RAM, eth0, etc...<br><br>I've also got a SRW48G4 Linksys switch reporting its traffic utilization to the same management station<br>
<br>The steps that I've done to get the above are<br><br><font size="2"><span style="font-family: courier new,monospace;">cfgmaker --global 'WorkDir: /home/mrtg' --global 'Options[_]:
bits,growright' --output /home/mrtg/cfg/asa.cfg <a href="mailto:cup@192.168.159.1">cup@192.168.159.1</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">cfgmaker --global 'WorkDir: /home/mrtg' --global 'Options[_]: bits,growright' --output /home/mrtg/cfg/sw-lan.cfg <a href="mailto:cup@192.168.159.9">cup@192.168.159.9</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">cfgmaker --global 'WorkDir: /home/mrtg' --global 'Options[_]:
bits,growright' --output /home/mrtg/cfg/server-traffic.cfg <a href="mailto:cup@192.168.159.11">cup@192.168.159.11</a></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">indexmaker --output=/home/mrtg/index.html /home/mrtg/cfg/asa.cfg /home/mrtg/cfg/sw-lan.cfg /home/mrtg/cfg/server-traffic.cfg /home/mrtg/cfg/server-stats.cfg</span><br></font><br>
The /home/mrtg/server-stats.cfg file is custom... not created by cfgmaker.<br><br>Content of that cfg file is here<br>==================================<br><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt,/usr/share/snmp/mibs/TCP-MIB.txt</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">workdir: /home/mrtg/</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># CPU Monitoring</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"># (Scaled so that the sum of all three values doesn't exceed 100)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target[server.cpu]:ssCpuRawUser.0&ssCpuRawUser.0:cup@localhost + ssCpuRawSystem.0&ssCpuRawSystem.0:cup@localhost + ssCpuRawNice.0&ssCpuRawNice.0:cup@localhost</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Title[server.cpu]: Server CPU Load</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PageTop[server.cpu]: <H1>CPU Load - System, User and Nice Processes</H1></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MaxBytes[server.cpu]: 100</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ShortLegend[server.cpu]: %</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">YLegend[server.cpu]: CPU Utilization</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Legend1[server.cpu]: Current CPU percentage load</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LegendI[server.cpu]: Used</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LegendO[server.cpu]:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Options[server.cpu]: growright,nopercent</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Unscaled[server.cpu]: ymwd</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># Memory Monitoring (Total Versus Available Memory)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target[server.memory]: memAvailReal.0&memTotalReal.0:cup@localhost</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Title[server.memory]: Free Memory</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PageTop[server.memory]: <H1>Free Memory</H1></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MaxBytes[server.memory]: 100000000000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ShortLegend[server.memory]: B</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">YLegend[server.memory]: Bytes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LegendI[server.memory]: Free</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LegendO[server.memory]: Total</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Legend1[server.memory]: Free memory, not including swap, in bytes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Legend2[server.memory]: Total memory</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Options[server.memory]: gauge,growright,nopercent</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">kMG[server.memory]: k,M,G,T,P,X</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># Memory Monitoring (Percentage usage)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Title[server.mempercent]: Percentage Free Memory</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">PageTop[server.mempercent]: <H1>Percentage Free Memory</H1></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target[server.mempercent]: ( memAvailReal.0&memAvailReal.0:cup@localhost ) * 100 / ( memTotalReal.0&memTotalReal.0:cup@localhost )</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">options[server.mempercent]: growright,gauge,transparent,nopercent</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Unscaled[server.mempercent]: ymwd</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MaxBytes[server.mempercent]: 100</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">YLegend[server.mempercent]: Memory %</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">ShortLegend[server.mempercent]: Percent</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LegendI[server.mempercent]: Free</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LegendO[server.mempercent]: Free</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Legend1[server.mempercent]: Percentage Free Memory</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Legend2[server.mempercent]: Percentage Free Memory</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># New TCP Connection Monitoring (per minute)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target[server.newconns]: tcpPassiveOpens.0&tcpActiveOpens.0:cup@localhost</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Title[server.newconns]: Newly Created TCP Connections</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PageTop[server.newconns]: <H1>New TCP Connections</H1></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MaxBytes[server.newconns]: 10000000000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ShortLegend[server.newconns]: c/s</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">YLegend[server.newconns]: Conns / Min</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LegendI[server.newconns]: In</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LegendO[server.newconns]: Out</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Legend1[server.newconns]: New inbound connections</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Legend2[server.newconns]: New outbound connections</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Options[server.newconns]: growright,nopercent,perminute</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># Established TCP Connections</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Target[server.estabcons]: tcpCurrEstab.0&tcpCurrEstab.0:cup@localhost</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Title[server.estabcons]: Currently Established TCP Connections</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">PageTop[server.estabcons]: <H1>Established TCP Connections</H1></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">MaxBytes[server.estabcons]: 10000000000</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ShortLegend[server.estabcons]:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">YLegend[server.estabcons]: Connections</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">LegendI[server.estabcons]: In</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">LegendO[server.estabcons]:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Legend1[server.estabcons]: Established connections</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Legend2[server.estabcons]:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Options[server.estabcons]: growright,nopercent,gauge</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"># Disk Usage Monitoring</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#Target[server.disk]: dskPercent.1&dskPercent.2:cup@localhost</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#Title[server.disk]: Disk Partition Usage</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#PageTop[server.disk]: <H1>Disk Partition Usage /home and /var</H1></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#MaxBytes[server.disk]: 100</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#ShortLegend[server.disk]: %</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#YLegend[server.disk]: Utilization</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#LegendI[server.disk]: /home</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#LegendO[server.disk]: /var</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">#Options[server.disk]: gauge,growright,nopercent</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">#Unscaled[server.disk]: ymwd</span><br><br>==============================================<br><br>Notice that I commented out the last section because when I execute the graph plotting... it generates the following error:<br>
___________________________________________________________<br><span style="font-family: courier new,monospace;">[root@server ~]# env LANG=C /usr/bin/mrtg /home/mrtg/cfg/server-stats.cfg</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SNMP Error:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Received SNMP response with error code</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> error status: noSuchName</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> index 2 (OID: 1.3.6.1.4.1.2021.9.1.9.2)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> community: "cup"</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> request ID: 194740009</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> PDU bufsize: 8000 bytes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> timeout: 2s</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> retries: 5</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> backoff: 1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 490</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">SNMPGET Problem for dskPercent.1 dskPercent.2 sysUptime sysName on cup@localhost::::::v4only</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> at /usr/bin/mrtg line 2035</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Thursday, 17 April 2008 at 18:02: ERROR: Target[server.disk][_IN_] ' $target->[8]{$mode} ' did not eval into defined data</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Thursday, 17 April 2008 at 18:02: ERROR: Target[server.disk][_OUT_] ' $target->[8]{$mode} ' did not eval into defined data</span><br>___________________________________________________________<br>
<br>I'm quite fine with that right now... I'm sure I can find a way to fix it... <br><br>What I'd like to ask is how do I monitor the Router's Memory, CPU utilization, errors, warnings, etc...<br><br>What I'm looking for is a way to run cfgmaker... but if this has to be a custom cfg file... would you guys show me an example cfg? Thanks! I dont seem to know any OID for the ASA5505.<br>