Changed $ZENHOME/ 
Products/DataCollector/plugins/zenoss/snmp/HRSWInstalledMap.py to the
following

    def process(self, device, results, log):
        """collect snmp information from this device"""
        log.info('processing host resources software for device %s' %
device.id)
        getdata, tabledata = results
        swtable = tabledata.get("swTableOid")
        rm = self.relMap()
        for sw in swtable.values():
            om = self.objectMap(sw)
            if not om.id: continue
            om.id = self.prepId(om.setProductKey)
            if hasattr(om, 'setInstallDate'):
                om.setInstallDate = self.asdate(om.setInstallDate)
            rm.append(om)
        return rm

Still getting.


Traceback (most recent call last): File
"/usr/local/zenoss/Products/DataCollector/ApplyDataMap.py", line 54, in
processClient changed = self._applyDataMap(device, datamap) File
"/usr/local/zenoss/Products/DataCollector/ApplyDataMap.py", line 95, in
_applyDataMap changed = self._updateRelationship(tobj, datamap) File
"/usr/local/zenoss/Products/DataCollector/ApplyDataMap.py", line 129, in
_updateRelationship self._createRelObject(device, objmap, rname) File
"/usr/local/zenoss/Products/DataCollector/ApplyDataMap.py", line 199, in
_createRelObject rel._setObject(remoteObj.id, remoteObj) File
"/usr/local/zenoss/Products/ZenRelations/ToManyContRelationship.py",
line 89, in _setObject self.addRelation(object) File
"/usr/local/zenoss/Products/ZenRelations/ToManyContRelationship.py",
line 81, in addRelation ToManyRelationshipBase.addRelation(self, obj)
File "/usr/local/zenoss/Products/ZenRelations/RelationshipBase.py", line
72, in addRelation self._add(obj) File
"/usr/local/zenoss/Products/ZenRelations/ToManyContRelationship.py",
line 112, in _add v=self._checkId(id) File
"usr/local/zenoss/lib/python/OFS/ObjectManager.py", line 63, in
checkValidId BadRequest: ('Empty or invalid id specified', '')




Cory Schmitt


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik A. Dahl
Sent: Thursday, September 28, 2006 7:29 AM
To: General discussion of using zenoss system
Subject: Re: [zenoss-users] Re: Zenmodel Error

Brandon,

this was all the info I needed I see the problem

HOST-RESOURCES-MIB::hrSWInstalledName.41 = ""

Is setting the id to "" which doesn't work.  I have this fixed in the  
trunk you can patch yours by adding the following line to $ZENHOME/ 
Products/DataCollector/plugins/zenoss/snmp/HRSWInstalledMap.py line 45

if not om.id: continue

make sure you indent with spaces to match the line above.

-EAD

On Sep 27, 2006, at 5:14 PM, Brandon Parker wrote:

