![]() |
![]() |
Subject: | Cannot import SNMPv2-TC |
Author: | [Not Specified] |
Posted: | 2014-08-08 17:12 |
I have been trying to import a number of SNMP MIBs but I am having trouble importing SNMPv2-TC (log entries below).
I am doing the import as user 'zenoss'.
I have the SMIPATH and ZENHOME environment variables in correctly.
I have tried to import the SNMPv2* MIBs in the IETF directory.
I copied the SNMPv2* MIBs to the site directory to try to help with finding dependencies.
I tried using the following commands to import:
zenmib run -v 10 SNMPv2-TC
zenmib run -v 10 SNMPv2-SMI SNMPv2-TC
All other MIBS have (mostly) imported ok except for the ones that are dependent on SNMPv2-TC as well as that MIB itself.
What else is there to try
2014-08-08 15:01:53,673 DEBUG zen.ZenMib: Running smidump --keep-going --format python --preload /opt/zenoss/share/mibs/site/rfc2578.mib /opt/zenoss/share/mibs/site/SNMPv2-TC
2014-08-08 15:01:53,687 ERROR zen.ZenMib: /opt/zenoss/share/mibs/site/SNMPv2-TC:4: identifier `TimeTicks' cannot be imported from module `SNMPv2-SMI'
/opt/zenoss/share/mibs/site/SNMPv2-TC:55: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:89: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:97: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:107: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:113: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:143: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:167: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:175: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:187: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:672: invalid status `current' in SMIv1 MIB
/opt/zenoss/share/mibs/site/SNMPv2-TC:690: unknown type `TimeTicks'
/opt/zenoss/share/mibs/site/SNMPv2-TC:690: internal error!
Subject: | Installed Clean 4.2.5 Version |
Author: | [Not Specified] |
Posted: | 2014-08-11 10:26 |
To eliminate the possibility of some sort of conflict as well as any issues 4.2.4 may have had, I installed 4.2.5 on a clean VM. I get much the same result though:
As user zenoss in /opt/zenoss/share/mibs/ietf, with SMIPATH set correctly, I run:
[root@nms ietf]# more /etc/profile.d/zenoss.sh
export SMIPATH=/opt/zenoss/share/mibs:/opt/zenoss/share/mibs/iana:/opt/zenoss/share/mibs/ietf
:/opt/zenoss/share/mibs/irtf:/opt/zenoss/share/mibs/site:/opt/zenoss/share/mibs/tubs
[root@nms ietf]# su zenoss
[zenoss@nms ietf]$ zenmib run -v 10 SNMPv2-TC
2014-08-11 07:56:01,184 DEBUG zen.MySqlZodbFactory: cache-servers is set and poll-interval is not specified so poll-interval is set to 60 seconds.
2014-08-11 07:56:01,383 DEBUG zen.PropertyManager: Property zSnmpDiscoveryPorts is deprecated. It should be removed from the system.
2014-08-11 07:56:01,386 DEBUG zen.ZenMib: Will attempt to load /opt/zenoss/share/mibs/ietf/SNMPv2-TC
2014-08-11 07:56:01,386 DEBUG zen.ZenMib: Determining file type of /opt/zenoss/share/mibs/ietf/SNMPv2-TC
2014-08-11 07:56:01,390 DEBUG zen.ZenMib: Will attempt to load the following files: ['/opt/zenoss/share/mibs/ietf/SNMPv2-TC']
2014-08-11 07:56:01,391 DEBUG zen.ZenMib: Enumerating files in /opt/zenoss/share/mibs/ietf
2014-08-11 07:56:01,396 DEBUG zen.ZenMib: Enumerating files in /opt/zenoss/share/mibs/iana
2014-08-11 07:56:01,397 DEBUG zen.ZenMib: Enumerating files in /opt/zenoss/share/mibs/irtf
2014-08-11 07:56:01,398 DEBUG zen.ZenMib: Enumerating files in /opt/zenoss/share/mibs/tubs
2014-08-11 07:56:01,398 DEBUG zen.ZenMib: Enumerating files in /opt/zenoss/share/mibs/site
2014-08-11 07:56:01,402 DEBUG zen.ZenMib: Collecting MIB meta-data and creating depedency map.
....
2014-08-11 07:56:13,100 WARNING zen.ZenMib: Unable to parse information from /opt/zenoss/share/mibs/irtf/IRTF-NMRG-SMING -- skipping
2014-08-11 07:56:13,100 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/ietf/HC-ALARM-MIB
2014-08-11 07:56:13,112 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/ietf/RFC1158-MIB
2014-08-11 07:56:13,126 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/irtf/IRTF-NMRG-SMING-EXTENSIONS
2014-08-11 07:56:13,127 WARNING zen.ZenMib: Unable to parse information from /opt/zenoss/share/mibs/irtf/IRTF-NMRG-SMING-EXTENSIONS -- skipping
2014-08-11 07:56:13,127 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/ietf/MTA-MIB
2014-08-11 07:56:13,149 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/ietf/UDPLITE-MIB
2014-08-11 07:56:13,159 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/site/sflow.mib
2014-08-11 07:56:13,169 DEBUG zen.ZenMib: Processing /opt/zenoss/share/mibs/site/rfc3019.mib
2014-08-11 07:56:13,181 INFO zen.ZenMib: Found 1 MIBs to import.
2014-08-11 07:56:13,181 DEBUG zen.ZenMib: Attempting to load /opt/zenoss/share/mibs/ietf/SNMPv2-TC
2014-08-11 07:56:13,181 DEBUG zen.ZenMib: Running smidump --keep-going --format python --preload /opt/zenoss/share/mibs/site/rfc2578.mib --preload /opt/zenoss/share/mibs/site/SNMPv2-TC /opt/zenoss/share/mibs/ietf/SNMPv2-TC
2014-08-11 07:56:13,196 INFO zen.ZenMib: Loaded 0 MIB file(s)
Subject: | So I tried to import the ZENOSS and SNMPv2-SMI MIBs |
Author: | [Not Specified] |
Posted: | 2014-08-11 15:18 |
I tried to import the ZENOSS MIB and the SNMPv2-SMI MIBs and I got some interesting output.
Apart from the formatting error in the ZENOSS MIB, both of the MIBs do load and they are both dependent on SNMPv2-TC, which zenmib can apparently read and use correctly. So why won't SNMPv2-TC import Is it one particular piece of the MIB that is causing the problem while still having certain definitions available to other MIBs
2014-08-11 13:10:45,622 INFO zen.ZenMib: Found 2 MIBs to import.
2014-08-11 13:10:45,623 DEBUG zen.ZenMib: Attempting to load /opt/zenoss/share/mibs/site/SNMPv2-SMI
2014-08-11 13:10:45,623 DEBUG zen.ZenMib: Running smidump --keep-going --format python --preload /opt/zenoss/share/mibs/site/rfc2578.mib /opt/zenoss/share/mibs/site/SNMPv2-SMI
2014-08-11 13:10:45,781 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:45,842 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:46,053 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:46,177 INFO zen.ZenMib: Parsed 16 nodes and 0 notifications from SNMPv2-SMI
2014-08-11 13:10:46,178 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:46,180 INFO zen.ZenMib: Loaded MIB SNMPv2-SMI into the DMD
2014-08-11 13:10:46,180 DEBUG zen.ZenMib: Attempting to load /opt/zenoss/share/mibs/site/ZENOSS-MIB.txt
2014-08-11 13:10:46,180 DEBUG zen.ZenMib: Running smidump --keep-going --format python --preload /opt/zenoss/share/mibs/site/SNMPv2-TC --preload /opt/zenoss/share/mibs/site/SNMPv2-CONF --preload /opt/zenoss/share/mibs/site/rfc2578.mib /opt/zenoss/share/mibs/site/ZENOSS-MIB.txt
2014-08-11 13:10:46,203 DEBUG zen.ZenMib: Found warnings while trying to import MIB:
/opt/zenoss/share/mibs/site/ZENOSS-MIB.txt:49: syntax error, unexpected '{'
/opt/zenoss/share/mibs/site/ZENOSS-MIB.txt:65: syntax error, unexpected '{'
smidump: module `/opt/zenoss/share/mibs/site/ZENOSS-MIB.txt' contains errors, expect flawed output
2014-08-11 13:10:46,463 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:46,563 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:46,910 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:47,132 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:47,186 INFO zen.ZenMib: Parsed 40 nodes and 1 notifications from ZENOSS-MIB
2014-08-11 13:10:47,186 DEBUG zen.ZenMib: Committing a batch of objects
2014-08-11 13:10:47,188 INFO zen.ZenMib: Loaded MIB ZENOSS-MIB into the DMD
2014-08-11 13:10:47,188 INFO zen.ZenMib: Loaded 2 MIB file(s)
Subject: | One thing to note, SNMPv2-TC |
Author: | Jay Stanley |
Posted: | 2014-08-13 18:08 |
One thing to note, SNMPv2-TC is installed by default in my instance. Not sure about Core.
Looks like there is an error in the ZENOSS-MIB.txt on line 49 and 65.
/opt/zenoss/share/mibs/site/ZENOSS-MIB.txt:49: syntax error, unexpected '{'
/opt/zenoss/share/mibs/site/ZENOSS-MIB.txt:65: syntax error, unexpected '{'
smidump: module `/opt/zenoss/share/mibs/site/ZENOSS-MIB.txt' contains errors, expect flawed output
< |
Previous find out which graphs are broken |
Next Sample code to create an Event Mapping using Python |
> |