《Nagios可视化插件开发》—19/2/22——安装nagiosgraph出现的N个问题

安装教程:https://www.linuxidc.com/Linux/2017-08/146258.htm

问题:

安装完nagios图形插件之后,当我打开网址时,出现了一下说明:

  • You don't have permission to access /nagiosgraph/cgi-bin/showconfig.cgi on this server.

找了一堆解决方案,在抽丝剥茧中找到解决方案

解决:

在httpd.conf文件中找到以下代码:

  • <Directory />

  • AllowOverride none

  • Require all denied

  • </Directory>

修改成:

  • <Directory />
  •     AllowOverride none
  • #    Require all denied
  •     Require all granted
  • </Directory>

 

问题2:

  • 打开nagiosgraph的日志,什么也没有。

解决:

  • 解压、编译完安装包后,在nagios目录下新建一个nagiosgraph目录,然后把编译完后在/usr/local/下的nagiosgraph文件复制到新建目录下  cp ../nagiosgraph/* nagiosgraph/
  • 打开nagiosgraph.conf,修改里面的相关路径
  • 设置log、rrd文件权限。全部777

问题3:

打开web界面,显示 No data in rrd directory /usr/local/nagiosgraph/var/rrd  ,找到日志文件,说是没有map目录或者文件

解决:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值