nagios部分页面无法显示-成都快上网建站

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部分页面无法显示
分享URL:http://kswjz.com/article/gppdgj.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流