Find the answer to your Linux question:
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just 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:

    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&#91;hrpdb1_WAN&#93;&#58; <H1>Traffic Analysis for -- hrpdb1</H1>
     <TABLE>
       <TR><TD>System&#58;</TD>     <TD>hrpdb1.hrpdb1</TD></TR>
       <TR><TD>Maintainer&#58;</TD> <TD>RAEL_MUSSELL@denso-diam.com</TD></TR>
       <TR><TD>Description&#58;</TD><TD>eth1  </TD></TR>
       <TR><TD>ifType&#58;</TD>     <TD>ethernetCsmacd &#40;6&#41;</TD></TR>
       <TR><TD>ifName&#58;</TD>     <TD></TD></TR>
       <TR><TD>Max Speed&#58;</TD>  <TD>1000.0 kBytes/s</TD></TR>
       <TR><TD>Ip&#58;</TD>         <TD>10.72.33.60&#40;hrpdb1&#41;</TD></TR>
     </TABLE>
    
    LoadMIBs&#58; /usr/share/snmp/mibs/UCD-SNMP-MIB.txt
    
    #
    # CPU Utilization
    #
    
    Target&#91;hrpdb1_activeCPU&#93;&#58;ssCpuRawUser.0&ssCpuRawUser.0&#58;public@10.72.33.60 + ssCpuRawSystem.0&ssCpuRawSystem.0&#58;public@10.72.33.60 + ssCpuRawNice.0&ssCpuRawNice.0&#58;public@10.72.33.60
    RouterUptime&#91;hrpdb1_activeCPU&#93;&#58; public@10.72.33.60
    MaxBytes&#91;hrpdb1_activeCPU&#93;&#58; 100
    Title&#91;hrpdb1_activeCPU&#93;&#58; CPU LOAD
    Unscaled&#91;hrpdb1_activeCPU&#93;&#58; ymwd
    ShortLegend&#91;hrpdb1_activeCPU&#93;&#58; %
    YLegend&#91;hrpdb1_activeCPU&#93;&#58; CPU Utilization
    Legend1&#91;hrpdb1_activeCPU&#93;&#58; Active CPU in % &#40;Load&#41;
    Legend2&#91;hrpdb1_activeCPU&#93;&#58;
    Legend3&#91;hrpdb1_activeCPU&#93;&#58;
    Legend4&#91;hrpdb1_activeCPU&#93;&#58;
    LegendI&#91;hrpdb1_activeCPU&#93;&#58;  Active
    LegendO&#91;hrpdb1_activeCPU&#93;&#58;
    Options&#91;hrpdb1_activeCPU&#93;&#58; growright, nopercent,
    PageTop&#91;hrpdb1_activeCPU&#93;&#58; <H1>Active CPU Usage -- hrpdb1</H1>
    
    #
    # Disk Transactions Per Second
    #
    
    Target&#91;hrpdb1.io&#93;&#58; `ssh hrpdb1 /etc/mrtg/disk.io.sh`
    MaxBytes&#91;hrpdb1.io&#93;&#58; 500
    LegendI&#91;hrpdb1.io&#93;&#58; Disk0
    LegendO&#91;hrpdb1.io&#93;&#58; Disk2
    Options&#91;hrpdb1.io&#93;&#58; gauge, nopercent, noarrow, nolegend, nobanner, noinfo
    Ylegend&#91;hrpdb1.io&#93;&#58; TPS
    ShortLegend&#91;hrpdb1.io&#93;&#58; IO/Sec
    Title&#91;hrpdb1.io&#93;&#58;
    PageTop&#91;hrpdb1.io&#93;&#58; <H1>DISK Transactions Per Second -- hrpdb1</H1>
    
    #
    # Disk I/O
    #
    
    Target&#91;hrpdb1_diskio&#93;&#58;ssIOSent.0&ssIOReceive.0&#58;public@10.72.33.60
    RouterUptime&#91;hrpdb1_diskio&#93;&#58; public@10.72.33.60
    MaxBytes&#91;hrpdb1_diskio&#93;&#58; 10000000
    Title&#91;hrpdb1_diskio&#93;&#58; Disk I/O Operations
    Options&#91;hrpdb1_diskio&#93;&#58; growright, gauge, nopercent
    ShortLegend&#91;hrpdb1_diskio&#93;&#58;KB
    YLegend&#91;hrpdb1_diskio&#93;&#58; IO IN / IO OUT
    Legend1&#91;hrpdb1_diskio&#93;&#58;
    LegendI&#91;hrpdb1_diskio&#93;&#58; Out
    LegendO&#91;hrpdb1_diskio&#93;&#58; In
    PageTop&#91;hrpdb1_diskio&#93;&#58; <H1>DISK I/O Throughput -- hrpdb1</H1>
    
    #
    # Ram Used/Free
    #
    
    Target&#91;hrpdb1_RAM_USED_FREE&#93;&#58;.1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.11.0&#58;public@10.72.33.60
    RouterUptime&#91;hrpdb1_RAM_USED_FREE&#93;&#58; public@10.72.33.60
    Title&#91;hrpdb1_RAM_USED_FREE&#93;&#58; RAM - Used/Free
    MaxBytes&#91;hrpdb1_RAM_USED_FREE&#93;&#58; 10000000
    Options&#91;hrpdb1_RAM_USED_FREE&#93;&#58; growright, gauge, nopercent
    ShortLegend&#91;hrpdb1_RAM_USED_FREE&#93;&#58;KB
    YLegend&#91;hrpdb1_RAM_USED_FREE&#93;&#58; RAM Used
    Legend1&#91;hrpdb1_RAM_USED_FREE&#93;&#58; RAM Free
    LegendI&#91;hrpdb1_RAM_USED_FREE&#93;&#58; RAM Used
    LegendO&#91;hrpdb1_RAM_USED_FREE&#93;&#58; RAM Free
    PageTop&#91;hrpdb1_RAM_USED_FREE&#93;&#58; <H1>Memory Used/Free</H1>
    
    
    #
    # RAM Shared/Buffered
    #
    
    Target&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58;1.3.6.1.4.1.2021.4.13.0&.1.3.6.1.4.1.2021.4.14.0&#58;public@10.72.33.60
    RouterUptime&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; public@10.72.33.60
    Title&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; RAM Shared/Buffered
    MaxBytes&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; 10000000
    Options&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; growright, gauge, nopercent
    ShortLegend&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58;KB
    YLegend&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; RAM Shared
    Legend1&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; RAM Buffered
    LegendI&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; RAM Shared
    LegendO&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; Ram Buffered
    PageTop&#91;hrpdb1_RAM_SHARED_BUFFERED&#93;&#58; <H1>Memory Info - RAM Shared/buffered</H1>
    
    #
    # Cached Memory Information
    #
    
    Target&#91;hrpdb1_MEMORY_CACHED&#93;&#58;.1.3.6.1.4.1.2021.4.15.0&.1.3.6.1.4.1.2021.4.15.0&#58;public@10.72.33.60
    RouterUptime&#91;hrpdb1_MEMORY_CACHED&#93;&#58; public@10.72.33.60
    Title&#91;hrpdb1_MEMORY_CACHED&#93;&#58; Memory Cached
    MaxBytes&#91;hrpdb1_MEMORY_CACHED&#93;&#58; 100000000000
    Options&#91;hrpdb1_MEMORY_CACHED&#93;&#58; growright, gauge, nopercent
    ShortLegend&#91;hrpdb1_MEMORY_CACHED&#93;&#58;KB
    YLegend&#91;hrpdb1_MEMORY_CACHED&#93;&#58; Cached Memory
    Legend1&#91;hrpdb1_MEMORY_CACHED&#93;&#58; Cached Memory
    LegendI&#91;hrpdb1_MEMORY_CACHED&#93;&#58; Cached Memory
    LegendO&#91;hrpdb1_MEMORY_CACHED&#93;&#58; Cached Memory
    PageTop&#91;hrpdb1_MEMORY_CACHED&#93;&#58; <H1>Cached Memory Info</H1>
    
    #
    # Swap Space Usage
    #
    
    Target&#91;hrpdb1_SWAP_USAGE&#93;&#58;.1.3.6.1.4.1.2021.4.3.0&.1.3.6.1.4.1.2021.4.4.0&#58;public@10.72.33.60
    RouterUptime&#91;hrpdb1_SWAP_USAGE&#93;&#58; public@10.72.33.60
    Title&#91;hrpdb1_SWAP_USAGE&#93;&#58; Swap Space
    MaxBytes&#91;hrpdb1_SWAP_USAGE&#93;&#58; 100000000000
    Options&#91;hrpdb1_SWAP_USAGE&#93;&#58; growright, gauge, nopercent
    ShortLegend&#91;hrpdb1_SWAP_USAGE&#93;&#58;KB
    YLegend&#91;hrpdb1_SWAP_USAGE&#93;&#58; Available Swap
    Legend1&#91;hrpdb1_SWAP_USAGE&#93;&#58; Used Swap
    LegendI&#91;hrpdb1_SWAP_USAGE&#93;&#58; Available Swap
    LegendO&#91;hrpdb1_SWAP_USAGE&#93;&#58; Used Swap
    PageTop&#91;hrpdb1_SWAP_USAGE&#93;&#58; <H1>Swap Usage Info</H1>
    
    
    #
    # Memory Monitoring &#40;Percentage usage&#41;
    #
    Target&#91;hrpdb1_mempercent&#93;&#58; &#40; memTotalReal.0&memTotalReal.0&#58;public@hrpdb1 &#41; * 100 / &#40; memTotalReal.0&memTotalReal.0&#58;public@hrpdb1 + memAvailReal.0&memAvailReal.0&#58;public@hrpdb1 &#41;
    Title&#91;hrpdb1_mempercent&#93;&#58; Memory Usage by Percentage
    PageTop&#91;hrpdb1_mempercent&#93;&#58; <H1>Memory usage by percentage</H1>
    options&#91;hrpdb1_mempercent&#93;&#58; growright,gauge,transparent,nopercent
    Unscaled&#91;hrpdb1_mempercent&#93;&#58; ymwd
    MaxBytes&#91;hrpdb1_mempercent&#93;&#58; 100
    YLegend&#91;hrpdb1_mempercent&#93;&#58; Memory %
    ShortLegend&#91;hrpdb1_mempercent&#93;&#58; Percent
    LegendI&#91;hrpdb1_mempercent&#93;&#58; Used
    LegendO&#91;hrpdb1_mempercent&#93;&#58; Used
    Legend1&#91;hrpdb1_mempercent&#93;&#58; Percentage Free Memory
    Legend2&#91;hrpdb1_mempercent&#93;&#58; Percentage Free Memory
    
    #
    # New TCP Connection Monitoring &#40;per minute&#41;
    #
    
    Target&#91;hrpdb1_newconns&#93;&#58; tcpPassiveOpens.0&tcpActiveOpens.0&#58;public@hrpdb1
    Title&#91;hrpdb1_newconns&#93;&#58; Newly Created TCP Connections
    PageTop&#91;hrpdb1_newconns&#93;&#58; <H1>New TCP Connections</H1>
    MaxBytes&#91;hrpdb1_newconns&#93;&#58; 10000000000
    ShortLegend&#91;hrpdb1_newconns&#93;&#58; c/s
    YLegend&#91;hrpdb1_newconns&#93;&#58; Conns / Min
    LegendI&#91;hrpdb1_newconns&#93;&#58; In
    LegendO&#91;hrpdb1_newconns&#93;&#58; Out
    Legend1&#91;hrpdb1_newconns&#93;&#58; New inbound connections
    Legend2&#91;hrpdb1_newconns&#93;&#58; New outbound connections
    Options&#91;hrpdb1_newconns&#93;&#58; growright,nopercent,perminute
    
    
    #
    # Established TCP Connections
    #
    
    Target&#91;hrpdb1_estabcons&#93;&#58; tcpCurrEstab.0&tcpCurrEstab.0&#58;public@hrpdb1
    Title&#91;hrpdb1_estabcons&#93;&#58; Currently Established TCP Connections
    PageTop&#91;hrpdb1_estabcons&#93;&#58; <H1>Established TCP Connections</H1>
    MaxBytes&#91;hrpdb1_estabcons&#93;&#58; 10000000000
    ShortLegend&#91;hrpdb1_estabcons&#93;&#58;
    YLegend&#91;hrpdb1_estabcons&#93;&#58; Connections
    LegendI&#91;hrpdb1_estabcons&#93;&#58; In
    LegendO&#91;hrpdb1_estabcons&#93;&#58;
    Legend1&#91;hrpdb1_estabcons&#93;&#58; Established connections
    Legend2&#91;hrpdb1_estabcons&#93;&#58;
    Options&#91;hrpdb1_estabcons&#93;&#58; growright,nopercent,gauge
    Now the problem is that I have 0 data returned for the CPU monitor:

    Log info for the hrpdb1_activecpu.log
    Code:
    &#91;root@diam-ora-central hrpdb1&#93;# 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
    Now, this CPU monitor is the EXACT same as the CPU monitor of all my other machines, except the target machine is different.

    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:
    &#91;root@diam-ora-central clients&#93;# snmpwalk -v 1 -c public 10.72.33.60 ssCpuRawUser.0
    UCD-SNMP-MIB&#58;&#58;ssCpuRawUser.0 = Counter32&#58; 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.

  2. #2
    Just 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •