創(chuàng)新互聯(lián),專(zhuān)注為中小企業(yè)提供官網(wǎng)建設(shè)、營(yíng)銷(xiāo)型網(wǎng)站制作、自適應(yīng)網(wǎng)站建設(shè)、展示型網(wǎng)站制作、成都網(wǎng)站設(shè)計(jì)等服務(wù),幫助中小企業(yè)通過(guò)網(wǎng)站體現(xiàn)價(jià)值、有效益。幫助企業(yè)快速建站、解決網(wǎng)站建設(shè)與網(wǎng)站營(yíng)銷(xiāo)推廣問(wèn)題。
[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
不關(guān)閉SELinux或是永久性變更它的方法是讓CGI模塊在SELinux下指定強(qiáng)制目標(biāo)模式:
chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/ chcon -R -t httpd_sys_content_t /usr/local/nagios/share/