Page 1 of 3

Nagios XI - Trap definitons limit

Posted: Mon Jun 10, 2019 5:46 am
by kandatih
Hi all,
we are looking at loading 1000+ MIBS on Nagios Xi server, any advises on best practices to follow before loading 1000+ MIBs.
Does Nagios XI have any limit to the number of traps definitions that we could add? Would Nagios log info about about the time taken to process a trap, number of traps processed in a minute?
Enviroment:
OS : RHEL 7
Nagions XI - v 5.6.2 Offline install.

Thanks in Advance.

Re: Nagios XI - Trap definitons limit

Posted: Tue Jun 11, 2019 1:12 pm
by cdienger
There isn't a hard coded limit.

I would copy them to /usr/share/snmp/mibs/ and then use the Process all traps and import all traps buttons in the UI under Admin > System Extensions > Manage MIBS.

Nagios doesn't record how long or the rate of processed traps.

Re: Nagios XI - Trap definitons limit

Posted: Tue Jun 11, 2019 8:15 pm
by kandatih
Not related to the subject :) , but directly coping the bulk mibs to /usr/share/snmp/mibs and using UI to process traps may not work for all the MIBs. Because for the below after loading the mibs through direct copy, zero trap definitions are added.

cpqrack.mib
cpqhost.mib

Tried to remove the comments, but still no trap definitions. could you please verify the attached mibs and advise.

Re: Nagios XI - Trap definitons limit

Posted: Tue Jun 11, 2019 8:16 pm
by kandatih
Have to change the file extension because forum didnt accept the mib extension.

Re: Nagios XI - Trap definitons limit

Posted: Wed Jun 12, 2019 4:50 am
by kandatih
snmpttconvert.png
More info - running snmpttconvertmib worked fine as attached.

Re: Nagios XI - Trap definitons limit

Posted: Wed Jun 12, 2019 4:10 pm
by tgriep
The cpqrack.txt file includes the cpqhost.txt mib file in it so to get the Traps to work, import the cpqhost.txt mib first and then the other one.
The process all traps may have imported them out of order so that is why it may have failed earlier.

Re: Nagios XI - Trap definitons limit

Posted: Thu Jun 13, 2019 5:24 am
by kandatih
Yep already tried that. loaded the dependency first, but still no traps definitions.

Re: Nagios XI - Trap definitons limit

Posted: Thu Jun 13, 2019 9:26 am
by tgriep
Go to the Admin > Manage MIBs menu.
Find the cpqhost mib file and in the Actions column, click on the Blue Arrow pointing to the right to process it.
Then do the same for the cpqrack mib file.

Go to the Admin > SNMP Trap Interface menu and click on the Defined Traps Tab and see if they are there. You might have to search for them.

Re: Nagios XI - Trap definitons limit

Posted: Thu Jun 13, 2019 8:27 pm
by kandatih
great thanks, I see the definitions are created.
Any idea why Manage MiBs is still showing as zero, is this a known bug. We rely on Associated Traps column to confirm MIBS is loaded successfully with the all the trap definitions. Any fix for this?

Re: Nagios XI - Trap definitons limit

Posted: Fri Jun 14, 2019 8:56 am
by tgriep
The XI interface uses the xi_cmp_trapdata SQL table to store the information for the traps / mibs so run this command and post the output so we can verify the table settings.

Code: Select all

echo 'desc xi_cmp_trapdata;' |mysql -t -u root -pnagiosxi nagiosxi
What the GUI does it to run a query and count the number of entries for the MIB file name. Run this and post the output so we can see what is in that field.

Code: Select all

echo 'select trapdata_parent_mib_name from xi_cmp_trapdata;' |mysql -t -u root -pnagiosxi nagiosxi