您好,登錄后才能下訂單哦!
nagios 出現nagios Permission denied類似的報錯,具體報錯我貼在下面,這樣的原因就是selinux沒關。關閉即可
1、臨時關閉(不用重啟機器):
setenforce 0 ##設置SELinux 成為permissive模式
##setenforce 1 設置SELinux 成為enforcing模式
2、修改配置文件需要重啟機器:
修改/etc/selinux/config 文件
將SELINUX=enforcing改為SELINUX=disabled
重啟機器即可
Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer:[Thu Jun 01 23:59:34 2017]
[error] [client 192.168.226.1] (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://192.168.226.128/nagios/side.php
[Thu Jun 01 23:59:34 2017] [error] [client 192.168.226.1] Premature end of script headers: status.cgi, referer: http://192.168.226.128/nagios/side.php
[Thu Jun 01 23:59:36 2017] [error] [client 192.168.226.1] (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://192.168.226.128/nagios/side.php
[Thu Jun 01 23:59:36 2017] [error] [client 192.168.226.1] Premature end of script headers: status.cgi, referer: http://192.168.226.128/nagios/side.php
[Thu Jun 01 23:59:37 2017] [error] [client 192.168.226.1] (13)Permission denied: exec of '/usr/local/nagios/sbin/statusmap.cgi' failed, referer: http://192.168.226.128/nagios/side.php
[Thu Jun 01 23:59:37 2017] [error] [client 192.168.226.1] Premature end of script headers: statusmap.cgi, referer: http://192.168.226.128/nagios/side.php
[Fri Jun 02 00:04:16 2017] [notice] caught SIGTERM, shutting down
[Fri Jun 02 00:04:31 2017] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。