nxumdon wrote:
> Hi
> So I've recently poplulated zenoss with a bunch of our SNMP MIBS and when I 
> now try to add a new host, I get a screen full of the following;
> 
> Attempt to define a root oid (iso): At line 9 in 
> /usr/local/zenoss/common/share/mibs/site/SNMPv2-SMI.mib Bad parse of OBJECT 
> IDENTIFIER: At line 9 in 
> /usr/local/zenoss/common/share/mibs/site/SNMPv2-SMI.mib Did not find 'mib-2' 
> in module SNMPv2-SMI 
> (/usr/local/zenoss/common/share/mibs/site/INET-ADDRESS-MIB.mib) Unlinked OID 
> in INET-ADDRESS-MIB: inetAddressMIB ::= { mib-2 76 } Undefined identifier: 
> mib-2 near line 21 of 
> /usr/local/zenoss/common/share/mibs/site/INET-ADDRESS-MIB.mib Did not find 
> 'snmpModules' in module SNMPv2-SMI 
> (/usr/local/zenoss/common/share/mibs/site/SNMPv2-MIB.mib) 
> 
> And then those errors finish and this follows;
> 
> Cannot adopt OID in SNMP-VIEW-BASED-ACM-MIB: vacmBasicGroup ::= { 
> vacmMIBGroups 1 }
> Time  Level   Module  Message
> 2008-11-07 12:03:46   INFO    zen.Utils       Executing command: 
> /usr/local/zenoss/zenoss/bin/zendisc run --now -d 10.1.1.1 --monitor 
> localhost --deviceclass /Network/Switch --snmp-port 161 --snmp-community 
> wucfcsm --weblog
> 2008-11-07 12:03:48   WARNING         zen.ZenDisc     Reconnected to ZenHub
> 2008-11-07 12:03:48   INFO    zen.ZenDisc     connected to ZenHub
> 2008-11-07 12:03:48   INFO    zen.ZenDisc     Looking for 10.1.1.1
> 2008-11-07 12:03:48   ERROR   netsnmp Attempt to define a root oid (iso): At 
> line 9 in /usr/local/zenoss/common/share/mibs/site/SNMPv2-SMI.mib
> 2008-11-07 12:03:48   ERROR   netsnmp Bad parse of OBJECT IDENTIFIER: At line 
> 9 in /usr/local/zenoss/common/share/mibs/site/SNMPv2-SMI.mib
> 2008-11-07 12:03:48   WARNING         netsnmp Did not find 'mib-2' in module 
> SNMPv2-SMI (/usr/local/zenoss/common/share/mibs/site/INET-ADDRESS-MIB.mib)
> 2008-11-07 12:03:48   WARNING         netsnmp Unlinked OID in 
> INET-ADDRESS-MIB: inetAddressMIB ::= { mib-2 76 }
> 2008-11-07 12:03:48   WARNING         netsnmp Undefined identifier: mib-2 
> near line 21 of /usr/local/zenoss/common/share/mibs/site/INET-ADDRESS-MIB.mib
> 2008-11-07 12:03:48   WARNING         netsnmp Did not find 'snmpModules' in 
> module SNMPv2-SMI (/usr/local/zenoss/common/share/mibs/site/SNMPv2-MIB.mib)
> 
> Eventually the host does get added and seems to be ok, just wondering if 
> anyone can help clear these errors up?  Thanks
> 
> Jason


Hello Jason,

there are some mistakes in how you install MIBs.

1. set the following environment-variable "SMIPATH" in your profile
.bashrc or .profile in $ZENHOME 


Code:
export 
SMIPATH=/usr/local/zenoss/common/share/mibs:/usr/local/zenoss/common/share/mibs/iana:/usr/local/zenoss/common/share/mibs/ietf:/usr/local/zenoss/common/share/mibs/irtf:/usr/local/zenoss/common/share/mibs/site:/usr/local/zenoss/common/share/mibs/tubs



2. Delete all MIBs you have installed within the Line in your "zenmib 
-run"-command, for example SNMPv2-SMI.mib, INET-ADDRESS-MIB.mib, 
SNMP-VIEW-BASED-ACM-MIB etc. (maybe delete all installed MIBs and try it new)

3. Compare the Names of the dependencies-MIBs in the Source-Code of your 
device-special-MIB wich you at least will install (example: 
SNMP-VIEW-BASED-ACM-MIB) with the pre-installed "Standard-MIBs" in 
/usr/local/zenoss/common/share/mibs/iana, /usr/.../mibs/ietf, 
/usr/.../mibs/irtf, /usr/.../mibs/tubs

These Mibs in these paths are included automatically. For example the file 
SNMPv2-SMI.mib is with the right Name SNMPv2-SMI (without ending .mib) in the 
path "/usr/local/zenoss/common/share/mibs/ietf" so you doesn't need to include 
this MIB in your "zenmib -run"-Line.

!Look there and compare first!

Copy only the MIBs wich are special to your device in the path: 
"/usr/local/zenoss/common/share/mibs/site" 

4. Make the symbolic Link "share" and "libexec" from $ZENHOME to 
"/usr/local/zenoss/common/share"
and
"/usr/local/zenoss/common/libexec"
with group="zenoss" and owner="zenoss" 

Retry to install 

Hope this will help you

Dietmar[/code]




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=27427#27427

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to