Charlie Li
2011-12-14 01:25:00 UTC
Charlie Li [http://community.zenoss.org/people/ccli] created the discussion
"How to Monitor Zenoss Daemons?"
To view the discussion, visit: http://community.zenoss.org/message/63280#63280
--------------------------------------------------------------
Hi, I would like to periodically monitor Zenoss daemons. (I do not want to use Zenoss to monitor system events, buy to monitor Zenoss itself). If some Zenoss daemons die, I would like to restart them automatically. Since I use Ubuntu system, a potential way is to use Upstart to monitor Zenoss daemons.
Hence I wrote a lot of *.conf and put them in /etc/init. For example, the following is the content of zeoctl.conf, which is the first started daemon of Zenoss.
--
description    "start zenoss zeoctl daemon"
start on startup
stop on runlevel [!2345]
exec /usr/local/zenoss/bin/zeoctl
---
However, zeoctl daemon can not be started while system operates. When I typed 'initctl status zeoctl', it showed 'stop/waiting'. If I typed 'initctl start zeoctl', it will show 'zeoctl start/running process 1765'. However, it turns into stop/waiting immediately.
What and How can I do to achieve my goals (for other daemons)? Many thanks
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63280#63280]
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]
"How to Monitor Zenoss Daemons?"
To view the discussion, visit: http://community.zenoss.org/message/63280#63280
--------------------------------------------------------------
Hi, I would like to periodically monitor Zenoss daemons. (I do not want to use Zenoss to monitor system events, buy to monitor Zenoss itself). If some Zenoss daemons die, I would like to restart them automatically. Since I use Ubuntu system, a potential way is to use Upstart to monitor Zenoss daemons.
Hence I wrote a lot of *.conf and put them in /etc/init. For example, the following is the content of zeoctl.conf, which is the first started daemon of Zenoss.
--
description    "start zenoss zeoctl daemon"
start on startup
stop on runlevel [!2345]
exec /usr/local/zenoss/bin/zeoctl
---
However, zeoctl daemon can not be started while system operates. When I typed 'initctl status zeoctl', it showed 'stop/waiting'. If I typed 'initctl start zeoctl', it will show 'zeoctl start/running process 1765'. However, it turns into stop/waiting immediately.
What and How can I do to achieve my goals (for other daemons)? Many thanks
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63280#63280]
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]