Issue with SNMP Trap Interface

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Issue with SNMP Trap Interface

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

Re: Issue with SNMP Trap Interface

Post by tgriep »

The error suggests that the MIB file is corrupted or formatted incorrectly, can you upload it here so we can view it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue with SNMP Trap Interface

Post by bsivavani »

Please find OCUM mib file.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue with SNMP Trap Interface

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue with SNMP Trap Interface

Post by bsivavani »

I have already installed NETAPP-MIB on Nagios server.

Please find attached NETAPP file which I used.
You do not have the required permissions to view the files attached to this post.
scomdco
Posts: 45
Joined: Fri Oct 04, 2019 3:18 pm

Re: Issue with SNMP Trap Interface

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

Re: Issue with SNMP Trap Interface

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue with SNMP Trap Interface

Post 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

Code: Select all

obsolete_um(4)
to

Code: Select all

obsolete(4)
Save the change and re-import the file to the Nagios server.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Issue with SNMP Trap Interface

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

Re: Issue with SNMP Trap Interface

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