problem in traps

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

problem in traps

Post by hanya.radwan »

hi,

I add new mibs file to nagios and the following error appear as attached.
how can install snmp4J, and it is required to deploy in Nagios?

thanks,
You do not have the required permissions to view the files attached to this post.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: problem in traps

Post by Box293 »

Can you please post the mibs you are trying to upload, or a link to where you downloaded the mibs from.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in traps

Post by hanya.radwan »

please find the attached MIBs which I added to Nagios.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: problem in traps

Post by tmcdonald »

Did you try to add these MIBs in the XI web interface or on the command line with addmib? If in the web interface, did you check the "Process trap" box?
Former Nagios employee
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in traps

Post by hanya.radwan »

I add them through interface and from server use addmin
when I uploaded them from interface and select (process trap), it gives me an error.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: problem in traps

Post by sreinhardt »

The errors you are getting, are due to missing mib dependencies. One example, is the following error:

Code: Select all

External command error: Cannot find module (SNMP4J-AGENT-REG): At line 5 in /usr/share/snmp/mibs/SNMP4J-CONFIG-MIB.txt
Did not find 'snmp4jAgentModules' in module #-1 (/usr/share/snmp/mibs/SNMP4J-CONFIG-MIB.txt)
Unlinked OID in SNMP4J-CONFIG-MIB: snmp4jCfgMIB ::= { snmp4jAgentModules 2 }
Undefined identifier: snmp4jAgentModules near line 20 of /usr/share/snmp/mibs/SNMP4J-CONFIG-MIB.txt
Looking at the SNMP4J-CONFIG-MIB.txt mib, we can see that it has an import for:

Code: Select all

	snmp4jAgentModules
		FROM SNMP4J-AGENT-REG
This mib SNMP4J-AGENT-REG is not included in the rar of mibs you provided. You will need to make sure that all of the IMPORTS sections have corresponding mibs and oids. The critical information you need to look for is:

Code: Select all

snmp4jAgentModules - OID shortname that needs to be defined within the mib file.
FROM SNMP4J-AGENT-REG - Mib file that snmptt/snmpd/snmpwalk/snmpget will be looking for within the /usr/share/snmp/mibs/ directory.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked