溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

nagios 部分頁面無法顯示

發(fā)布時(shí)間:2020-07-23 17:41:22 來源:網(wǎng)絡(luò) 閱讀:1190 作者:lqx010101 欄目:移動(dòng)開發(fā)

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


不關(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/


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI