0
私は、私のWebサービスを監視するためにmonitを使用しています。モンティ・プロセスが停止するまで、すべてがうまくいった。 MONITログファイルの一部ではありシステムによって殺された後で自動的に再起動する
次のようになり、私はMONITの設定を追加したシステム(私はUbuntuの14.04を実行しています)によって監視MONITました:
# This is an upstart script to keep monit running.
# To install disable the old way of doing things:
#
# /etc/init.d/monit stop && update-rc.d -f monit remove
#
# then put this script here:
#
# /etc/init/monit.conf
#
# and reload upstart configuration:
#
# initctl reload-configuration
#
# You can manually start and stop monit like this:
#
# start monit
# stop monit
#
description "Monit service manager"
limit core unlimited unlimited
start on runlevel [2345]
stop on starting rc RUNLEVEL=[016]
expect daemon
respawn
exec /usr/bin/monit -c /etc/monitrc
pre-stop exec /usr/bin/monit -c /etc/monitrc quit
は私が再起動システムmonitは実行されていません。
sudo monit status
$ monit: Status not available -- the monit daemon is not running
アップスタートを設定してmonitを実行して監視する方法を教えてください。