eagleshi 发表于 2019-1-16 11:13:10

Permission denied: exec of '/usr/lib/nagios/cgi/statusmap.cgi' failed

  Sometimes you run into this error when trying to access the web interface.Usually the ToC on the side will load, but any link gives a 500 error page. Inmy case, this is what did the trick.
  Example of errors in the http error_log:
   (13)Permissiondenied: exec of '/usr/lib/nagios/cgi/statusmap.cgi' failed, referer: http://192.168.1.21/nagios/side.html
   Premature end of scriptheaders: statusmap.cgi, referer: http://192.168.1.21/nagios/side.html
   (13)Permission denied: execof '/usr/lib/nagios/cgi/status.cgi' failed, referer: http://192.168.1.21/nagios/side.html
  Use the following to fix:
  
  chcon -Rsystem_u:object_r:httpd_sys_script_exec_t /usr/local/nagios/sbin

页: [1]
查看完整版本: Permission denied: exec of '/usr/lib/nagios/cgi/statusmap.cgi' failed