Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2111934
  • 博文数量: 317
  • 博客积分: 5670
  • 博客等级: 大校
  • 技术积分: 3677
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-10 17:51
文章分类

全部博文(317)

文章存档

2016年(2)

2015年(44)

2014年(68)

2013年(42)

2012年(23)

2011年(51)

2010年(67)

2009年(17)

2008年(3)

分类: 系统运维

2010-02-01 14:47:41

一、nagios访问apache权限问题解决

nagios web界面提示
It appears as though you do not have permission to view information for any of the services you requested...
打开cgi.cfg配置文件,里面有个参数:
use_authentication=1
为了保障系统的安全性,nagios设置了这个参数,默认为1,改为0即可


1.
装了几次,换了几个版本的系统,脑袋都大了,终于解决了
nrpe在 ./configure时提示
checking for SSL... configure: error: Cannot find ssl libraries
 
把openssl-devel装上就可以了
 
2.
nagios web界面提示
It appears as though you do not have permission to view information for any of the services you requested...
打开cgi.cfg配置文件,里面有个参数:
use_authentication=1
为了保障系统的安全性,nagios设置了这个参数,默认为1,改为0即可。
 
 
3.
Service Commands 中Enable notifications for this service时报错
 
Sorry Dave, I can't let you do that...

It seems that you have chosen to not use the authentication functionality of the CGIs.

I don't want to be personally responsible for what may happen as a result of allowing unauthorized users to issue commands to Nagios,so you'll have to disable this safeguard if you are really stubborn and want to invite trouble.
Read the section on CGI authentication in the HTML documentation to learn how you can enable authentication and why you should want to.
 
修改cgi.cfg文件
修改use_authentication=1 (默认) ,如果没有添加,重启nagios服务。
 
4.
is not allowed to connect to this MySQL server
server(nagios服务端192.168.0.132)
#/usr/local/nagios/libexec/check_mysql -H 192.168.0.207 -u root -p xukixu
此时可能会出现错误:Host '192.168.0.132' is not allowed to connect to this MySQL server

因此只要在客户端做个mysql授权用户访问即可
2、client(客户端192.168.0.207)
#mysql -uroot -pabcd
mysql>grant all privileges on *.* to  identified by 'abcd;
mysql>flush privileges;
mysql>quit;
 
5.The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server
 
解决方案,确定安装下面的包。
libgd
libgd-devel
libpng
libpng-devel
libjpeg
libjpeg-devel
zlib
zlib-devel 
 
回到nagios安装时解压开的目录
 
Bash代码
  1. make devclean   
  2. ./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include    
  3. make all   
  4. make install   
  5. make install-init   
  6. make install-config   
  7. make install-commandmode   
  8. make install-webconf 

重新回到你的nagios的sbin目录查看几个cgi脚本有没有生成。

阅读(2067) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~