APC UPS for Home and Office Forum
Support forum to share knowledge about installation and configuration of APC offers including Home Office UPS, Surge Protectors, UTS, software and services.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
Dear all,
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
SYNTAX Integer32
Any suggestions are welcomed.
Thank You
NagPer
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
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
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
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
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
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
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
Thank you for the quick reply!
Indeed your fix solved the problem.
Thanks again!
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
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.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
Hello Angela,
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.
http://download.intermapper.com/thirdparty/libsmi-0.4.8/mibs/ietf/RFC-1215.txt
Regards
NagPer
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-06-30 12:08 AM . Last Modified: 2024-03-20 12:23 AM
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't work if OpenNMS is installed on Windows - The OpenNMS Issue Trac... - 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.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.