ラベル Monit の投稿を表示しています。 すべての投稿を表示
ラベル Monit の投稿を表示しています。 すべての投稿を表示

2010年9月30日木曜日

Monitの cycleとは

monitで「if 5 restarts within 5 cycles then timeout」とかやる場合のcycleって具体的には何だろう?

どうやらMonitのチェック処理の回数みたい。
1 cycleはmonit.confの「set daemon xx」の秒数ということか?


what is a monit cycle? - Ruby Forum
You are correct sir. One cycle is equal to the number of seconds in the set daemon config options. 30 or 60 seconds is a good interval.


.

Monitで URLを指定して Webサイトの死活監視をする例

Monit - utility for monitoring services on a Unix system
check host FOO with address www.foo.bar if failed url http://user:password@www.foo.bar:8080/?querystring and content == 'action="j_security_check"' then ...

contentで内容を指定できる。これを含んでいたらOKということ?正規表現とか使えるのかな。

2010年9月28日火曜日

Monit.confの設定例

ここの例が一番使えそう。
GMailでのメール送信、管理用Webの設定、システム全体の監視、Apacheの監視の例が載っている。

System Monitoring With Monit - Linux and Open Source Screencasts

2010年9月15日水曜日

Monitの alertで GMailを使う方法

Monit の導入 - ARCHIVESDRIVE HD
gmailいけましたよ。
set mailserver smtp.gmail.com port 587 username "name" password "password" using TLSV1

おお素晴らしい。
もうメールはGMailにしようよ。Localのメールサーバはなるべく不使用で。

Monit自身の死活監視をする方法

Monitでサービス・プロセス監視、止まったら勝手にリスタート(3) « 旧SawanoBlog.
監視対象プロセスの起動がDaemontoolsのようにMonit経由ではないので、Monitプロセス自身がいなくなると監視止まってしまうがな。
ということで monit の起動・動作監視を、全てのプロセスの親である init にやらせます。

initからmonitを動かしっと。(後韻)

サーバ監視ツールMonitとは

monit でプロセスを監視する - いますぐ実践! Linuxシステム管理 / Vol.158
Monit とは、プロセスを監視して、 なにか問題があったときに再起動などを行ってくれる、便利なユーティリティです。


ここの説明が一番分かりやすい。
応用編についてはmonit でいろいろ監視する - いますぐ実践! Linuxシステム管理 / Vol.159を参照。

ブログ アーカイブ

カテゴリー