nagios Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer:

发布时间:2020-08-02 14:32:33 作者:tanp398
来源:网络 阅读:1106

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
 

推荐阅读:
  1. php中的mvc模式介绍
  2. php中的对象关系映射是什么

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

nagios permission denied

上一篇:常用的一些触屏操作(UITouch)

下一篇:.NET能开发出什么样的APP?盘点通过Smobiler开发的APP

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》