Page 1 of 1

problem in traps

Posted: Tue Sep 02, 2014 2:27 am
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,

Re: problem in traps

Posted: Tue Sep 02, 2014 2:35 pm
by Box293
Can you please post the mibs you are trying to upload, or a link to where you downloaded the mibs from.

Re: problem in traps

Posted: Wed Sep 03, 2014 2:21 am
by hanya.radwan
please find the attached MIBs which I added to Nagios.

Re: problem in traps

Posted: Wed Sep 03, 2014 3:33 pm
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?

Re: problem in traps

Posted: Thu Sep 04, 2014 3:53 am
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.

Re: problem in traps

Posted: Thu Sep 04, 2014 11:02 am
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.