Nagios XI - Trap definitons limit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Nagios XI - Trap definitons limit

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Nagios XI - Trap definitons limit

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Nagios XI - Trap definitons limit

Post 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.
You do not have the required permissions to view the files attached to this post.
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Nagios XI - Trap definitons limit

Post by kandatih »

Have to change the file extension because forum didnt accept the mib extension.
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Nagios XI - Trap definitons limit

Post by kandatih »

snmpttconvert.png
More info - running snmpttconvertmib worked fine as attached.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - Trap definitons limit

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Nagios XI - Trap definitons limit

Post by kandatih »

Yep already tried that. loaded the dependency first, but still no traps definitions.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - Trap definitons limit

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
kandatih
Posts: 55
Joined: Thu Mar 28, 2019 7:51 pm

Re: Nagios XI - Trap definitons limit

Post 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?
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - Trap definitons limit

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked