View Full Version : 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
eWebtricity
01-05-2005, 16:11
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.
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.
hello,
i have zabbix V1.0
when i start zabbix_suckerd i get millions of snmpget too long.
thank you
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.
hello,
i have zabbix V1.0
when i start zabbix_suckerd i get millions of snmpget too long.
thank you
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
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!
silicontrip
05-09-2005, 06:09
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:
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:
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 [notpublic@192.168.101.104: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?
the debug log shows the following:
025185:20050905:134348 SNMP [notpublic@192.168.101.104: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
silicontrip
06-09-2005, 00:52
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...
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 [notpublic@192.168.101.104: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?