Hello
Env: centos 7, nagios 5.11.2 (yes, its bad, im in proccess of migrating.)
But question is about bulk mib upload. I want to upload juniper mibs (Junos OS), but they come with 166 txt files. I really dont want to use admin panel, manage mibs, and upload the mibs one at a time.
I also tried extracting the mibs to /usr/share/snmp/mibs folder but after that Nagios XI manage mibs says about those mibs: Unknown (Missing Database Entry).
So whats the correct way for bulk mib upload?
Thank you!
mib bulk upload
Re: mib bulk upload
Hey @elinagios,
Apologies, I made a post earlier with instructions for how to do this, but was made aware that they were a little out of date. You should actually be fine to work with the steps you're taking and just ignore the message you're seeing IF you are not interested in using these MIBs for SNMP Traps. If you are, I've provided a link below with instructions for how to import them.
https://nagiosenterprises.my.site.com/s ... I-93894881
Apologies, I made a post earlier with instructions for how to do this, but was made aware that they were a little out of date. You should actually be fine to work with the steps you're taking and just ignore the message you're seeing IF you are not interested in using these MIBs for SNMP Traps. If you are, I've provided a link below with instructions for how to import them.
https://nagiosenterprises.my.site.com/s ... I-93894881
Last edited by jsimon on Mon Aug 19, 2024 12:20 pm, edited 1 time in total.
Reason: Received better info from Supportkk
Reason: Received better info from Supportkk
Re: mib bulk upload
So basically upload the MIB's to /usr/share/snmp/mibs folder, Go to manage mibs, ignore Unknown (Missing Database Entry) and hit Process All Traps button? The "process all traps" will make the mibs known for Nagios database?
Re: mib bulk upload
Nagios uses snmptt to process traps. The snmptt system uses snmptt.conf* not mibs. You can use addmib to add any mib you want to snmp.conf* via the shell in bulk. Have a look at the snmptt docs.
Re: mib bulk upload
At the moment i really dont want to use traps with these new mib's, just regular check_snmp.
Addmib is not available on centos 7, it should be part of the snmp-utils what i have installed but not addmib package available.
That said, can i just upload the required mibs to /usr/share/snmp/mibs folder and ignore the Unknown (Missing Database Entry)? Or should i make nagiosxi somehow aware of the new mibs.
Addmib is not available on centos 7, it should be part of the snmp-utils what i have installed but not addmib package available.
That said, can i just upload the required mibs to /usr/share/snmp/mibs folder and ignore the Unknown (Missing Database Entry)? Or should i make nagiosxi somehow aware of the new mibs.
Re: mib bulk upload
You should be able to just copy the mibs to your bib dir, depending on how the check_snmp command is defined. Nagios most likely doesn't need to know about the mibs, but check_snmp needs to find them where it expects them to be.
I'd guess addmib would be part of snmptt since it writes to snmptt.conf* and it is/was on Centos 7.
The larger point here is to understand what nagios is doing and what the plugin is doing. check_snmp reads mibs. Nagios is storing mib data, writing that data to an snmptt.conf* file, and possibly copying the mib to the mib dir.
I'd guess addmib would be part of snmptt since it writes to snmptt.conf* and it is/was on Centos 7.
The larger point here is to understand what nagios is doing and what the plugin is doing. check_snmp reads mibs. Nagios is storing mib data, writing that data to an snmptt.conf* file, and possibly copying the mib to the mib dir.