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.
NagiosXI + Error Adding MIB File
Re: NagiosXI + Error Adding MIB File
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
MIB file attached (file extension renamed to .txt)
You do not have the required permissions to view the files attached to this post.
Re: NagiosXI + Error Adding MIB File
There indeed is an issue with the mib. The section in question is:
Specifically, line 116:
I wonder if changing line 116 to:
would solve the issue?
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}
Code: Select all
clear/info(0),Code: Select all
info(0),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.
"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
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.
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
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
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
Thanks so much! - that's done the trick.