当前位置: 首页 > 工具软件 > NagiosGraph > 使用案例 >

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

万俟光临
2023-12-01

安装教程: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目录或者文件

解决:

 

 类似资料: