以前、CentOS6にMonitをインストール&初期設定(auditd/crond/ntpd/rsyslog/sshd/postfix)の記事にて Monitで監視(自動復旧)をする設定をしたのですが、今回はよく利用しているfluentd(td-agent)の 監視(自動復旧)を行う設定も用意してみます。 はじめに、下記の設定ファイルを用意しました。 # cat /etc/monit.d/td-agent.conf check process td-agent with pidfile /var/run/td-agent/td-agent.pid start program = "/etc/init.d/td-agent start" stop program = "/etc/init.d/td-agent stop" if 5 restarts within 5 cycles then
