NagiosXI + Error Adding MIB File

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tusharpatel
Posts: 5
Joined: Wed Apr 10, 2013 11:38 am

NagiosXI + Error Adding MIB File

Post by tusharpatel »

When attempting to add the attached MIB file (using the addmib command) I'm receiving the error below:

Expected "(" (/): At line 116 in ./WFS_160_SNMP_MIB.mib
Should be ACCESS (info): At line 116 in ./WFS_160_SNMP_MIB.mib
Bad parse of OBJECT-TYPE: At line 116 in ./WFS_160_SNMP_MIB.mib
Unknown object identifier: HARMONIC-WFS-MIB::wfsAlarmTrap


The vendo who provides the MIB is stating there is no error, I'd like some assistance to determine what correction needs to be made for this to work.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NagiosXI + Error Adding MIB File

Post by tmcdonald »

It looks like you have not attached a MIB.
Former Nagios employee
tusharpatel
Posts: 5
Joined: Wed Apr 10, 2013 11:38 am

Re: NagiosXI + Error Adding MIB File

Post by tusharpatel »

MIB file attached (file extension renamed to .txt)
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosXI + Error Adding MIB File

Post by abrist »

There indeed is an issue with the mib. The section in question is:

Code: Select all

wfsAlarmSeverity OBJECT-TYPE
        SYNTAX	INTEGER {
        clear/info(0),
        indeterminate(1),
        warning(2),
        minor(3),
        major(4),
        critical(5)        
        }
        MAX-ACCESS  read-only
        STATUS	current
        DESCRIPTION
            "The level of severity of the alarm."
        ::= { wfsAlarmLogEntry 5}
Specifically, line 116:

Code: Select all

clear/info(0),
I wonder if changing line 116 to:

Code: Select all

info(0),
would solve the issue?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tusharpatel
Posts: 5
Joined: Wed Apr 10, 2013 11:38 am

Re: NagiosXI + Error Adding MIB File

Post by tusharpatel »

I've removed the offended line as recommended, but am now seeing the below error:

Bad ACCESS type (write): At line 196 in ./WFS_160_SNMP_MIB.mib
Bad parse of OBJECT-TYPE: At line 196 in ./WFS_160_SNMP_MIB.mib
Unknown object identifier: HARMONIC-WFS-MIB::wfsAlarmTrap


I will go back to the vendor, but can you advise further what changes can be made.
tusharpatel
Posts: 5
Joined: Wed Apr 10, 2013 11:38 am

Re: NagiosXI + Error Adding MIB File

Post by tusharpatel »

I'm able to load the MIB file into a SNMP browser without any errors - so unsure why Nagios is generating the errors.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NagiosXI + Error Adding MIB File

Post by sreinhardt »

The current issue is that at line 196, the access values of write, is not valid. The only valid access values are "read-only", "read-write", "write-only", and "not-accessible". So I don't know if this should be read-write or write-only, my guess would be the latter. Once that is done, your mib should be able to be imported correctly.
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.
tusharpatel
Posts: 5
Joined: Wed Apr 10, 2013 11:38 am

Re: NagiosXI + Error Adding MIB File

Post by tusharpatel »

Thanks so much! - that's done the trick.
Locked