TECHZEN Zenoss User Community ARCHIVE  

Can't add new hosts

Subject: Can't add new hosts
Author: [Not Specified]
Posted: 2015-01-30 09:01

I can't add new hosts... This is a new install of Zenoss. I could only add 2 hosts and after that it just doesn't work... The job stays "pending" forever and no log is created.

I tried to add a host manually from the command like and I get this error:

zendisc run --now -d 186.232.160.7 --monitor localhost --deviceclass /Server/Linux --prod_state 1000 -v10
2015-01-30 12:52:22,406 DEBUG zen.ZenDisc: Run in foreground, starting immediately.
2015-01-30 12:52:22,906 DEBUG zen.ZenDisc: Starting PBDaemon initialization
2015-01-30 12:52:22,906 INFO zen.ZenDisc: Connecting to localhost:8789
2015-01-30 12:52:22,907 DEBUG zen.pbclientfactory: Starting connection...
2015-01-30 12:52:22,907 DEBUG zen.ZenDisc: Logging in as admin
2015-01-30 12:52:22,909 DEBUG zen.pbclientfactory: Connected
2015-01-30 12:52:22,909 DEBUG zen.pbclientfactory: Cancelling connect timeout
2015-01-30 12:52:22,909 DEBUG zen.pbclientfactory: Sending credentials
2015-01-30 12:52:22,911 DEBUG zen.pbclientfactory: Cancelling connect timeout
2015-01-30 12:52:22,911 INFO zen.ZenDisc: Connected to ZenHub
2015-01-30 12:52:22,911 DEBUG zen.ZenDisc: Setting up initial services: EventService, DiscoverService
2015-01-30 12:52:22,912 DEBUG zen.ZenDisc: Chaining getInitialServices with d2
2015-01-30 12:52:22,913 DEBUG zen.ZenDisc: Loaded service EventService from zenhub
2015-01-30 12:52:22,913 DEBUG zen.ZenDisc: Loaded service DiscoverService from zenhub
2015-01-30 12:52:22,913 DEBUG zen.ZenDisc: Queued event (total of 1) {'rcvtime': 1422629542.913493, 'severity': 0, 'component': 'zendisc', 'agent': 'zendisc', 'summary': 'started', 'manager': 'zenoss.vianovatelecom.com.br', 'device': 'localhost', 'eventClass': '/App/Start', 'monitor': 'localhost'}
2015-01-30 12:52:22,913 DEBUG zen.ZenDisc: Sending 1 events, 0 perf events, 0 heartbeats
2015-01-30 12:52:22,914 DEBUG zen.ZenDisc: Calling connected.
2015-01-30 12:52:22,914 DEBUG zen.ZenDisc: fetching monitor properties
2015-01-30 12:52:23,094 DEBUG zen.ZenDisc: Getting threshold classes...
2015-01-30 12:52:23,101 DEBUG zen.ZenDisc: Loading classes ['Products.ZenModel.MinMaxThreshold', 'Products.ZenModel.ValueChangeThreshold']
2015-01-30 12:52:23,102 DEBUG zen.ZenDisc: Fetching default RRDCreateCommand...
2015-01-30 12:52:23,105 DEBUG zen.ZenDisc: Getting collector thresholds...
2015-01-30 12:52:23,145 DEBUG zen.thresholds: Updating threshold ('high event queue', ('localhost collector', ''))
2015-01-30 12:52:23,145 DEBUG zen.thresholds: Updating threshold ('zenmodeler cycle time', ('localhost collector', ''))
2015-01-30 12:52:23,146 DEBUG zen.ZenDisc: Getting collector plugins for each DeviceClass
2015-01-30 12:52:23,172 INFO zen.ZenDisc: Looking for 186.232.160.7
2015-01-30 12:52:23,173 DEBUG zen.ZenDisc: Found IP 186.232.160.7 for device 186.232.160.7
2015-01-30 12:52:23,180 DEBUG zen.ZenDisc: Scanning device with address 186.232.160.7
2015-01-30 12:52:23,180 DEBUG zen.ZenDisc: findRemoteDeviceInfo.inner: Doing SNMP lookup on device 186.232.160.7
2015-01-30 12:52:23,194 ERROR zen.ZenDisc: Failed device discovery for '186.232.160.7'
Traceback (most recent call last):
File "/opt/zenoss/Products/DataCollector/zendisc.py", line 456, in inner
snmp_config = driver.next()
File "/opt/zenoss/Products/ZenUtils/Driver.py", line 63, in result
raise ex
RemoteException: : Traceback (most recent call last):
File "/opt/zenoss/Products/ZenHub/PBDaemon.py", line 85, in inner
return callable(*args, **kw)
File "/opt/zenoss/Products/ZenHub/services/DiscoverService.py", line 253, in remote_getSnmpConfig
devroot = self.dmd.Devices.createOrganizer(devicePath)
File "/opt/zenoss/Products/ZenModel/Organizer.py", line 341, in createOrganizer
path,self.__class__)
File "/opt/zenoss/Products/ZenModel/ZenModelBase.py", line 456, in createHierarchyObj
return createHierarchyObj(root, name, factory, relpath, alog)
File "/opt/zenoss/Products/ZenUtils/Utils.py", line 618, in createHierarchyObj
root._setObject(id, newobj)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 128, in _setObject
self.addRelation(object)
File "/opt/zenoss/Products/ZenRelations/ToManyContRelationship.py", line 118, in addRelation
ToManyRelationshipBase.addRelation(self, obj)
File "/opt/zenoss/Products/ZenRelations/RelationshipBase.py", line 91, in addRelation
obj.id, obj.__class__.__name__))
ZenSchemaError: devices restricted to class Device. 186.232.160.7 is class DeviceClass
: :
2015-01-30 12:52:23,194 DEBUG zen.ZenDisc: Finished scanning device with address 186.232.160.7
2015-01-30 12:52:23,195 INFO zen.ZenDisc: Result: Discovered device 186.232.160.7.
2015-01-30 12:52:23,195 DEBUG zen.ZenDisc: Starting collector loop...
2015-01-30 12:52:23,195 DEBUG zen.ZenDisc: Running 0 clients
2015-01-30 12:52:23,195 INFO zen.ZenDisc: Scan time: 0.00 seconds
2015-01-30 12:52:23,195 DEBUG zen.collector.scheduler: In shutdown stage before
2015-01-30 12:52:23,196 DEBUG zen.ZenDisc: Tried to stop reactor that was stopped
2015-01-30 12:52:23,196 INFO zen.ZenDisc: Daemon ZenDisc shutting down
2015-01-30 12:52:23,197 DEBUG zen.ZenDisc: Removing service EventService
2015-01-30 12:52:23,197 DEBUG zen.ZenDisc: Removing service DiscoverService
2015-01-30 12:52:23,197 DEBUG zen.pbclientfactory: Lost connection to ::1:8789 - [Failure instance: Traceback (failure with no frames): : Connection to the other side was lost in a non-clean fashion: Connection lost.
]
2015-01-30 12:52:23,198 DEBUG zen.collector.scheduler: In shutdown stage during
2015-01-30 12:52:23,198 DEBUG zen.collector.scheduler: In shutdown stage after



< Previous
zenpython.py spawns a huge amout of threads: +13000 (136GB Virtual Memory)
  Next
Beta 3 Issues with VM Image
>