在配置了Openmediavault的报警功能后,经常在开机后收到下面这样的邮件,警告我某服务不存在:
Does not exist Service rrdcached
Date: Sun, 16 Jun 2019 14:21:58
Action: restart
Host: omv
Description: process is not running
Your faithful employee,
Monit
然后过一会又来个邮件说服务存在:
Exists Service rrdcached
Date: Sun, 16 Jun 2019 14:22:38
Action: alert
Host: omv
Description: process is running with pid 1059
Your faithful employee,
Monit
搜索说这是因为monit的监控开始太早,系统还未就绪造成的,可以这样修改:
- 编辑
/etc/default/openmediavault
文件, - 在里面添加一行配置(据说不添加的话默认是5秒):
OMV_MONIT_DELAY_SECONDS=30
- 加载配置并重启monit
# omv-mkconf monit
# systemctl restart monit
就这样。不行数字再调大。
网友评论