蜗牛星际openmediavault之开机警告问题

2019-06-17  本文已影响0人  重案组知乎

在配置了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的监控开始太早,系统还未就绪造成的,可以这样修改:

  1. 编辑/etc/default/openmediavault文件,
  2. 在里面添加一行配置(据说不添加的话默认是5秒):
OMV_MONIT_DELAY_SECONDS=30
  1. 加载配置并重启monit
# omv-mkconf monit
# systemctl restart monit

就这样。不行数字再调大。

上一篇 下一篇

猜你喜欢

热点阅读