PDA

View Full Version : SNMP LowLevel Discovery 1.9.9


753713
06-02-2012, 15:37
Hi,

I cannot discover VMWARE ESX with ZABBIX. snmpwalk work without problems and after create the discoverve rule and item I get no data in zabbix.
Can zabbix read another mibs?

Here snmpwalk output:

root@zabbix:~# snmpwalk -v 2c -c public 192.168.0.16 IF-MIB::ifDescr
IF-MIB::ifDescr.1 = STRING: Device vmnic0 at 02:00.0 e1000e

root@zabbix:~# snmpwalk -v 2c -c public 192.168.0.16 VMWARE-VMINFO-MIB::vmwVmDisplayName
VMWARE-VMINFO-MIB::vmwVmDisplayName.1 = STRING: TEST1
VMWARE-VMINFO-MIB::vmwVmDisplayName.3 = STRING: ZABBIX
VMWARE-VMINFO-MIB::vmwVmDisplayName.6 = STRING: TEST2
VMWARE-VMINFO-MIB::vmwVmDisplayName.8 = STRING: TEST3
VMWARE-VMINFO-MIB::vmwVmDisplayName.10 = STRING: TEST4
VMWARE-VMINFO-MIB::vmwVmDisplayName.13 = STRING: ZABBIX TEST
VMWARE-VMINFO-MIB::vmwVmDisplayName.14 = STRING: TEST5

Here ZABBIX_SERVER.log:


18163:20120206:144035.812 In substitute_simple_macros() data:'snmp.discovery'
18163:20120206:144035.812 In substitute_simple_macros() data:'161'
18163:20120206:144035.813 In substitute_simple_macros() data:'public'
18163:20120206:144035.813 In substitute_simple_macros() data:'ifDescr'
18163:20120206:144035.813 In get_value() key:'snmp.discovery'
18163:20120206:144035.813 In get_value_snmp() key:'snmp.discovery' oid:'ifDescr'
18163:20120206:144035.813 In snmp_open_session()
18163:20120206:144035.813 SNMP [public@192.168.0.16:161]
18163:20120206:144035.813 End of snmp_open_session()
18163:20120206:144035.813 In snmp_normalize(oid:ifDescr)
18163:20120206:144035.813 End of snmp_normalize():1.3.6.1.2.1.2.2.1.2
18163:20120206:144035.813 In snmp_walk() oid:'1.3.6.1.2.1.2.2.1.2'
18163:20120206:144035.813 snmp_walk: snmp_pdu_create()
18163:20120206:144035.814 In snmp_set_value()
18163:20120206:144035.814 snmp_set_value() AV loop OID [IF-MIB::ifDescr.1] Type [0x04] 'STRING: Device vmnic0 at 02:00.0 e1000e'
18163:20120206:144035.814 End of snmp_set_value():SUCCEED
18163:20120206:144035.814 snmp_walk: snmp_pdu_create()
18163:20120206:144035.814 End of snmp_walk():SUCCEED
18163:20120206:144035.814 In snmp_close_session()
18163:20120206:144035.814 End of snmp_close_session()
18163:20120206:144035.814 End of get_value_snmp():SUCCEED
18163:20120206:144035.814 End of get_value():SUCCEED
18163:20120206:144035.814 In activate_host() hostid:10059 itemid:24155 type:4
18163:20120206:144035.814 In DBlld_process_discovery_rule() itemid:24155
18163:20120206:144035.814 query [txnlev:0] [select hostid,key_,status,filter,error,lifetime from items where itemid=24155]
18163:20120206:144035.814 In substitute_simple_macros() data:'30'
18163:20120206:144035.814 query [txnlev:1] [begin;]
18163:20120206:144035.814 DBlld_process_discovery_rule() f_macro:'' f_regexp:''
18163:20120206:144035.815 In DBlld_update_items()
18163:20120206:144035.815 query [txnlev:1] [select i.itemid,i.name,i.key_,i.type,i.value_type,i.data_ type,i.delay,i.delay_flex,i.history,i.trends,i.sta tus,i.trapper_hosts,i.units,i.multiplier,i.delta,i .formula,i.logtimefmt,i.valuemapid,i.params,i.ipmi _sensor,i.snmp_community,i.snmp_oid,i.port,i.snmpv 3_securityname,i.snmpv3_securitylevel,i.snmpv3_aut hpassphrase,i.snmpv3_privpassphrase,i.authtype,i.u sername,i.password,i.publickey,i.privatekey,i.desc ription,i.interfaceid from items i,item_discovery id where i.itemid=id.itemid and id.parent_itemid=24155]
18162:20120206:144035.828 In get_values()
18162:20120206:144035.828 In DCconfig_get_poller_items() poller_type:0
18162:20120206:144035.828 End of DCconfig_get_poller_items():0
18162:20120206:144035.828 End of get_values():0
18162:20120206:144035.828 poller #1 spent 0.000108 seconds while updating 0 values
18162:20120206:144035.828 In DCconfig_get_poller_nextcheck() poller_type:0
18162:20120206:144035.828 End of DCconfig_get_poller_nextcheck():-1
18162:20120206:144035.828 sleeping for 5 seconds
18163:20120206:144035.822 In DBlld_check_record() jp_row:'{"{#SNMPINDEX}":1,"{#SNMPVALUE}":"Device vmnic0 at 02:00.0 e1000e"}'
18163:20120206:144035.860 End of DBlld_check_record():SUCCEED


