sakko51150 发表于 2019-1-13 12:34:19

nagios 部分页面无法显示

http://s3.运维网.com/wyfs02/M01/59/22/wKiom1TIdyGCYJJJAAIfOH4BxDM733.jpg
   (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://192.168.157.100/nagios/side.php
   Premature end of script headers: status.cgi, referer: http://192.168.157.100/nagios/side.php
   (13)Permission denied: exec of '/usr/local/nagios/sbin/status.cgi' failed, referer: http://192.168.157.100/nagios/side.php
  

  检查CGI文件配置
  # 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
  

  # 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/
  




页: [1]
查看完整版本: nagios 部分页面无法显示