Nagios apache访问权限问题解决方案

系统 Linux
俗话说:工欲善其事,必先利其器.要做好系统管理,使自己的工作更轻松更有效的, Apache应该是我们最常用的部署了

Nagios web界面提示Apache应该是我们最常用的部署了,它可以被弄得很复杂,但在Nagios apache这个平台上,我们只需要简单的功能即可,为了验证用户,我们稍微加一点修改就行了。

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即可几则Nagios apache的问题处理装了几次,换了几个版本的系统,脑袋都大了,终于解决了
nrpe在 ./configure时提示
checking for SSL... configure: error: Cannot find ssl libraries
把openssl-devel装上就可以了

Nagios apacheweb界面提示
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即可。

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服务。


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授权用户访问即可

Nagios client(客户端192.168.0.207)
#mysql -uroot -pabcd
mysql>grant all privileges on *.* to
root@192.168.0.132
identified by 'abcd;
mysql>flush privileges;
mysql>quit;

【编辑推荐】

  1. Nagios飞信linux下免费短信提示配置
  2. IIS服务器中不能与apache共用的问题
  3. Linux系统的Nagios网络管理模块的实现
  4. IIS 7.0是否成为了Apache的掘墓者
  5. 消息报道IIS 6***超过Apache
     
责任编辑:chenqingxiang 来源: it168
相关推荐

2010-07-30 12:40:00

Flex跨域访问

2010-02-24 10:55:01

WCF跨域访问

2012-05-09 10:08:41

跨机房

2010-03-30 16:04:34

Linux Nginx

2010-09-27 13:14:42

JVM内存限制

2010-05-20 11:06:01

IIS服务器

2009-03-18 09:26:23

Winform多线程C#

2010-10-08 13:09:38

JavaScript数

2010-02-06 14:54:11

C++指针漂移

2011-03-23 16:38:28

LAMP

2010-04-28 19:24:17

Hp unix

2010-08-04 10:20:30

Flex组件开发

2010-04-06 09:33:37

CentOS系统

2010-09-07 09:08:03

DIV弹出层

2010-10-09 12:58:59

JS脚本兼容

2021-01-13 10:18:29

SocketNetty粘包

2010-09-15 14:14:29

IE6position

2010-05-04 11:30:29

Oracle汉字长度

2010-08-26 08:45:32

margin:0pxa

2010-02-23 17:49:56

WCF传输大数据
点赞
收藏

51CTO技术栈公众号