2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Monit] 初歩的なコンフィグサンプル

Posted at

/etc/monit.d/ にコンフィグを作ります。

httpdの監視サンプル
check process httpd with pidfile /var/run/httpd.pid
      start program = "/etc/init.d/httpd start"
      stop program = "/etc/init.d/httpd stop"
      if failed port 80 then alert
      if failed port 80 then restart
tomcatの監視サンプル
check process tomcat with pidfile /var/run/tomcat.pid
      start program = "/etc/init.d/tomcat start"
      stop program = "/etc/init.d/tomcat stop"
      if failed port 8005 then restart
      if cpu > 70% for 5 cycles then alert
      if mem > 70% for 5 cycles then alert
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?