Archived community.zenoss.org | full text search
Skip navigation
1 2 Previous Next 8694 Views 18 Replies Latest reply: Jun 26, 2012 5:55 AM by SERGEY BOCHAROV RSS
Tuxgood Rank: White Belt 11 posts since
Mar 11, 2011
Currently Being Moderated

Jan 26, 2012 8:24 AM

how to fix: " is invalid because it begins with an underscore"?

how to fix:

2012-01-26 17:02:31,716 INFO zen.ZenDisc: Connecting to localhost:8789

2012-01-26 17:02:31,729 INFO zen.ZenDisc: Connected to ZenHub

2012-01-26 17:02:31,981 INFO zen.ZenDisc: Looking for 192.168.0.216

2012-01-26 17:02:38,757 INFO zen.ZenDisc: Result: Discovered device 192.168.0.216.

2012-01-26 17:02:38,859 INFO zen.ZenDisc: WMI collector method for device 192.168.0.216

2012-01-26 17:02:38,859 INFO zen.ZenDisc: plugins: zenoss.wmi.WinServiceMap

2012-01-26 17:02:38,865 INFO zen.ZenDisc: No Python plugins found for 192.168.0.216

2012-01-26 17:02:38,876 INFO zen.ZenDisc: No command plugins found for 192.168.0.216

2012-01-26 17:02:38,881 INFO zen.ZenDisc: SNMP collection device 192.168.0.216

2012-01-26 17:02:38,881 INFO zen.ZenDisc: plugins: zenoss.snmp.HRSWInstalledMap, zenoss.snmp.NewDeviceMap, zenoss.snmp.DeviceMap, zenoss.snmp.InterfaceMap, zenoss.snmp.RouteMap, zenoss.snmp.IpServiceMap, zenoss.snmp.HRFileSystemMap, zenoss.snmp.HRSWRunMap, zenoss.snmp.CpuMap, zenoss.snmp.InformantHardDiskMap

2012-01-26 17:02:38,886 INFO zen.ZenDisc: No portscan plugins found for 192.168.0.216

2012-01-26 17:02:38,886 INFO zen.ZenDisc: Running 2 clients

2012-01-26 17:02:42,437 INFO zen.ZenDisc: Processing WinServices for device 192.168.0.216

2012-01-26 17:02:44,577 INFO zen.SnmpClient: snmp client finished collection for 192.168.0.216

2012-01-26 17:02:44,577 WARNING zen.SnmpClient: Device 192.168.0.216 timed out: are your SNMP settings correct?

2012-01-26 17:02:44,578 INFO zen.ZenDisc: processing zenoss.snmp.HRSWInstalledMap for device 192.168.0.216

2012-01-26 17:02:44,583 INFO zen.ZenDisc: Processing zenoss.snmp.NewDeviceMap for device 192.168.0.216

2012-01-26 17:02:44,584 INFO zen.ZenDisc: processing zenoss.snmp.DeviceMap for device 192.168.0.216

2012-01-26 17:02:44,585 INFO zen.ZenDisc: Modeler zenoss.snmp.InterfaceMap processing data for device 192.168.0.216

2012-01-26 17:02:44,591 INFO zen.ZenDisc: processing zenoss.snmp.RouteMap for device 192.168.0.216

2012-01-26 17:02:44,593 INFO zen.ZenDisc: processing zenoss.snmp.IpServiceMap for device 192.168.0.216

2012-01-26 17:02:44,594 INFO zen.ZenDisc: Modeler zenoss.snmp.HRFileSystemMap processing data for device 192.168.0.216

2012-01-26 17:02:44,595 INFO zen.ZenDisc: Skipping E:\. 0 total blocks.

2012-01-26 17:02:44,595 INFO zen.ZenDisc: Skipping F:\. 0 total blocks.

2012-01-26 17:02:44,595 INFO zen.ZenDisc: Skipping Physical Memory (ram) as it matches zFileSystemMapIgnoreTypes.

