Table of Contents

Restart Zenoss

About

Sometimes restarting of all Zenoss daemons is useful when doing general troubleshooting. You can have “stuck” processes, that continue to run, which is handled below by the force kill command, you can have heartbeat issues amongst daemons meaning that they are not properly talking to eachother. You might also have the wrong number of daemons running, or simply some daemons may not be running.

Many problems can be fixed by a simple restart of daemons.

Code

zenoss stop
ps aux | grep py
kill <process_id_inserted_here>
kill -9 <process_id_inserted_here>
zenoss start
  • Stop Zenoss
  • Check for and kill stuck processes
    1. get pid’s
    2. simple kill if any zenoss processes still running (they all should have quit before though)
    3. hard kill if processes don’t quit above
  • Start Zenoss

Example

Note, not all of the time will you have to kill. This is an example where a rogue process did not stop initially or with a normal kill.

[zenoss@applianceincloset ~]$ zenoss stop
Daemon: zenmailtx stopping...
Daemon: zenwinperf stopping...
Daemon: zenwebtx stopping...
Daemon: zenjmx stopping...
Daemon: zeneventlog stopping...
Daemon: zenwin stopping...
Daemon: zenprocess stopping...
Daemon: zencommand stopping...
Daemon: zenperfsnmp stopping...
Daemon: zenmodeler stopping...
Daemon: zentrap stopping...
Daemon: zenactions stopping...
Daemon: zenstatus stopping...
Daemon: zensyslog stopping...
Daemon: zenping stopping...
Daemon: zenhub stopping...
Daemon: zopectl . daemon process stopped
Daemon: zeoctl . daemon process stopped
 
[zenoss@applianceincloset ~]$ ps aux | grep py
raa-web   3055  0.0  0.6  45972 25580 ?        Ssl  Feb10   1:36 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
root      3063  0.2  0.6  80592 25752 ?        Ssl  Feb10 130:04 /usr/bin/python2.4 /usr/bin/raa-service
raa-web  13605  0.2  0.5  46232 23472 ?        S    Mar15   7:19 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
raa-web  15034  0.0  0.5  45972 23404 ?        S    Mar16   0:00 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
zenoss   17273  7.6  0.6  43644 27340 ?        Rl   14:57   0:00 /usr/lib/zope/bin/python /home/zenoss/Products/ZenHub/zenhub.py --configfile /home/zenoss/etc/zenhub.conf --cycle --daemon
 
Note: raa is an appliance process, they dont need to be restarted.
 
[zenoss@applianceincloset ~]$ kill 17273
[zenoss@applianceincloset ~]$ ps aux | grep py
raa-web   3055  0.0  0.6  45972 25580 ?        Ssl  Feb10   1:36 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
root      3063  0.2  0.6  80592 25752 ?        Ssl  Feb10 130:04 /usr/bin/python2.4 /usr/bin/raa-service
raa-web  13605  0.2  0.5  46232 23472 ?        S    Mar15   7:20 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
raa-web  15034  0.0  0.5  45972 23404 ?        S    Mar16   0:00 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
zenoss   17273  2.0  0.6  43620 27316 ?        Sl   14:59   0:00 /usr/lib/zope/bin/python /home/zenoss/Products/ZenHub/zenhub.py --configfile /home/zenoss/etc/zenhub.conf --cycle --daemon
 
Note: the process is still there, it didnt go away
 
[zenoss@applianceincloset ~]$ kill -9 17298
[zenoss@applianceincloset ~]$ ps aux | grep py
raa-web   3055  0.0  0.6  45972 25580 ?        Ssl  Feb10   1:36 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
root      3063  0.2  0.6  80592 25752 ?        Ssl  Feb10 130:04 /usr/bin/python2.4 /usr/bin/raa-service
raa-web  13605  0.2  0.5  46232 23472 ?        S    Mar15   7:20 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
raa-web  15034  0.0  0.5  45972 23404 ?        S    Mar16   0:00 /usr/bin/python2.4 /usr/bin/raa-web-scgi /etc/raa/prod.cfg --no-daemon
zenoss   17304  0.0  0.0   2912   800 pts/0    S+   15:00   0:00 grep py
 
Note: now its gone
 
[zenoss@applianceincloset ~]$ zenoss start
Daemon: zeoctl . daemon process started, pid=17317
Daemon: zopectl . daemon process started, pid=17321
Daemon: zenhub starting...
Daemon: zenping starting...
Daemon: zensyslog starting...
Daemon: zenstatus starting...
Daemon: zenactions starting...
Daemon: zentrap starting...
Daemon: zenmodeler starting...
Daemon: zenperfsnmp starting...
Daemon: zencommand starting...
Daemon: zenprocess starting...
Daemon: zenwin starting...
Daemon: zeneventlog starting...
Daemon: zenjmx starting...
Daemon: zenwebtx starting...
Daemon: zenwinperf starting...
Daemon: zenmailtx starting...
 
technology/zenoss/howtos/restart_zenoss.txt · Last modified: 03.17.2009 15:10 by 72.81.253.234
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki