[ZBX-4226] Zabbix can not load SNMP MIBs on Debian Created: 2011 Oct 12  Updated: 2017 May 30  Resolved: 2011 Oct 12

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 1.8.8
Fix Version/s: None

Type: Incident report Priority: Critical
Reporter: Johann Brajer Assignee: Unassigned
Resolution: Cannot Reproduce Votes: 0
Labels: items, snmp
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

HP ProLiant DL380 G7
Debian Linux 64 Bit (6.0.2 - squeeze - current stable)
Linux myserver 2.6.32-5-amd64 #1 SMP Fri Sep 9 20:23:16 UTC 2011 x86_64 GNU/Linux
Zabbix 1.8.8 compiled from source using zabbix proxy



 Description   

I am trying to get our SNMP requests (per MIBs) running.
When using OIDs it works but when requesting for MIBs in items it
doesn´t. (eg. IF-MIB::ifOutErrors.1) It seems that Zabbix can not find the MIBs path??
I have installed the standard MIBs on my debian Server by "apt-get install snmp-mibs-downloader"
After the command "net-snmp-config --default-mibdirs" shows me the install directories of the MIBs on console correctly.

> "/home/user/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp"

the standard MIBs are installed in /usr/share/mibs/ietf as i noticed
zabbix uses netsnmp for requesting SNMP items correct?
With netsnmp it seems to work on CI...

> snmpget -v 1 -c community IP-adr system.sysUpTime.0 ##
> DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (593740377) 68 days,
> 17:16:43.77

Where can i set in Zabbix the SNMP MIBs Path?? is there a default path?

THX



 Comments   
Comment by Viktors Kohanovskis (Inactive) [ 2011 Oct 12 ]

Hey Johann, as understand correctly you want to read SNMP MIBs and add it for monitoring in zabbix? Can I suggest maybe information here --> http://www.zabbix.com/wiki/howto/monitor/snmp/zload_snmpwalk ?

Comment by Johann Brajer [ 2011 Oct 12 ]

not really, i just want to use SNMPv2 agent as item ...set SNMP OID as eg. "IF-MIB::ifDescr[index,ifName,"Te1/2/1"]" ... so that zabbix has know IFMIB to request ifDescr.

I dont want to find out every OID for each request....
do i have to load all MIBfiles in zabbix ?

Comment by Johann Brajer [ 2011 Oct 12 ]

like here
http://www.zabbix.com/documentation/1.8/manual/config/items

i like to use it in the way as it is decribed in Example 2 at 4.19.6 SNMP Agent!

not as Example 1 with OID number

Comment by Viktors Kohanovskis (Inactive) [ 2011 Oct 12 ]

you don't have to load anything in to zabbix, just have MIBs in directory where NET-SNMP can find them. P.S. sorry in asking - did you try to restart zabbix server after "snmp-mibs" install?

Comment by richlv [ 2011 Oct 12 ]

tested on 1.8.8 appliance, short oid names work just fine. this seems like a configuration issue most likely - please, use zabbix forums or irc for community support, thanks

Comment by Johann Brajer [ 2011 Oct 12 ]

good point...will try to restart the server...maybe zabbix will then know the MIB Names...
as net-snmp does know them...

Comment by Johann Brajer [ 2011 Oct 12 ]

seems to be the issue...a restart of the Server helps!

But do i have to restart always the whole Server when adding a new MIB??
what about the Proxy? i have to restart as well

Comment by Oleksii Zagorskyi [ 2011 Oct 13 ]

http://www.net-snmp.org/wiki/index.php/TUT:Using_and_loading_MIBS

> But do i have to restart always the whole Server when adding a new MIB??

YES !!!

Comment by dimir [ 2011 Oct 13 ]

I strongly recommend documenting it.

Comment by Johann Brajer [ 2011 Oct 13 ]

but was it also neccessary to reboot the Server in zabbix 1.8.3?? as i remember i didn't have to when adding some new MIBs?

Comment by richlv [ 2011 Oct 17 ]

as far as i recall, snmp low level operations haven't been changed, so it's most likely the same as in 1.8.3

Generated at Sat Jun 21 07:15:20 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.