Re: chk zope is running
Several suggestions have been made for how to check that zope is running. There was some discussion of what pattern to look for. Generally, the "ps" method can be adjusted to your system by doing a plain "ps ax", looking for the line that seems to be the zope process, and then using a grep for that pattern. e.g. ps ax found ZoPe-foo then use ps ax | grep ZoPe-foo This (and the other method proposed) still have the disadvantage that it cannot detect a hung zope process, of course. To do that from the command line, create an very simple page containing the string "all-is-alll" (for example) with a URL like http://127.0.0.1/i_am_alive and then from the command line use something like lynx -dump http://127.0.0.1/i_am_alive | grep all-is-well Greg
Under webmin (on Linux) in the "System and Server Status" I added a monitor for a command running (/usr/local/zope274/ etc etc) with the minimum threads. That has worked great. The hosting company I use also has a monitoring and alerting service so I have them monitoring the Zope FTP server every five minutes with instructions how to bring it back up again. Jake -- http://www.ZopeZone.com Gregory Dudek said:
Several suggestions have been made for how to check that zope is running. There was some discussion of what pattern to look for.
Generally, the "ps" method can be adjusted to your system by doing a plain "ps ax", looking for the line that seems to be the zope process, and then using a grep for that pattern.
e.g.
ps ax found ZoPe-foo then use ps ax | grep ZoPe-foo
This (and the other method proposed) still have the disadvantage that it cannot detect a hung zope process, of course. To do that from the command line, create an very simple page containing the string "all-is-alll" (for example) with a URL like http://127.0.0.1/i_am_alive and then from the command line use something like lynx -dump http://127.0.0.1/i_am_alive | grep all-is-well
Greg
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Gregory Dudek -
Jake