Page 1 of 1

NagiosXI + Error Adding MIB File

Posted: Tue Jul 01, 2014 11:05 am
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.

Re: NagiosXI + Error Adding MIB File

Posted: Tue Jul 01, 2014 11:52 am
by tmcdonald
It looks like you have not attached a MIB.

Re: NagiosXI + Error Adding MIB File

Posted: Tue Jul 01, 2014 3:50 pm
by tusharpatel
MIB file attached (file extension renamed to .txt)

Re: NagiosXI + Error Adding MIB File

Posted: Wed Jul 02, 2014 2:21 pm
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?

Re: NagiosXI + Error Adding MIB File

Posted: Wed Jul 02, 2014 2:41 pm
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.

Re: NagiosXI + Error Adding MIB File

Posted: Wed Jul 02, 2014 7:36 pm
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.

Re: NagiosXI + Error Adding MIB File

Posted: Thu Jul 03, 2014 10:02 am
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.

Re: NagiosXI + Error Adding MIB File

Posted: Mon Jul 07, 2014 6:53 am
by tusharpatel
Thanks so much! - that's done the trick.