Uploading MIB's after Nagios Update to 5.8.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
richie7tech
Posts: 14
Joined: Mon Sep 28, 2020 7:29 am

Uploading MIB's after Nagios Update to 5.8.1

Post by richie7tech »

Hi
we are in the process of upgrading from nagios to 5.6.1 to 5.8.1
we moved from Centos7 to Ubuntu 20.04LTS

After a few issues we have Nagios Installed however some of the MIB's are now not working

in the Manage MIBs page
i have duplicate lines with Unknown (Missing Database Entry)
manage mibs.PNG
when i have tried to delete these MIBs and upload new MIBs
NET-SNMP-EXAMPLES-MIB.txt
the same issue occurs

is there some other file that has requires updating ?

regards
richie
You do not have the required permissions to view the files attached to this post.
Last edited by richie7tech on Wed Jan 27, 2021 11:19 am, edited 1 time in total.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by ssax »

I labbed this up in the same OS/XI versions and I'm unable to replicate it.

Please remove that one from Admin > Manage MIBs, then re-add it, then after that's done:

Please PM me a copy of your profile.zip, you can download it from Admin > System Profile by clicking the Download Profile button.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by ssax »

What is the full output of this command?

Code: Select all

mysql -uroot -pnagiosxi nagiosxi --table -e "select * from xi_mibs;"
richie7tech
Posts: 14
Joined: Mon Sep 28, 2020 7:29 am

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by richie7tech »

nagiosadmin@snmp:~$ sudo mysql -uroot -pnagiosxi nagiosxi --table -e "select * from xi_mibs;"
mysql: [Warning] Using a password on the command line interface can be insecure.
+--------+---------------------------------+---------------------+---------------------+-------------- +
| mib_id | mib_name | mib_uploaded | mib_last_processed | mib_type |
+--------+---------------------------------+---------------------+---------------------+-------------- +
| 1 | AGENTX-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:21 | process_nxti |
| 2 | BRIDGE-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:21 | process_nxti |
| 3 | DISMAN-EVENT-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:22 | process_nxti |
| 4 | DISMAN-SCHEDULE-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:22 | process_nxti |
| 5 | DISMAN-SCRIPT-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:22 | process_nxti |
| 6 | EtherLike-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:22 | process_nxti |
| 7 | HCNUM-TC | 2019-05-07 15:13:16 | 2021-01-26 12:33:22 | process_nxti |
| 8 | HOST-RESOURCES-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 9 | HOST-RESOURCES-TYPES | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 10 | IANA-ADDRESS-FAMILY-NUMBERS-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 11 | IANA-LANGUAGE-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 12 | IANA-RTPROTO-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 13 | IANAifType-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 14 | IF-INVERTED-STACK-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:23 | process_nxti |
| 15 | IF-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:24 | process_nxti |
| 16 | INET-ADDRESS-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:24 | process_nxti |
| 17 | IP-FORWARD-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:24 | process_nxti |
| 18 | IP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:24 | process_nxti |
| 19 | IPV6-FLOW-LABEL-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:24 | process_nxti |
| 20 | IPV6-ICMP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:24 | process_nxti |
| 21 | IPV6-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:25 | process_nxti |
| 22 | IPV6-TC | 2019-05-07 15:13:16 | 2021-01-26 12:33:25 | process_nxti |
| 23 | IPV6-TCP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:25 | process_nxti |
| 24 | IPV6-UDP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:25 | process_nxti |
| 25 | LM-SENSORS-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:25 | process_nxti |
| 26 | MTA-MIB | 2019-05-07 15:13:16 | NULL | upload |
| 29 | NET-SNMP-AGENT-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:26 | process_nxti |
| 31 | NET-SNMP-EXTEND-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:26 | process_nxti |
| 32 | NET-SNMP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:26 | process_nxti |
| 33 | NET-SNMP-PASS-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:27 | process_nxti |
| 34 | NET-SNMP-TC | 2019-05-07 15:13:16 | 2021-01-26 12:33:27 | process_nxti |
| 35 | NET-SNMP-VACM-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:27 | process_nxti |
| 36 | NETWORK-SERVICES-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:27 | process_nxti |
| 37 | NOTIFICATION-LOG-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 38 | RFC-1215 | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 39 | RFC1155-SMI | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 40 | RFC1213-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 41 | RMON-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 42 | SCTP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 43 | SMUX-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:28 | process_nxti |
| 44 | SNMP-COMMUNITY-MIB | 2019-05-07 15:13:16 | NULL | upload |
| 45 | SNMP-FRAMEWORK-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:29 | process_nxti |
| 46 | SNMP-MPD-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:29 | process_nxti |
| 47 | SNMP-NOTIFICATION-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:29 | process_nxti |
| 48 | SNMP-PROXY-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:29 | process_nxti |
| 49 | SNMP-TARGET-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:29 | process_nxti |
| 50 | SNMP-USER-BASED-SM-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:30 | process_nxti |
| 51 | SNMP-USM-AES-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:30 | process_nxti |
| 52 | SNMP-USM-DH-OBJECTS-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:30 | process_nxti |
| 53 | SNMP-VIEW-BASED-ACM-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:30 | process_nxti |
| 54 | SNMPv2-CONF | 2019-05-07 15:13:16 | 2021-01-26 12:33:30 | process_nxti |
| 55 | SNMPv2-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 56 | SNMPv2-SMI | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 57 | SNMPv2-TC | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 58 | SNMPv2-TM | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 59 | TCP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 60 | TRANSPORT-ADDRESS-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 61 | TUNNEL-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:31 | process_nxti |
| 62 | UCD-DEMO-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:32 | process_nxti |
| 63 | UCD-DISKIO-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:32 | process_nxti |
| 64 | UCD-DLMOD-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:32 | process_nxti |
| 65 | UCD-IPFWACC-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:32 | process_nxti |
| 66 | UCD-SNMP-MIB | 2019-05-07 15:13:16 | 2021-01-26 12:33:32 | process_nxti |
| 67 | UDP-MIB | 2019-05-07 15:13:16 | NULL | upload |
| 72 | NET-SNMP-EXAMPLES-MIB | 2021-01-25 17:48:52 | 2021-01-26 12:33:26 | process_nxti |
| 75 | NAGIOS-ROOT-MIB | 2021-01-26 00:28:59 | 2021-01-26 12:33:26 | process_nxti |
| 77 | NAGIOS-NOTIFY-MIB | 2021-01-26 00:32:27 | 2021-01-26 12:33:26 | process_nxti |
| 78 | GNOME-SMI | 2021-01-26 12:30:31 | 2021-01-26 12:33:22 | process_nxti |
| 79 | Missing File | 2021-01-26 12:30:34 | 2021-01-26 12:33:32 | process_nxti |
| 115 | miblist | 2021-01-26 12:30:40 | 2021-01-26 12:33:25 | process_nxti |
| 116 | NET-SNMP-MONITOR-MIB | 2021-01-26 12:30:41 | 2021-01-26 12:33:27 | process_nxti |
| 117 | NET-SNMP-PERIODIC-NOTIFY-MIB | 2021-01-26 12:30:42 | 2021-01-26 12:33:27 | process_nxti |
| 118 | NET-SNMP-SYSTEM-MIB | 2021-01-26 12:30:42 | 2021-01-26 12:33:27 | process_nxti |
| 119 | SNMP-TLS-TM-MIB | 2021-01-26 12:30:44 | 2021-01-26 12:33:30 | process_nxti |
| 120 | SNMP-TSM-MIB | 2021-01-26 12:30:44 | 2021-01-26 12:33:30 | process_nxti |
| 121 | UCD-IPFILTER-MIB | 2021-01-26 12:30:47 | 2021-01-26 12:33:32 | process_nxti |
+--------+---------------------------------+---------------------+---------------------+-------------- +
nagiosadmin@snmp:~$
richie7tech
Posts: 14
Joined: Mon Sep 28, 2020 7:29 am

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by richie7tech »

