Discussion:
fail to add devices to zenoss
Ronny Sharaby
2013-02-19 13:27:43 UTC
Permalink
Ronny Sharaby [http://community.zenoss.org/people/Ronnch] created the discussion

"fail to add devices to zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71567#71567

--------------------------------------------------------------
hi,
im newby on zenoss and just install on one of my servers.
from some reason i cant add devices to it, i see this error on zenjobs:

2013-02-19 08:24:29,112 INFO celery.worker.consumer: Got task from broker: Products.ZenModel.ZDeviceLoader.DeviceCreationJob[aefd0eca-6bc3-4781-b361-f8e0eef93aaf]
2013-02-19 08:24:29,309 INFO zen.Job: Job aefd0eca-6bc3-4781-b361-f8e0eef93aaf (Products.ZenModel.ZDeviceLoader.DeviceCreationJob) received
2013-02-19 08:24:29,322 INFO zen.Job: Beginning job Add Device Products.ZenModel.ZDeviceLoader.DeviceCreationJob
2013-02-19 08:24:29,466 INFO zen.Device: device name '192.168.251.140' for ip '192.168.251.140'
2013-02-19 08:24:29,569 INFO zen.Device: 192.168.251.140's IP address has been set to 192.168.251.140.
2013-02-19 08:24:29,570 INFO zen.Device: setting title to 'ny-admin'
2013-02-19 08:24:29,570 INFO zen.Device: setting tag to ''
2013-02-19 08:24:29,570 INFO zen.Device: setting serialNumber to ''
2013-02-19 08:24:29,571 INFO zen.Device: setting rackSlot to ''
2013-02-19 08:24:29,571 INFO zen.Device: setting productionState to 1000
2013-02-19 08:24:29,577 INFO zen.Device: setting priority to 3
2013-02-19 08:24:29,577 INFO zen.Device: setting comments to ''
2013-02-19 08:24:29,577 INFO zen.Device: setting performance monitor to 'localhost'
2013-02-19 08:24:29,791 INFO zen.Job: Running Job Add Device Products.ZenModel.ZDeviceLoader.DeviceCreationJob
2013-02-19 08:24:29,791 INFO zen.Job: Spawning subprocess: /usr/local/zenoss/bin/zendisc run --now -d 192.168.251.140 --monitor localhost --deviceclass /Server/Linux --prod_state 1000 --job aefd0eca-6bc3-4781-b361-f8e0eef93aaf
2013-02-19 08:24:29,905 INFO zen.Job: Traceback (most recent call last):
2013-02-19 08:24:29,905 INFO zen.Job: File "<string>", line 13, in <module>
2013-02-19 08:24:29,906 INFO zen.Job: File "<string>", line 7, in create_raw_socket
2013-02-19 08:24:29,906 INFO zen.Job: File "/usr/local/zenoss/lib/python2.7/socket.py", line 187, in __init__
2013-02-19 08:24:29,906 INFO zen.Job: _sock = _realsocket(family, type, proto)
*2013-02-19 08:24:29,907 INFO zen.Job: socket.error: [Errno 1] Operation not permitted*
2013-02-19 08:24:30,010 ERROR zen.Job: Job aefd0eca-6bc3-4781-b361-f8e0eef93aaf raised exception
2013-02-19 08:24:30,010 ERROR zen.Job: <traceback object at 0x7f92e472a6c8>
Traceback (most recent call last):
  File "/usr/local/zenoss/Products/Jobber/zenjobs.py", line 23, in <module>
    from celery.concurrency.processes.forking import freeze_support
ImportError: No module named forking
2013-02-19 08:24:30,087 ERROR celery.worker.job: Task Products.ZenModel.ZDeviceLoader.DeviceCreationJob[aefd0eca-6bc3-4781-b361-f8e0eef93aaf] raised exception: UnpickleableExceptionWrapper('Products.Jobber.exceptions', 'SubprocessJobFailed', (), 'SubprocessJobFailed()')
Traceback (most recent call last):
  File "/usr/local/zenoss/lib/python/celery/task/trace.py", line 186, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/local/zenoss/Products/Jobber/jobs.py", line 185, in _do_run
    result = _runjob()
  File "/usr/local/zenoss/lib/python/ZODB/transact.py", line 44, in g
    r = f(*args, **kwargs)
  File "/usr/local/zenoss/Products/Jobber/jobs.py", line 175, in _runjob
    result = self._run(*args, **kwargs)
  File "/usr/local/zenoss/Products/ZenModel/ZDeviceLoader.py", line 238, in _run
    return SubprocessJob._run(self, zendiscCmd)
  File "/usr/local/zenoss/Products/Jobber/jobs.py", line 379, in _run
    raise SubprocessJobFailed(exitcode)
SubprocessJobFailed: SubprocessJobFailed()


anyone can help?
it looks  like the zendisk command resulting with "operation not prtmited"


thanks is advance...
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71567#71567]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Philip Warren
2013-02-19 14:15:46 UTC
Permalink
Philip Warren [http://community.zenoss.org/people/pwarren] created the discussion

"Re: fail to add devices to zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71582#71582

--------------------------------------------------------------
This error is indicative of incorrect permissions on some programs which much be setuid root in order to open privileged sockets and/or use raw sockets (for ICMP ping). Run these commands (as root) to set the appropriate permissions (assuming zenoss is installed on a system where the 'zenoss' user is a member of the 'zenoss' group):

# chown root:zenoss /opt/zenoss/bin/{zensocket,pyraw,nmap}
# chmod 4750 /opt/zenoss/bin/{zensocket,pyraw,nmap}

-- Philip
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71582#71582]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Ronny Sharaby
2013-02-19 14:57:10 UTC
Permalink
Ronny Sharaby [http://community.zenoss.org/people/Ronnch] created the discussion

"Re: fail to add devices to zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71569#71569

--------------------------------------------------------------
it actually solve the problem.

thanks!
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71569#71569]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Zen Reputation
2013-02-21 09:35:46 UTC
Permalink
Zen Reputation [http://community.zenoss.org/people/ZenReputation] created the discussion

"Re: fail to add devices to zenoss"

To view the discussion, visit: http://community.zenoss.org/message/71617#71617

--------------------------------------------------------------
i also get ""operation not prtmited""...
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/71617#71617]

Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...