我有下面的详细信息要在监控中访问:
set httpd port 2812 and
use address localhost # only accept connection from localhost
allow 0.0.0.0/0.0.0.0
# allow admin:monit # require user 'admin' with password 'monit'
allow @mygroup发布于 2020-01-15 08:48:47
在Monit源文件p.y的某个地方,有一些代码可以用注释检查monitrc:
/*
* Secure check the monitrc file. The run control file must have the
* same uid as the REAL uid of this process, it must have permissions
* no greater than 700 and it must not be a symbolic link.
*/此检查生成消息The control file '/etc/monit/monitrc' must be owned by you。要修复它,您需要更改monitrc文件所有者或运行Monit守护进程的用户,以便它们是相同的。
这也来自于Monit文档
为了保护控制文件和密码的安全性,控制文件必须具有不超过0700 (u=xrw、g=、o=)的读写权限;否则Monit会抱怨并退出。
https://stackoverflow.com/questions/43584736
复制相似问题