better laylout in notepad
mysql output.txt
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by ssax »

This has been confirmed as a bug, I have submitted it to development so they can fix it.
steveburns
Posts: 1
Joined: Tue Feb 09, 2021 4:52 pm

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by steveburns »

@ssax
Any update on the status of this bug fix?

As far as I can tell I am literally have the same exact problem on a NagiosXI installation after attempting to install SNMP MIBs after an update.
I even checked the output from the sql command you posted and the MIBs in question appear to be present.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by ssax »

I checked the bug report and development hasn't fixed it yet. I took a look before submitting it but I couldn't figure out what needed to be changed so we'll need to wait on them to fix it.

You should be able to put the MIBs in /usr/share/snmp/mibs manually and then run these commands against it:

Code: Select all

chown apache.nagios /usr/share/snmp/mibs/yourmibfile.ext
chmod 0664 /usr/share/snmp/mibs/yourmibfile.ext
amoss24
Posts: 31
Joined: Thu Dec 17, 2020 1:19 pm

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by amoss24 »

ssax wrote:I checked the bug report and development hasn't fixed it yet. I took a look before submitting it but I couldn't figure out what needed to be changed so we'll need to wait on them to fix it.

You should be able to put the MIBs in /usr/share/snmp/mibs manually and then run these commands against it:

Code: Select all

chown apache.nagios /usr/share/snmp/mibs/yourmibfile.ext
chmod 0664 /usr/share/snmp/mibs/yourmibfile.ext
Hey @ssax
Do you know if this was fixed in 5.8.2? We are also having the same issue with our Nagios XI environment.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Uploading MIB's after Nagios Update to 5.8.1

Post by benjaminsmith »

Hi,
Do you know if this was fixed in 5.8.2? We are also having the same issue with our Nagios XI environment.
Helping Sean on this post, it should be fixed, however, I'm having trouble locating this in the changelog right now. I will follow up shortly once I've had a chance to reach to development on this.

Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked