IF Nagios Web Page link not working.

– Check  “/var/log/httpd/error_log”. If log look like

[Tue Jun 24 08:00:18 2014] [error] [client 192.168.43.1] Premature end of script headers: status.cgi, referer: http://XXX.XXX.XXX.XXX/nagios/side.php
[Tue Jun 24 08:02:22 2014] [error] [client 192.168.43.1] (13)Permission denied: exec of ‘/usr/local/nagios/sbin/status.cgi’ failed, referer: http://XXX.XXX.XXX.XXX/nagios/side.php
[Tue Jun 24 08:02:22 2014] [error] [client 192.168.43.1] Premature end of script headers: status.cgi, referer: http://XXX.XXX.XXX.XXX/nagios/side.php
[Tue Jun 24 08:02:24 2014] [error] [client 192.168.43.1] (13)Permission denied: exec of ‘/usr/local/nagios/sbin/status.cgi’ failed, referer: http://XXX.XXX.XXX.XXX/nagios/side.php

then correct  selinux permission on nagios folder.

chcon -R -t httpd_sys_content_t  /usr/local/nagios

Leave a Reply