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