I am having a problem when trying to compile the newest powernet412.mib file with opennms.
The mib compiler shows the following error output:
Mon Sep 29 10:22:10 CEST 2014 [INFO] Parsing MIB file /usr/share/opennms/share/mibs/pending/powernet412.mib
Mon Sep 29 10:23:59 CEST 2014 [ERROR] Problem found when compiling the MIB:
ERROR: Cannot find symbol Integer32, Source: powernet412.mib, Row: 6761, Col: 11
Any suggestions are welcomed.
Did any previous versions of the APC MIB work?
We had a question on this the other day and I am not sure why only certain people experience it but it seems like your NMS is not able to define Integer32 automatically. I did some Googling and found users with other NMSs and other MIBs having similar issues.
Here is what I would try. Modify the MIB in a text editor like Notepad or similar. At the top of the file, find where it says:
IMPORTS enterprises, IpAddress, Gauge, TimeTicks FROM RFC1155-SMI DisplayString FROM RFC1213-MIB OBJECT-TYPE FROM RFC-1212 TRAP-TYPE FROM RFC-1215;-- IMPORTS End
enterprises, IpAddress, Gauge, TimeTicks FROM RFC1155-SMI
DisplayString FROM RFC1213-MIB
OBJECT-TYPE FROM RFC-1212
TRAP-TYPE FROM RFC-1215;
-- IMPORTS End
Then, modify it like so below, save it, and see if OpenNMS compiles it.
IMPORTS enterprises, IpAddress, Gauge, TimeTicks FROM RFC1155-SMI DisplayString FROM RFC1213-MIB OBJECT-TYPE FROM RFC-1212 Unsigned32, Integer32 FROM SNMPv2-SMI TRAP-TYPE FROM RFC-1215;-- IMPORTS End
Unsigned32, Integer32 FROM SNMPv2-SMI
Thank you for the quick reply!
Indeed your fix solved the problem.
Hello NagPer - I am hoping you don't mind an additional question. Someone else reported this issue to us (but I don't know what NMS they were using yet) and the fix I provided to you worked. I wanted to see where the issue is and why this is all of a sudden a problem. I installed OpenNMS on Windows and I noticed in the /mibs folders it came with, I had:
Can you let me know what you had loaded in your /mibs prior to adding powernet412.mib? I ask because I wanted to see if I had the same problem as you and I did not. I uploaded the .mib via the admin web interface:
Thu Oct 02 12:23:24 EDT 2014 [INFO] Reading MIBs from C:\Program Files (x86)\OpenNMS\share\mibs
Thu Oct 02 12:23:43 EDT 2014 [INFO] Uploading powernet412.mib
Thu Oct 02 12:23:43 EDT 2014 [INFO] File powernet412.mib successfuly uploaded
EDIT - I need to look at this more. I just realized uploading did not mean compiling.
Seeing you last response I am sure you have already answered your own question. Indeed you need to compile the MIB as well to get the error message.
Furthermore you will need to upload and compile the RFC-1215 MIB as well.
Thank you for the help! I found a bug logged with OpenNMS that the compiler does not work on Windows and of course I installed all of this on Windows.. [NMS-6413] The MIB Compiler doesn&#39;t work if OpenNMS is installed on Windows - The OpenNMS Issue Tracker - seems like a major bug!
Anyway, I will work with a little bit more and see if I can get anywhere. Nobody has ever complained about this specific issue that we fixed with adding that line so I am just curious what is causing it all of a sudden. I appreciate your feedback.
Choose a location