18163:20120206:154343.164 In substitute_simple_macros() data:'snmp.discoveryvm'
18163:20120206:154343.164 In substitute_simple_macros() data:'161'
18163:20120206:154343.164 In substitute_simple_macros() data:'public'
18163:20120206:154343.164 In substitute_simple_macros() data:'vmwVmDisplayName'
18163:20120206:154343.164 In get_value() key:'snmp.discoveryvm'
18163:20120206:154343.164 In get_value_snmp() key:'snmp.discoveryvm' oid:'vmwVmDisplayName'
18163:20120206:154343.164 In snmp_open_session()
18163:20120206:154343.164 SNMP [public@192.168.0.16:161]
18163:20120206:154343.164 End of snmp_open_session()
18163:20120206:154343.164 In snmp_normalize(oid:vmwVmDisplayName)
18163:20120206:154343.164 End of snmp_normalize():vmwVmDisplayName
18163:20120206:154343.164 In snmp_walk() oid:'vmwVmDisplayName'
18162:20120206:154343.169 In get_values()
18162:20120206:154343.169 In DCconfig_get_poller_items() poller_type:0
18162:20120206:154343.169 End of DCconfig_get_poller_items():0
18162:20120206:154343.169 End of get_values():0
18162:20120206:154343.169 poller #1 spent 0.000084 seconds while updating 0 values
18162:20120206:154343.169 In DCconfig_get_poller_nextcheck() poller_type:0
18162:20120206:154343.169 End of DCconfig_get_poller_nextcheck():-1
18162:20120206:154343.169 sleeping for 5 seconds
18163:20120206:154343.171 snmp_walk: snmp_pdu_create()
18163:20120206:154343.172 End of snmp_walk():SUCCEED
18163:20120206:154343.172 In snmp_close_session()
18163:20120206:154343.172 End of snmp_close_session()
18163:20120206:154343.172 End of get_value_snmp():SUCCEED
18163:20120206:154343.172 End of get_value():SUCCEED
18163:20120206:154343.172 In activate_host() hostid:10059 itemid:24163 type:4
18163:20120206:154343.172 In DBlld_process_discovery_rule() itemid:24163
18163:20120206:154343.172 query [txnlev:0] [select hostid,key_,status,filter,error,lifetime from items where itemid=24163]
18163:20120206:154343.173 In substitute_simple_macros() data:'30'
18163:20120206:154343.173 query [txnlev:1] [begin;]
18163:20120206:154343.173 DBlld_process_discovery_rule() f_macro:'' f_regexp:''
18163:20120206:154343.173 In DBlld_update_items()

richlv
06-02-2012, 18:50
can you just show the lld config ?

753713
06-02-2012, 20:43
no problem, here the screenshots:

richlv
06-02-2012, 23:19
the oids you use in the commandline tools and zabbix setup seem to be different (zabbix ones are missing the mib part)

753713
07-02-2012, 07:39
How can I add the another mibs to zabbix? I have only copy the mibs to /usr/share/snmp/mibs, cannot read zabbix the mibs?

jesmit
07-02-2012, 16:28
Honestly it's probably just easier (although not as elegant) if you just give snmpwalk the "-On" flag which will dump the OIDs as numerical. Then use the numerical OID in the discovery rules rather than mess around with trying to use names.

753713
07-02-2012, 20:33
ok, here the test:
root@zabbix:~# snmpwalk -On -c public -v 2c 192.168.0.16 ifDescr
.1.3.6.1.2.1.2.2.1.2.1 = STRING: Device vmnic0 at 02:00.0 e1000e
root@zabbix:~# snmpwalk -On -c public -v 2c 192.168.0.16 vmwVmDisplayName
vmwVmDisplayName: Unknown Object Identifier (Sub-id not found: (top) -> vmwVmDisplayName)
root@zabbix:~# snmpwalk -On -c public -v 2c 192.168.0.16 .1.3.6.1.4.1.6876.2.1.1.2
.1.3.6.1.4.1.6876.2.1.1.2.1 = STRING: "test1"
.1.3.6.1.4.1.6876.2.1.1.2.3 = STRING: "ZABBIX"
.1.3.6.1.4.1.6876.2.1.1.2.6 = STRING: "test2"
.1.3.6.1.4.1.6876.2.1.1.2.8 = STRING: "test3"
.1.3.6.1.4.1.6876.2.1.1.2.10 = STRING: "test4"
.1.3.6.1.4.1.6876.2.1.1.2.13 = STRING: "ZABBIX TEST"
.1.3.6.1.4.1.6876.2.1.1.2.14 = STRING: "test5"


the use the OID: .1.3.6.1.4.1.6876.2.1.1.2 has no effect.

any ideas?

jesmit
07-02-2012, 21:18
Try changing the "data type" from log to "character"

753713
08-02-2012, 09:38
ok, with OID running the discovery.

snmpwalk run without problems with the parameter "-m all", can you integrate this in the next version.

root@zabbix:~# snmpwalk -On -c public -v 2c 192.168.0.16 vmwVmDisplayName -m all
.1.3.6.1.4.1.6876.2.1.1.2.1 = STRING: test1
.1.3.6.1.4.1.6876.2.1.1.2.3 = STRING: ZABBIX
.1.3.6.1.4.1.6876.2.1.1.2.6 = STRING: test2
.1.3.6.1.4.1.6876.2.1.1.2.8 = STRING: test3
.1.3.6.1.4.1.6876.2.1.1.2.10 = STRING: test4
.1.3.6.1.4.1.6876.2.1.1.2.13 = STRING: ZABBIX TEST
.1.3.6.1.4.1.6876.2.1.1.2.14 = STRING: test5
root@zabbix:~# snmpwalk -On -c public -v 2c 192.168.0.16 vmwVmDisplayName
vmwVmDisplayName: Unknown Object Identifier (Sub-id not found: (top) -> vmwVmDisplayName)
root@zabbix:~#