> Correction, no joy.  SNMP Community other than public against an IP?
>
> On 9/27/06, Brandon Parker <[EMAIL PROTECTED]> wrote: Heh,  
> and like that, I find the help file...  sorry.  Will post the  
> zenmodeler bit in a sec...
>
>
> On 9/27/06, Brandon Parker <[EMAIL PROTECTED] > wrote:
> Eric,
>
> Thanks. One question re: zenmodeler, how do I specific an SNMP  
> community against an IP?  I've tried syntax from snmpwalk to no avail.
>
> snmpwalk returns the following:
>
> [EMAIL PROTECTED] ~]$ snmpwalk -v1 -c XXXX X.X.X.X . 
> 1.3.6.1.2.1.25.6.3.1.2
> HOST-RESOURCES-MIB::hrSWInstalledName.1 = STRING: "HP ProLiant  
> Legacy Port Configuration Component"
> HOST-RESOURCES-MIB:: hrSWInstalledName.2 = STRING: "DC Directory"
> HOST-RESOURCES-MIB::hrSWInstalledName.3 = STRING: "HP Array  
> Configuration Utility"
> HOST-RESOURCES-MIB::hrSWInstalledName.4 = STRING: "HP Insight  
> Management Agents"
> HOST-RESOURCES-MIB::hrSWInstalledName.5 = STRING: "Internet  
> Explorer Q867801"
> HOST-RESOURCES-MIB::hrSWInstalledName.6 = STRING: "UrlScan 2.5"
> HOST-RESOURCES-MIB::hrSWInstalledName.7 = STRING: "Windows 2000  
> Hotfix - KB329115"
> HOST-RESOURCES-MIB::hrSWInstalledName.8 = STRING: "Windows 2000  
> Hotfix - KB820888"
> HOST-RESOURCES-MIB::hrSWInstalledName.9 = STRING: "Windows 2000  
> Hotfix - KB822831"
> HOST-RESOURCES-MIB::hrSWInstalledName.10 = STRING: "Windows 2000  
> Hotfix - KB823182"
> HOST-RESOURCES-MIB::hrSWInstalledName.11 = STRING: "Windows 2000  
> Hotfix - KB823559"
> HOST-RESOURCES-MIB::hrSWInstalledName.12 = STRING: "Windows 2000  
> Hotfix - KB824105"
> HOST-RESOURCES-MIB::hrSWInstalledName.13 = STRING: "Windows 2000  
> Hotfix - KB825119"
> HOST-RESOURCES-MIB::hrSWInstalledName.14 = STRING: "Windows 2000  
> Hotfix - KB826232"
> HOST-RESOURCES-MIB::hrSWInstalledName.15 = STRING: "Windows 2000  
> Hotfix - KB828035"
> HOST-RESOURCES-MIB::hrSWInstalledName.16 = STRING: "Windows 2000  
> Hotfix - KB828741"
> HOST-RESOURCES-MIB::hrSWInstalledName.17 = STRING: "Windows 2000  
> Hotfix - KB828749"
> HOST-RESOURCES-MIB::hrSWInstalledName.18 = STRING: "Windows 2000  
> Hotfix - KB829246"
> HOST-RESOURCES-MIB::hrSWInstalledName.19 = STRING: "Windows 2000  
> Hotfix - KB831576"
> HOST-RESOURCES-MIB::hrSWInstalledName.20 = STRING: "Windows 2000  
> Hotfix - KB831877"
> HOST-RESOURCES-MIB::hrSWInstalledName.21 = STRING: "Windows 2000  
> Hotfix - KB835732"
> HOST-RESOURCES-MIB::hrSWInstalledName.22 = STRING: "Windows 2000  
> Hotfix - KB837001"
> HOST-RESOURCES-MIB::hrSWInstalledName.23 = STRING: "DirectX 9  
> Hotfix - KB839643"
> HOST-RESOURCES-MIB::hrSWInstalledName.24 = STRING: "Windows 2000  
> Hotfix - KB839645"
> HOST-RESOURCES-MIB::hrSWInstalledName.25 = STRING: "Windows 2000  
> Hotfix - KB840315"
> HOST-RESOURCES-MIB::hrSWInstalledName.26 = STRING: "Windows 2000  
> Hotfix - KB841873"
> HOST-RESOURCES-MIB::hrSWInstalledName.27 = STRING: "Windows 2000  
> Hotfix - KB842526"
> HOST-RESOURCES-MIB::hrSWInstalledName.28 = STRING: "Microsoft Data  
> Access Components KB870669"
> HOST-RESOURCES-MIB::hrSWInstalledName.29 = STRING: "Microsoft SQL  
> Server 7.0"
> HOST-RESOURCES-MIB:: hrSWInstalledName.30 = STRING: "Multilevel  
> Admin 1.1(2)"
> HOST-RESOURCES-MIB::hrSWInstalledName.31 = STRING: "Outlook Express  
> Q823353"
> HOST-RESOURCES-MIB::hrSWInstalledName.32 = STRING: "Windows 2000  
> Hotfix (Special Release) [See Q282784 for more info"
> HOST-RESOURCES-MIB::hrSWInstalledName.33 = STRING: "Windows Media  
> Player Hotfix [See Q828026 for more information]"
> HOST-RESOURCES-MIB::hrSWInstalledName.34 = STRING: "Cisco  
> CallManager - 3.2(3)es28 Uninstall"
> HOST-RESOURCES-MIB::hrSWInstalledName.35 = STRING: "Diagnostics for  
> Windows"
> HOST-RESOURCES-MIB::hrSWInstalledName.36 = STRING: "Cisco IP  
> Telephony Applications Backup 3.5"
> HOST-RESOURCES-MIB:: hrSWInstalledName.37 = STRING: "Hewlett- 
> Packard Survey Utility"
> HOST-RESOURCES-MIB::hrSWInstalledName.38 = STRING: "WebFldrs"
> HOST-RESOURCES-MIB::hrSWInstalledName.39 = STRING: "Java 2 Runtime  
> Environment, SE v1.4.2_04"
> HOST-RESOURCES-MIB::hrSWInstalledName.40 = STRING: "Microsoft XML  
> Parser"
> HOST-RESOURCES-MIB::hrSWInstalledName.41 = ""
> HOST-RESOURCES-MIB::hrSWInstalledName.42 = STRING: "McAfee  
> NetShield 4.5.0"
> HOST-RESOURCES-MIB::hrSWInstalledName.43 = STRING: "Cisco Security  
> Agent"
> [EMAIL PROTECTED] ~]$
>
>
>
> On 9/27/06, Erik A. Dahl <[EMAIL PROTECTED]> wrote: Brandon,
>
> Unfortunately the trace doesn't tell us much.  Can you run though the
> modeling plugins one at a time so that we can isolate which one is
> giving us the problem?  Here is how to run a single plugin against
> one box.
>
> zenmodeler run -d yourbox --collect PluginName
>
> Try these Plugins:
> HRSWInstalledMap
> HRFileSystemMap
> InterfaceMap
> IpServiceMap
> RouteMap
>
> When you see one give this error post which one it was.  I'm guessing
> it will be HRSWInstalledMap but I'm not sure if it is can you run the
> following against the box and give us the output?
>
> snmpwalk -v1 -c public yourbox .1.3.6.1.2.1.25.6.3.1.2
>
> -EAD
>
> On Sep 27, 2006, at 2:51 PM, Brandon Parker wrote:
>
> > Eric,
> >
> > Any chance I could get you to look at the log's for this one?
> >
> >
> > On 9/24/06, Brandon Parker <[EMAIL PROTECTED]> wrote: Still
> > no luck on any of the CCM's installed, regardless of hardware.
> >
> >
> > On 9/20/06, Brandon Parker <[EMAIL PROTECTED] > wrote:
> > Hello,
> >
> > Got an error while loading a Win2k Cisco Call Manager on an HP DL380
> >
> > Traceback (most recent call last): File "/usr/local/zenoss/Products/
> > DataCollector/ApplyDataMap.py", line 54, in processClient changed =
> > self._applyDataMap(device, datamap) File "/usr/local/zenoss/
> > Products/DataCollector/ApplyDataMap.py", line 95, in _applyDataMap
> > changed = self._updateRelationship(tobj, datamap) File "/usr/local/
> > zenoss/Products/DataCollector/ApplyDataMap.py", line 129, in
> > _updateRelationship self._createRelObject(device, objmap, rname)
> > File "/usr/local/zenoss/Products/DataCollector/ApplyDataMap.py",
> > line 199, in _createRelObject rel._setObject( remoteObj.id ,
> > remoteObj) File "/usr/local/zenoss/Products/ZenRelations/
> > ToManyContRelationship.py", line 89, in _setObject self.addRelation
> > (object) File "/usr/local/zenoss/Products/ZenRelations/
> > ToManyContRelationship.py", line 81, in addRelation
> > ToManyRelationshipBase.addRelation(self, obj) File "/usr/local/
> > zenoss/Products/ZenRelations/RelationshipBase.py", line 72, in
> > addRelation self._add(obj) File "/usr/local/zenoss/Products/
> > ZenRelations/ToManyContRelationship.py", line 112, in _add
> > v=self._checkId(id) File "usr/local/zenoss/lib/python/OFS/
> > ObjectManager.py", line 63, in checkValidId BadRequest: ('Empty or
> > invalid id specified', '')
> >
> > Thoughts?
> >
> > Brandon
> >
> >
> > _______________________________________________
> > zenoss-users mailing list
> > [email protected]
> > http://lists.zenoss.org/mailman/listinfo/zenoss-users
>
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users
>
>
>
> _______________________________________________
> zenoss-users mailing list
> [email protected]
> http://lists.zenoss.org/mailman/listinfo/zenoss-users

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


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

Reply via email to