RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
nagios部分页面无法显示

nagios 部分页面无法显示

创新互联,专注为中小企业提供官网建设、营销型网站制作、自适应网站建设、展示型网站制作、成都网站设计等服务,帮助中小企业通过网站体现价值、有效益。帮助企业快速建站、解决网站建设与网站营销推广问题。

[Wed Jan 28 13:26:51 2015] [error] [client 192.168.157.1] (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://192.168.157.100/nagios/side.php

[Wed Jan 28 13:26:51 2015] [error] [client 192.168.157.1] Premature end of script headers: status.cgi, referer: http://192.168.157.100/nagios/side.php

[Wed Jan 28 13:26:52 2015] [error] [client 192.168.157.1] (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://192.168.157.100/nagios/side.php

检查CGI文件配置

[root@nagios local]# cat /usr/local/nagios/etc/cgi.cfg | grep nagiosadmin

authorized_for_system_information=nagiosadmin

authorized_for_configuration_information=nagiosadmin

authorized_for_system_commands=nagiosadmin

authorized_for_all_services=nagiosadmin

authorized_for_all_hosts=nagiosadmin

authorized_for_all_service_commands=nagiosadmin

authorized_for_all_host_commands=nagiosadmin

[root@nagios usr]# getenforce

Enforcing

Refer

http://blog.sina.com.cn/s/blog_59d2265901015uos.html

不关闭SELinux或是永久性变更它的方法是让CGI模块在SELinux下指定强制目标模式:

chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ chcon -R -t httpd_sys_content_t /usr/local/nagios/share/


当前名称:nagios部分页面无法显示
当前网址:http://cqwzjz.cn/article/gppdgj.html