Page 1 of 2
Issue with SNMP Trap Interface
Posted: Mon Oct 07, 2019 1:53 pm
by bsivavani
Hi,
I am trying to monitor Oncommand Unified Manager traps using SNMP, but getting below errors while adding OCUM-MIB mib file from Nagios server
Unknown object identifier: ONCOMMAND-MANAGER-MIB::arlNetraCaCheckFailed
Expected "(" (um): At line 237 in /tmp/OCUM-MIB.txt
Should be ACCESS ((): At line 237 in /tmp/OCUM-MIB.txt
Bad parse of OBJECT-TYPE: At line 237 in /tmp/OCUM-MIB.txt
Unknown object identifier: ONCOMMAND-MANAGER-MIB::gbNetraCaCheckFailed
Expected "(" (um): At line 237 in /tmp/OCUM-MIB.txt
Should be ACCESS ((): At line 237 in /tmp/OCUM-MIB.txt
Bad parse of OBJECT-TYPE: At line 237 in /tmp/OCUM-MIB.txt
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nvmfGracePeriodStart
Expected "(" (um): At line 237 in /tmp/OCUM-MIB.txt
Should be ACCESS ((): At line 237 in /tmp/OCUM-MIB.txt
Bad parse of OBJECT-TYPE: At line 237 in /tmp/OCUM-MIB.txt
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nvmfGracePeriodActive
Expected "(" (um): At line 237 in /tmp/OCUM-MIB.txt
Should be ACCESS ((): At line 237 in /tmp/OCUM-MIB.txt
Bad parse of OBJECT-TYPE: At line 237 in /tmp/OCUM-MIB.txt
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nvmfGracePeriodExpired
I am using Nagios XI 5.6.7. Kindly advice ?
Re: Issue with SNMP Trap Interface
Posted: Mon Oct 07, 2019 2:55 pm
by tgriep
The error suggests that the MIB file is corrupted or formatted incorrectly, can you upload it here so we can view it?
Re: Issue with SNMP Trap Interface
Posted: Tue Oct 08, 2019 9:41 am
by bsivavani
Please find OCUM mib file.
Re: Issue with SNMP Trap Interface
Posted: Tue Oct 08, 2019 1:26 pm
by tgriep
Thanks for the MIB file.
The OCUM-MIB file requires another MIB file to be loaded on the server which holds the definitions for the objects in the OCUM-MIB and that is causing the errors.
The name of the MIB is called NETAPP-MIB so make sure that MIB is installed on the Nagios server before installing the OCUM-MIB file.
Re: Issue with SNMP Trap Interface
Posted: Wed Oct 09, 2019 8:18 am
by bsivavani
I have already installed NETAPP-MIB on Nagios server.
Please find attached NETAPP file which I used.
Re: Issue with SNMP Trap Interface
Posted: Wed Oct 09, 2019 9:05 am
by scomdco
Could permissions of the NETAPP-MIB.txt file be at play in regard with it not being recognized by the OCUM_MIB.txt file?
Re: Issue with SNMP Trap Interface
Posted: Wed Oct 09, 2019 9:54 am
by tgriep
I think the file is corrupt and has some sort of non-printable character in it that I cannot remove so see if you can go to NETAPP and download a different copy of the files to see if a different copy works.
Re: Issue with SNMP Trap Interface
Posted: Wed Oct 09, 2019 10:04 am
by tgriep
Scratch that, I just figured it out.
Open the file on the server and edit this line (Line 237) and change it from
to
Save the change and re-import the file to the Nagios server.
Re: Issue with SNMP Trap Interface
Posted: Wed Oct 09, 2019 12:42 pm
by bsivavani
As suggested I have changed the Line 237 to obsolete(4), but still getting the same error.
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nbladeVscanNoScannerConn
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nbladeVscanNoRegdScanner
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nbladeVscanConnInactive
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nbladeVscanConnBackPressure
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nbladeVscanBadUserPrivAccess
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::nbladeNfsv4PoolEXhaust
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::cifsShadowCopyFailure
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs
Cannot find module (ONCOMMAND-MANAGER-MIB): At line 1 in .1.3.6.1.2.1
Unknown object identifier: ONCOMMAND-MANAGER-MIB::clusterFabricPoolNearlyFull
Bad operator (▒): At line 1 in /tmp/OCUM-MIB
Re: Issue with SNMP Trap Interface
Posted: Wed Oct 09, 2019 1:21 pm
by tgriep
Now your file has the non-printable characters.
You can try this to remove them.
Code: Select all
tr -cd '\11\12\15\40-\176' < OCUM_MIB.txt > OCUM_MIB-clean.txt
Then use the OCUM_MIB-clean.txt file when you import it in to Nagios and delete the other file.