Results 1 to 2 of 2
Ok, riddle me this. (Will provide logs on request)
I have setup MRTG and have it running successfully against several machines using the public community string so my problem machine's ...
- 02-21-2005 #1Just Joined!
- Join Date
- Feb 2005
- Posts
- 2
MRTG Issue of wierdness....
Ok, riddle me this. (Will provide logs on request)
I have setup MRTG and have it running successfully against several machines using the public community string so my problem machine's hrpdb1.cfg file looks like this:
Now the problem is that I have 0 data returned for the CPU monitor:Code:HtmlDir: /var/www/mrtg2/hrpdb1 ImageDir: /var/www/mrtg2/images LogDir: /etc/mrtg/logs/hrpdb1 Options[_]: growright, transparent, nobanner XSize[_]: 300 YSize[_]: 100 Target[hrpdb1_WAN]: 3:public@10.72.33.60: SetEnv[hrpdb1_WAN]: MRTG_INT_IP="10.72.33.60" MRTG_INT_DESCR="eth1" MaxBytes[hrpdb1_WAN]: 1000000 Options[hrpdb1_WAN]: bits, growright Title[hrpdb1_WAN]: Traffic Analysis for -- hrpdb1 PageTop[hrpdb1_WAN]: <H1>Traffic Analysis for -- hrpdb1</H1> <TABLE> <TR><TD>System:</TD> <TD>hrpdb1.hrpdb1</TD></TR> <TR><TD>Maintainer:</TD> <TD>RAEL_MUSSELL@denso-diam.com</TD></TR> <TR><TD>Description:</TD><TD>eth1 </TD></TR> <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR> <TR><TD>ifName:</TD> <TD></TD></TR> <TR><TD>Max Speed:</TD> <TD>1000.0 kBytes/s</TD></TR> <TR><TD>Ip:</TD> <TD>10.72.33.60(hrpdb1)</TD></TR> </TABLE> LoadMIBs: /usr/share/snmp/mibs/UCD-SNMP-MIB.txt # # CPU Utilization # Target[hrpdb1_activeCPU]:ssCpuRawUser.0&ssCpuRawUser.0:public@10.72.33.60 + ssCpuRawSystem.0&ssCpuRawSystem.0:public@10.72.33.60 + ssCpuRawNice.0&ssCpuRawNice.0:public@10.72.33.60 RouterUptime[hrpdb1_activeCPU]: public@10.72.33.60 MaxBytes[hrpdb1_activeCPU]: 100 Title[hrpdb1_activeCPU]: CPU LOAD Unscaled[hrpdb1_activeCPU]: ymwd ShortLegend[hrpdb1_activeCPU]: % YLegend[hrpdb1_activeCPU]: CPU Utilization Legend1[hrpdb1_activeCPU]: Active CPU in % (Load) Legend2[hrpdb1_activeCPU]: Legend3[hrpdb1_activeCPU]: Legend4[hrpdb1_activeCPU]: LegendI[hrpdb1_activeCPU]: Active LegendO[hrpdb1_activeCPU]: Options[hrpdb1_activeCPU]: growright, nopercent, PageTop[hrpdb1_activeCPU]: <H1>Active CPU Usage -- hrpdb1</H1> # # Disk Transactions Per Second # Target[hrpdb1.io]: `ssh hrpdb1 /etc/mrtg/disk.io.sh` MaxBytes[hrpdb1.io]: 500 LegendI[hrpdb1.io]: Disk0 LegendO[hrpdb1.io]: Disk2 Options[hrpdb1.io]: gauge, nopercent, noarrow, nolegend, nobanner, noinfo Ylegend[hrpdb1.io]: TPS ShortLegend[hrpdb1.io]: IO/Sec Title[hrpdb1.io]: PageTop[hrpdb1.io]: <H1>DISK Transactions Per Second -- hrpdb1</H1> # # Disk I/O # Target[hrpdb1_diskio]:ssIOSent.0&ssIOReceive.0:public@10.72.33.60 RouterUptime[hrpdb1_diskio]: public@10.72.33.60 MaxBytes[hrpdb1_diskio]: 10000000 Title[hrpdb1_diskio]: Disk I/O Operations Options[hrpdb1_diskio]: growright, gauge, nopercent ShortLegend[hrpdb1_diskio]:KB YLegend[hrpdb1_diskio]: IO IN / IO OUT Legend1[hrpdb1_diskio]: LegendI[hrpdb1_diskio]: Out LegendO[hrpdb1_diskio]: In PageTop[hrpdb1_diskio]: <H1>DISK I/O Throughput -- hrpdb1</H1> # # Ram Used/Free # Target[hrpdb1_RAM_USED_FREE]:.1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.11.0:public@10.72.33.60 RouterUptime[hrpdb1_RAM_USED_FREE]: public@10.72.33.60 Title[hrpdb1_RAM_USED_FREE]: RAM - Used/Free MaxBytes[hrpdb1_RAM_USED_FREE]: 10000000 Options[hrpdb1_RAM_USED_FREE]: growright, gauge, nopercent ShortLegend[hrpdb1_RAM_USED_FREE]:KB YLegend[hrpdb1_RAM_USED_FREE]: RAM Used Legend1[hrpdb1_RAM_USED_FREE]: RAM Free LegendI[hrpdb1_RAM_USED_FREE]: RAM Used LegendO[hrpdb1_RAM_USED_FREE]: RAM Free PageTop[hrpdb1_RAM_USED_FREE]: <H1>Memory Used/Free</H1> # # RAM Shared/Buffered # Target[hrpdb1_RAM_SHARED_BUFFERED]:1.3.6.1.4.1.2021.4.13.0&.1.3.6.1.4.1.2021.4.14.0:public@10.72.33.60 RouterUptime[hrpdb1_RAM_SHARED_BUFFERED]: public@10.72.33.60 Title[hrpdb1_RAM_SHARED_BUFFERED]: RAM Shared/Buffered MaxBytes[hrpdb1_RAM_SHARED_BUFFERED]: 10000000 Options[hrpdb1_RAM_SHARED_BUFFERED]: growright, gauge, nopercent ShortLegend[hrpdb1_RAM_SHARED_BUFFERED]:KB YLegend[hrpdb1_RAM_SHARED_BUFFERED]: RAM Shared Legend1[hrpdb1_RAM_SHARED_BUFFERED]: RAM Buffered LegendI[hrpdb1_RAM_SHARED_BUFFERED]: RAM Shared LegendO[hrpdb1_RAM_SHARED_BUFFERED]: Ram Buffered PageTop[hrpdb1_RAM_SHARED_BUFFERED]: <H1>Memory Info - RAM Shared/buffered</H1> # # Cached Memory Information # Target[hrpdb1_MEMORY_CACHED]:.1.3.6.1.4.1.2021.4.15.0&.1.3.6.1.4.1.2021.4.15.0:public@10.72.33.60 RouterUptime[hrpdb1_MEMORY_CACHED]: public@10.72.33.60 Title[hrpdb1_MEMORY_CACHED]: Memory Cached MaxBytes[hrpdb1_MEMORY_CACHED]: 100000000000 Options[hrpdb1_MEMORY_CACHED]: growright, gauge, nopercent ShortLegend[hrpdb1_MEMORY_CACHED]:KB YLegend[hrpdb1_MEMORY_CACHED]: Cached Memory Legend1[hrpdb1_MEMORY_CACHED]: Cached Memory LegendI[hrpdb1_MEMORY_CACHED]: Cached Memory LegendO[hrpdb1_MEMORY_CACHED]: Cached Memory PageTop[hrpdb1_MEMORY_CACHED]: <H1>Cached Memory Info</H1> # # Swap Space Usage # Target[hrpdb1_SWAP_USAGE]:.1.3.6.1.4.1.2021.4.3.0&.1.3.6.1.4.1.2021.4.4.0:public@10.72.33.60 RouterUptime[hrpdb1_SWAP_USAGE]: public@10.72.33.60 Title[hrpdb1_SWAP_USAGE]: Swap Space MaxBytes[hrpdb1_SWAP_USAGE]: 100000000000 Options[hrpdb1_SWAP_USAGE]: growright, gauge, nopercent ShortLegend[hrpdb1_SWAP_USAGE]:KB YLegend[hrpdb1_SWAP_USAGE]: Available Swap Legend1[hrpdb1_SWAP_USAGE]: Used Swap LegendI[hrpdb1_SWAP_USAGE]: Available Swap LegendO[hrpdb1_SWAP_USAGE]: Used Swap PageTop[hrpdb1_SWAP_USAGE]: <H1>Swap Usage Info</H1> # # Memory Monitoring (Percentage usage) # Target[hrpdb1_mempercent]: ( memTotalReal.0&memTotalReal.0:public@hrpdb1 ) * 100 / ( memTotalReal.0&memTotalReal.0:public@hrpdb1 + memAvailReal.0&memAvailReal.0:public@hrpdb1 ) Title[hrpdb1_mempercent]: Memory Usage by Percentage PageTop[hrpdb1_mempercent]: <H1>Memory usage by percentage</H1> options[hrpdb1_mempercent]: growright,gauge,transparent,nopercent Unscaled[hrpdb1_mempercent]: ymwd MaxBytes[hrpdb1_mempercent]: 100 YLegend[hrpdb1_mempercent]: Memory % ShortLegend[hrpdb1_mempercent]: Percent LegendI[hrpdb1_mempercent]: Used LegendO[hrpdb1_mempercent]: Used Legend1[hrpdb1_mempercent]: Percentage Free Memory Legend2[hrpdb1_mempercent]: Percentage Free Memory # # New TCP Connection Monitoring (per minute) # Target[hrpdb1_newconns]: tcpPassiveOpens.0&tcpActiveOpens.0:public@hrpdb1 Title[hrpdb1_newconns]: Newly Created TCP Connections PageTop[hrpdb1_newconns]: <H1>New TCP Connections</H1> MaxBytes[hrpdb1_newconns]: 10000000000 ShortLegend[hrpdb1_newconns]: c/s YLegend[hrpdb1_newconns]: Conns / Min LegendI[hrpdb1_newconns]: In LegendO[hrpdb1_newconns]: Out Legend1[hrpdb1_newconns]: New inbound connections Legend2[hrpdb1_newconns]: New outbound connections Options[hrpdb1_newconns]: growright,nopercent,perminute # # Established TCP Connections # Target[hrpdb1_estabcons]: tcpCurrEstab.0&tcpCurrEstab.0:public@hrpdb1 Title[hrpdb1_estabcons]: Currently Established TCP Connections PageTop[hrpdb1_estabcons]: <H1>Established TCP Connections</H1> MaxBytes[hrpdb1_estabcons]: 10000000000 ShortLegend[hrpdb1_estabcons]: YLegend[hrpdb1_estabcons]: Connections LegendI[hrpdb1_estabcons]: In LegendO[hrpdb1_estabcons]: Legend1[hrpdb1_estabcons]: Established connections Legend2[hrpdb1_estabcons]: Options[hrpdb1_estabcons]: growright,nopercent,gauge
Log info for the hrpdb1_activecpu.log
Now, this CPU monitor is the EXACT same as the CPU monitor of all my other machines, except the target machine is different.Code:[root@diam-ora-central hrpdb1]# cat hrpdb1_activecpu.log 1108997701 555629721 555629721 1108997701 0 0 0 0 1108997642 0 0 0 0 1108997400 0 0 0 0 1108997100 0 0 0 0 1108996800 0 0 0 0 1108996500 0 0 0 0 1108996200 0 0 0 0 1108995900 0 0 0 0 1108995600 0 0 0 0 1108995300 0 0 0 0 1108995000 0 0 0 0 1108994700 0 0 0 0 1108994400 0 0 0 0 1108994100 0 0 0 0 1108993800 0 0 0 0 1108993500 0 0 0 0 1108993200 0 0 0 0 1108992900 0 0 0 0 1108992600 0 0 0 0 1108992300 0 0 0 0 1108992000 0 0 0 0 1108991700 0 0 0 0 1108991400 0 0 0 0 1108991100 0 0 0 0 1108990800 0 0 0 0
The snmpd.conf file on EACH machine is the exact same and every other machine I have works as expected and return valid CPU data.
This machine just won't return any valid CPU information.
*NOW* When I snmpwalk the CPU mib by hand I return valid info:
Code:[root@diam-ora-central clients]# snmpwalk -v 1 -c public 10.72.33.60 ssCpuRawUser.0 UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 535856030
So my very basic question is WTF?! Any help would be GREATLY appreciated as this has just hit a wall for me febel(spelling?) mind.
- 02-21-2005 #2Just Joined!
- Join Date
- Feb 2005
- Posts
- 2
Nevermind. I just used cpuinfo in the contrib directory to skip the MIB and run the small script for this machine and it works.


Reply With Quote
