小编use*_*092的帖子

Apache、MySQL 和 Postfix 的监控配置

我计划使用以下配置在我的生产服务器上启用 Monit。我对 Monit 完全陌生,想听听其他人的建议,或者是否有其他指令我应该考虑根据您的经验来支持我的监控脚本。

我的服务器是 CentOS 5.6。

谢谢!

#httpd----
check process httpd with pidfile /var/run/httpd.pid
group apache
start program = "/etc/init.d/httpd start"
stop program = "/etc/init.d/httpd stop"
if failed host 127.0.0.1 port 80
protocol http then restart
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then restart
if 5 restarts within 5 cycles then timeout

#mysqld----
check process mysqld with pidfile /var/run/mysqld/mysqld.pid
group mysql
start program = "/etc/init.d/mysqld start"
stop program = …
Run Code Online (Sandbox Code Playgroud)

centos monit

0
推荐指数
1
解决办法
3038
查看次数

标签 统计

centos ×1

monit ×1