温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何解决Nagios apache访问权限问题

发布时间:2021-07-20 10:40:32 来源:亿速云 阅读:159 作者:chen 栏目:系统运维

这篇文章主要讲解了“如何解决Nagios apache访问权限问题”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“如何解决Nagios 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;

感谢各位的阅读,以上就是“如何解决Nagios apache访问权限问题”的内容了,经过本文的学习后,相信大家对如何解决Nagios apache访问权限问题这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI