我从Ubuntu的存储库安装了Monit 5.6,以提醒我关于我的VPS的exception高内存和CPU使用情况。 事实certificate,75%的内存使用量对我的设置来说是相当常见的,所以我改变了在/etc/monit/conf.d/system.conf文件中设置限制的行:
check system localhost ... if memory usage > 90% then alert
但是现在它提醒我75%的门槛和90%。 我search了哪里可以设置: grep 75% -r /etc/monit/ ,但没有匹配。 有没有其他地方在默认设置下,Monit会保存它的configuration文件? 还是75%的限制是硬编码的? 我怎样才能禁用它?
UPD :在更改之后,我尝试了重新加载和重新启动监视(尽pipe不尝试重新启动服务器)。 我的Monit版本是:
# monit -V This is Monit version 5.6 Copyright (C) 2001-2013 Tildeslash Ltd. All Rights Reserved.
和configuration文件:
check system localhost if loadavg (1min) > 4 then alert if loadavg (5min) > 3 then alert if memory usage > 90% then alert if cpu usage (user) > 70% for 5 cycles then alert if cpu usage (system) > 30% for 5 cycles then alert if cpu usage (wait) > 20% for 5 cycles then aler
总是有一个错误的机会…你可以显示你的Monit版本级别?
# monit -V This is Monit version 5.5 Copyright (C) 2001-2012 Tildeslash Ltd. All Rights Reserved.
你可以这样做:
service monit restart或只是monit reload
如果对读数有疑问,可以从命令行运行monit status :
[root@PMS ~]# monit status The Monit daemon 5.5 uptime: 6d 14h 26m System 'PMS.pmscollects.com' status Running monitoring status Monitored load average [0.00] [0.11] [0.38] cpu 0.0%us 0.2%sy 0.0%wa memory usage 3562600 kB [44.2%] swap usage 5280 kB [0.0%] data collected Sun, 23 Nov 2014 23:59:04