Nagiosgraph 抛出错误
尝试在 Nagios 上打开任何图形时会抛出以下错误:
Nagiosgraph 在配置文件中检测到错误:/etc/nagios/nagiosgraph/nagiosgraph.conf 日志:/var/log/nagios/nagiosgraph.log 打开失败!
When trying to open any graph on Nagios throws below error:
Nagiosgraph has detected an error in the configuration file: /etc/nagios/nagiosgraph/nagiosgraph.conf
Log: /var/log/nagios/nagiosgraph.log failed to open!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保在
/var/log/nagios
上正确设置权限,www(或 www-data 或 apache)用户必须具有写入权限。
一种方法是创建一个名为 nagcmd 的组,并将 www 用户放入该组中。
然后设置权限:
另一种方法是保留单独的日志文件,一个用于数据收集(nagiosgraph.log),另一个用于绘图(nagiosgraph-cgi.log)。有关详细信息,请参阅 nagiosgraph.conf。
make sure that permissions are set properly on
/var/log/nagios
the www (or www-data or apache) user must have write permission.
one approach is to make a group called nagcmd and put the www user into this group.
then set permissions:
another approach is to keep separate log files, one for data collection (nagiosgraph.log) and another for graphing (nagiosgraph-cgi.log). see nagiosgraph.conf for details.