2012-01-26 17:02:44,596 INFO zen.ZenDisc: Processing zenoss.snmp.HRSWRunMap for device 192.168.0.216

2012-01-26 17:02:44,601 INFO zen.ZenDisc: processing zenoss.snmp.CpuMap for device 192.168.0.216

2012-01-26 17:03:15,488 INFO zen.ZenDisc: Changes in configuration applied

2012-01-26 17:03:15,489 ERROR zen.ZenDisc: Traceback (most recent call last):

  File "/usr/local/zenoss/zenoss/Products/ZenHub/PBDaemon.py", line 75, in inner

    return callable(*args, **kw)

  File "/usr/local/zenoss/zenoss/Products/ZenHub/services/ModelerService.py", line 121, in remote_applyDataMaps

    result = inner(map)

  File "/usr/local/zenoss/zenoss/Products/ZenHub/services/ModelerService.py", line 114, in inner

    if adm._applyDataMap(device, map):

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 198, in _applyDataMap

    changed = self._updateRelationship(tobj, datamap)

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 261, in _updateRelationship

    objchange, obj = self._createRelObject(device, objmap, rname)

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 441, in _createRelObject

    rel._setObject(remoteObj.id, remoteObj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 125, in _setObject

    self.addRelation(object)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 116, in addRelation

    ToManyRelationshipBase.addRelation(self, obj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipBase.py", line 96, in addRelation

    self._add(obj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 150, in _add

    v=checkValidId(self, id)

  File "/usr/local/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py", line 101, in checkValidId

    'The id "%s" is invalid because it begins with an underscore.' % id)

BadRequest: The id "_______ Microsoft SQL Server 2008 R2 (x64)" is invalid because it begins with an underscore.

Traceback (most recent call last):

  File "/usr/local/zenoss/zenoss/Products/DataCollector/zenmodeler.py", line 668, in processClient

    if driver.next():

  File "/usr/local/zenoss/zenoss/Products/ZenUtils/Driver.py", line 64, in result

    raise ex

RemoteException: Traceback (most recent call last):

  File "/usr/local/zenoss/zenoss/Products/ZenHub/PBDaemon.py", line 75, in inner

    return callable(*args, **kw)

  File "/usr/local/zenoss/zenoss/Products/ZenHub/services/ModelerService.py", line 121, in remote_applyDataMaps

    result = inner(map)

  File "/usr/local/zenoss/zenoss/Products/ZenHub/services/ModelerService.py", line 114, in inner

    if adm._applyDataMap(device, map):

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 198, in _applyDataMap

    changed = self._updateRelationship(tobj, datamap)

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 261, in _updateRelationship

    objchange, obj = self._createRelObject(device, objmap, rname)

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 441, in _createRelObject

    rel._setObject(remoteObj.id, remoteObj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 125, in _setObject

    self.addRelation(object)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 116, in addRelation

    ToManyRelationshipBase.addRelation(self, obj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipBase.py", line 96, in addRelation

    self._add(obj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 150, in _add

    v=checkValidId(self, id)

  File "/usr/local/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py", line 101, in checkValidId

    'The id "%s" is invalid because it begins with an underscore.' % id)

BadRequest: The id "_______ Microsoft SQL Server 2008 R2 (x64)" is invalid because it begins with an underscore.

 

2012-01-26 17:03:15,490 ERROR zen.ZenDisc: Client 192.168.0.216 finished with message: [Failure instance: Traceback (failure with no frames): : Traceback (most recent call last):

  File "/usr/local/zenoss/zenoss/Products/ZenHub/PBDaemon.py", line 75, in inner

    return callable(*args, **kw)

  File "/usr/local/zenoss/zenoss/Products/ZenHub/services/ModelerService.py", line 121, in remote_applyDataMaps

    result = inner(map)

  File "/usr/local/zenoss/zenoss/Products/ZenHub/services/ModelerService.py", line 114, in inner

    if adm._applyDataMap(device, map):

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 198, in _applyDataMap

    changed = self._updateRelationship(tobj, datamap)

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 261, in _updateRelationship

    objchange, obj = self._createRelObject(device, objmap, rname)

  File "/usr/local/zenoss/zenoss/Products/DataCollector/ApplyDataMap.py", line 441, in _createRelObject

    rel._setObject(remoteObj.id, remoteObj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 125, in _setObject

    self.addRelation(object)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 116, in addRelation

    ToManyRelationshipBase.addRelation(self, obj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/RelationshipBase.py", line 96, in addRelation

    self._add(obj)

  File "/usr/local/zenoss/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 150, in _add

    v=checkValidId(self, id)

  File "/usr/local/zenoss/python/lib/python2.6/site-packages/Zope2-2.12.1-py2.6-linux-i686.egg/OFS/ObjectManager.py", line 101, in checkValidId

    'The id "%s" is invalid because it begins with an underscore.' % id)

BadRequest: The id "_______ Microsoft SQL Server 2008 R2 (x64)" is invalid because it begins with an underscore.

 

]

2012-01-26 17:03:16,879 INFO zen.ZenDisc: Scan time: 38.12 seconds

2012-01-26 17:03:16,901 INFO zen.ZenDisc: Daemon ZenDisc shutting down

  • dpetzel Rank: Brown Belt 1,141 posts since
    Oct 17, 2010

    It appears you have a bogus installed Software Object. I say bogus in that it starts with an underscore which is an explicit check and exception raise in ZOPE. Looking at my System "Microsoft SQL Server 2008 R2 (x64)" has no underscores in front of it.

     

    Can you:

    1) Run the following in a ZenDMD shell and provide the output

    dev = dmd.Devices.findDevice("192.168.0.216")

    for software in dev.os.software():

      if software.id.startswith("_"):

        print software.id

       

    2) Navigate to the device in question, and click on the software link. Do you see the entry with the underscore? If so take note of the manufacturer (For me "Microsoft SQL Server 2008 R2 (x64)" is unknown). Now navigate to Infrastructure -- > Manufacturers. Drill into the manufacture and locate the software entry. Does it contain an underscore here? If so try deleting it and remodeling your device

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009

    Tuxgood:

     

    Looks like it could be one of a few differnt issues. Have you tried running zenchkrels -x1 -r on the zen master as user zenoss? If it halts with trace like results, post it.

     

    Best,

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009

    Tuxgood:

     

    I advise you to do a backup before you run the following code. You can best accomplish ZODB backup by running zeopack -h localhost -p8100 twice and backing up $ZENHOME/var/Data.fs.old

     

    In zendmd as the zenoss user run the following:

     

    print "Removing invalid objects"

    fixCount = 0

    for d in dmd.Devices.getSubDevices():

        for s in d.os.software():

            try:

                s.checkRelations(repair=True)

            except KeyboardInterrupt:

                self.exitGracefully()

            except:

                print "  - removing %s" % s.id

                d.os.software._delObject(s.id)

                fixCount += 1

        for i in d.os.interfaces():

            try:

                i.checkRelations(repair=True)

            except KeyboardInterrupt:

                self.exitGracefully()

            except:

                print "  - removing %s" % i.id

                d.os.interfaces._delObject(i.id)

                fixCount += 1

     

     

    commit()

    if fixCount > 0: print

     

    Let us know if it helps.

     

    Best,

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009

    Tuxgood:

     

    Whoops. Sorry, I mis indented. I updated my last post to be correct. Please rerun when you can.

     

    Best,

    --Shane (Hackman238)

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009

    Tuxgood:

     

    You may need to delete these devices and readd them. Have you tried that?

     

    --Shane

  • Shane Scott ZenossMaster 1,373 posts since
    Jul 6, 2009

    Tuxgood:

     

    Oh geez, I hope that's not it. In the $ZENHOME/etc/zope.conf verify that 'default-zpublisher-encoding' is  utf-8. (default-zpublisher-encoding utf-8)

     

    --Shane

1 2 Previous Next

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points