Ad Widget

Collapse

snmpwalk works but snmp items fail to populate

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cirrhus9.com
    Member
    • Feb 2012
    • 58

    #1

    snmpwalk works but snmp items fail to populate

    We are running Zabbix 1.8.10 (revision 24303)
    on a CentOS 5.9 host with updated (today) snmp utils
    (net-snmp-5.3.2.2-22.el5_10.1)
    Code:
    snmpwalk -v 2c -c <string> <ip>
    works via c-line, but our snmp-templated items do not.

    The Template_SNMPv2_Device template is not linked as I only copied 3 items over, these did not and do not show up under Latest Data.
    The target host is WIN08SR2 - Standard

    I then linked the Template_SNMPv2_Device to the host and waited.
    Some items became not supported

    All snmp items are SNMPv2 agent and the correct community_string is being used.

    I set debug=4 in zabbix_server.conf and bounced, the log file shows:
    Code:
      2238:20140416:055037.549 SNMP item [icmpOutErrors] on host [cwWindows] failed: another network error, wait for 15 seconds
      2228:20140416:055038.051 SNMP item [icmpOutMsgs] on host [cwWindows] failed: another network error, wait for 15 seconds
      2227:20140416:055039.824 SNMP item [icmpOutParmProbs] on host [cwWindows] failed: another network error, wait for 15 seconds
      2239:20140416:055040.973 SNMP item [icmpOutRedirects] on host [cwWindows] failed: another network error, wait for 15 seconds
    and
    Code:
    tcpdump -l -vvv -x -X port 161 -i eth0 and dst <ip> -c 5
    while snmpwalk'ing shows:
    Code:
    06:00:38.988337 IP (tos 0x0, ttl  64, id 0, offset 0, flags [DF], proto: UDP (17), length: 76) monitoring.cirrhus9.com.39410 > dev.domain.com.snmp: [COLOR=red][COLOR=black][[/COLOR]bad udp cksum[/COLOR] 1fb!]  { SNMPv2c C=<community_string> { GetNextRequest(25) R=1462806426   }
    NOTE: "dev.'domain.com'.snmp" here is NOT the hosts name. This remains a mystery to me.

    and now, I'm off to try and use zabbix_sender to collect the metrics I need.

    Is there an "updated" Template_SNMPv2_Device somewhere, this one may be corrupt? I got this one here some time ago but I can't find the source link any more.

    Thank you.

    Edit: Thu Apr 17, 2014 - 2:07:10 PM EDT
    I removed most everything snmp-related and just used the agent items from the Linux Template but the host is only collecting 5 items.
    snapshot of those items. (they do update)

    I stuck these in the agentd.conf and bounced:
    Code:
    UserParameter=disk.used, df  /dev/xvda | tail -1 | awk '{print $3}' 
    UserParameter=disk.free, df  /dev/xvda | tail -1 | awk '{print $4}'
    UserParameter=1m.load.avg, uptime | awk -F 'load average:' '{ print $2 }' | awk '{print $1}' | sed 's/,//g'
    UserParameter=5m.load.avg, uptime | awk -F 'load average:' '{ print $2 }' | awk '{print $2}' | sed 's/,//g'
    UserParameter=15m.load.avg, uptime | awk -F 'load average:' '{ print $2 }' | awk '{print $3}' | sed 's/,//g'
    When nothing showed up, I updated them to Active and this is in the log
    (running DebugLevel=4)
    Code:
     15655:20140417:104947.910 End of update_cpustats()
     15659:20140417:104948.125 In send_buffer() host:'xx.xx.28.187' port:10051 values:0/100
     15659:20140417:104948.126 End of send_buffer():SUCCEED
     15659:20140417:104948.126 Sleeping for 1 second(s)
    Last edited by cirrhus9.com; 17-04-2014, 20:08.
  • cirrhus9.com
    Member
    • Feb 2012
    • 58

    #2
    Well, I still have NO data under Latest Data for snmp items, but we do have graphs and that's enough for this task.

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      Excuse me if I'm wrong - What kind of host would you like to monitor by SNMP?

      In first part of your post you was talking about
      The target host is WIN08SR2 - Standard
      Then, when you update you post, your target host was changed:
      just used the agent items from the Linux Template
      Please, draw the full picture:
      - zabbix server - OS?
      - zabbix agent - OS? Is SNMP daemon enabled? What is the result of
      Code:
      #snmpwalk -v 2c -c public {ip_of_client} 1.3.6.1.2.1.1
      Sorry about that - but some servers doesn't have SNMP enabled by default. You have to turn it on and do some additional configuration. The same story about network devices - some of them works with SNMP by default, some of them - not.
      Sincerely yours,
      Aleksey

      Comment

      • cirrhus9.com
        Member
        • Feb 2012
        • 58

        #4
        Originally posted by aib
        Please, draw the full picture:
        - zabbix server - OS?
        - zabbix agent - OS? Is SNMP daemon enabled? What is the result of
        Code:
        #snmpwalk -v 2c -c public {ip_of_client} 1.3.6.1.2.1.1
        Sorry about that - but some servers doesn't have SNMP enabled by default. You have to turn it on and do some additional configuration. The same story about network devices - some of them works with SNMP by default, some of them - not.
        Aleksey:

        The issue presently is with WindowsServer 2008 R2 standard and enterprise editions.
        SNMP Service with correct Security and Community settings haven't changed and snmpwalk and snmpget on any Windows host currently having this issue all return values from the queries.

        Graphs for snmp data show recent values, it's just that "Latest Data" does not show any values for those same elements.
        Currently, this is affecting ALL snmp elements for all of our hosts that use snmp v2c items.

        We expect to double the available RAM on this instance this week as I'm hoping this is a performance-related issue.

        Thank you.

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          OK, I see what you meant.

          Try to use "Filter" option - it's almost invisible word on blue line between dropdown selection fields "Group" and "Host" - and Data table.

          Select one group, one host and filter only "escr" to check if you have any Description got by SNMP.

          To check all data from all hosts in group - try to use "Overview"
          Sincerely yours,
          Aleksey

          Comment

          • cirrhus9.com
            Member
            • Feb 2012
            • 58

            #6
            Aleksey:

            Thank you!
            That damned filter had something in it and was collapsed. This accounts for why I saw "no data" for snmp-related items.

            You rock!

            Comment

            • aib
              Senior Member
              • Jan 2014
              • 1615

              #7
              Anytime!
              Sincerely yours,
              Aleksey

              Comment

              • cirrhus9.com
                Member
                • Feb 2012
                • 58

                #8
                I have a 'tip' or a Feature request along these lines...
                a popup or bubble tip/ balloon that indicates "You have a filter set" anywhere there is one.

                Thanks. Now I can get off 1.8.10 and get "current" soon...

                1.8 > 2.0 > 2.2 is what heaje on irc told me.

                Now I can sleep tonight!

                Comment

                Working...