Jquery中文网 www.lfcgx.club
Jquery中文网 >  服务器技术  >  日志与监控  >  正文 nagios访问apache权限问题的解决方法

nagios访问apache权限问题的解决方法

发布时间:2014-07-20   编辑:www.lfcgx.club
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配置文件,里面有个?#38382;?
use_authentication=1
为了保障系统的安全性,nagios设置了这个?#38382;?#40664;认为1,改为0即可

1.
装了几次,换了几个版本的系统,脑袋?#21363;?#20102;,终于解决了
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配置文件,里面有个?#38382;?
use_authentication=1
为了保障系统的安全性,nagios设置了这个?#38382;?#40664;认为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
1.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授权?#27809;?#35775;问即可
2、client(客户端192.168.0.207)
#mysql -uroot -pabcd
mysql>grant all privileges on *.* to [email protected] 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代码
make devclean  
./configure --with-gd-lib=/usr/lib --with-gd-inc=/usr/include   
make all  
make install  
make install-init  
make install-config  
make install-commandmode  
make install-webconf
重新回到nagios的sbin目录查看几个cgi脚本有没有生成。

您可能感兴趣的文章:
nagios访问apache权限问题的解决方法
nagios使用的问题解决
win2003 asp.net权限设置问题及解决方法
mysql授权远程访问的例子
Nagios statusmap.cgi找不到的解决方法
Nagios插件编写与调试
su: /bin/bash: Permission denied错误的解决方法
Can't connect to local MySQL server through socket 问题的解决方法
配置nagios监控mysql
nginx+php-fpm页面显示空白的解决方法

[关闭]
矮木头走势图
全天北京pk赛车计划 精选24码期期准87654 澳洲幸运10 开奖记录 开奖直播 安徽快三在线计划网站 江苏快3app免费版下载 重庆时时开奖时间调整通知 三肖六码3肖6码l特 7彩骗局 重庆时时彩 成都现在做死人道士赚钱吗 街机海王捕鱼下载手机版 刷夜间袭击战图赚钱 河北快三开奖结果公告 彩票开奖查询网站 facebook点击赚钱 35选7开奖结果