Ad Widget

Collapse

SNMP not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freax
    Junior Member
    • Apr 2005
    • 19

    #1

    SNMP not working

    Hi to all !

    I have installed zabbix in my freebsd to scan various machines using snmp.

    I can snmpget the host but it's not working in zabbix. It says Unreachable in Hosts. Don't know why !?!

    Any help ?
    Thanks in advance
    Last edited by freax; 29-04-2005, 20:03.
  • eWebtricity
    Junior Member
    • Mar 2005
    • 27

    #2
    You might try watching the zabbix_suckerd.log file with tail to see what error if any it produces. Might be that the hostname is unresolvable, so you could try updating the /etc/hosts file or using the ip address in zabbix.

    Comment

    • freax
      Junior Member
      • Apr 2005
      • 19

      #3
      Thanks in advance for your help.

      I tryed today and the problem is only with snmp v2. With v1 works very well.
      I don't understand because with works with snmpget -v c2 :-/

      For me the problem is "solved" but I don't understand ...

      Thanks again.

      Comment

      • sinda
        Member
        • Apr 2005
        • 33

        #4
        snmpget too long

        hello,
        i have zabbix V1.0
        when i start zabbix_suckerd i get millions of snmpget too long.

        thank you

        Comment

        • freax
          Junior Member
          • Apr 2005
          • 19

          #5
          Check the community name and if the snmp service is running in the machine you are trying to get.

          Also use always SNMP v1. Lookout if your packets are being blocked by a firewall.

          This did the trick for me. Else look the logs.

          Originally posted by sinda
          hello,
          i have zabbix V1.0
          when i start zabbix_suckerd i get millions of snmpget too long.

          thank you

          Comment

          • sinda
            Member
            • Apr 2005
            • 33

            #6
            hello ,
            i still have a problem with snmp.
            i follow what's written on the manual V1.0 but it doesn't work.
            when i use the terminal (snmpwalk et snmpget) i get a correct result.
            this is exactly what i put :
            -first
            snmpget -v 1 -On -c public 193.95.92.27 ifInOctets.1
            .1.3.6.1.2.1.2.2.1.10.1 = Counter32: 1321012

            -then
            type: snmpv1 agent
            snmp community: public
            snmp oid: .1.3.6.1.2.1.2.2.1.10.1
            port :161
            key :ifInOctets.1

            in latest data i don't found any value stored in the database.

            thank you for your help

            Comment

            • crinago
              Junior Member
              • May 2005
              • 10

              #7
              help on snmp problem

              I am also experiencing the same problem monitoring my snmp devices. suckerd log says - Getting value of [] from host failed.... The value is not stored in database.

              I've tried using snmp v.1 and v.2... but if I use snmpget command I can extract a value from it. I use zabbix 1.0... help!

              Comment

              • silicontrip
                Junior Member
                • Sep 2005
                • 2

                #8
                Originally posted by sinda
                hello,
                i have zabbix V1.0
                when i start zabbix_suckerd i get millions of snmpget too long.

                thank you
                I've read through this forum and despite this error popping up all over the place, no one has a definative answer.

                I have net snmp version 5.0.8.

                I can snmpget the value directly from the command line:

                Code:
                snmpget -v 1 -c 'notpublic' 192.168.101.104 .1.3.6.1.4.1.9990.1.101.1
                SNMPv2-SMI::enterprises.9990.1.101.1 = STRING: "449677"
                the console fills with the "snmpget: too long" error

                the debug log shows the following:

                Code:
                025185:20050905:134348 In DBnum_rows
                025185:20050905:134348 Result of DBnum_rows [1]
                025185:20050905:134348 In get_value_SNMP()
                025185:20050905:134348 SNMP [[email protected]:161:161]
                025185:20050905:134348 OID [.1.3.6.1.4.1.9990.1.101.1]
                025185:20050905:134348 In get_value_SNMP() 0.2
                025185:20050905:134348 In get_value_SNMP() 0.3
                025185:20050905:134348 Status send [1]
                025185:20050905:134348 In get_value_SNMP() 0.4
                025185:20050905:134348 In get_value_SNMP() 1
                025185:20050905:134348 Error [1]
                025185:20050905:134348 GOT VALUE []
                025185:20050905:134348 Getting value of [fileTableCount] from host [server00]  failed
                025185:20050905:134348 The value is not stored in database.
                I don't like the look of the :161 in the host address twice?

                What have I done wrong?

                Comment

                • elkor
                  Senior Member
                  • Jul 2005
                  • 299

                  #9
                  Originally posted by silicontrip
                  the debug log shows the following:
                  Code:
                  025185:20050905:134348 SNMP [[email protected]:161:161]
                  I don't like the look of the :161 in the host address twice?
                  I think you may just have hit the nail on the head here

                  Comment

                  • silicontrip
                    Junior Member
                    • Sep 2005
                    • 2

                    #10
                    I had a look in the zabbix_suckerd.c code and found a define "NEW_APPROACH" which added the extra :<port> to the IP address. I un defined NEW_APPROACH and rebuilt the source. I no longer get the :161:161 issue but another issue now...

                    Code:
                    017926:20050906:084955 In DBnum_rows
                    017926:20050906:084955 Result of DBnum_rows [1]
                    017926:20050906:084955 In get_value_SNMP()
                    017926:20050906:084955 SNMP [[email protected]:161]
                    017926:20050906:084955 OID [.1.3.6.1.4.1.9990.1.101.1]
                    017926:20050906:084955 In get_value_SNMP() 0.2
                    017926:20050906:084955 In get_value_SNMP() 0.3
                    017926:20050906:084955 Status send [1]
                    017926:20050906:084955 In get_value_SNMP() 0.4
                    017926:20050906:084955 In get_value_SNMP() 1
                    017926:20050906:084955 Error [1]
                    017926:20050906:084955 GOT VALUE [<BF><FF><DC>^P]
                    017926:20050906:084955 Getting value of [fileTableCount] from host [server00] 
                    failed
                    017926:20050906:084955 The value is not stored in database.
                    Maybe I should just get a newer version of zabbix?

                    Comment

                    Working...