I've been banging my ahead against a fresh install of Nagios Core for most of today and simply can't find a solution. There are lots of threads on this issue, but I can't seem to find a solution that works.
Situation:
Nagios 4.0.8 installed from source on Ubuntu 14.04 with Plesk
Nagios process seems to run fine.
Config check returns no errors. (Tried both default config files and my old ones.)
Webinterface loads, but returns HTTP 500 on all relevant pages. Home shows "Unable to get process status".
Apache error log shows the following:
Code: Select all
[cgi:error] [pid 31659] [client myip:63760] End of script output before headers: status.cgiCode: Select all
myip - nagiosadmin [10/Jun/2015:20:02:40 +0200] "GET /nagios/cgi-bin/status.cgi?host=all HTTP/1.1" 500 764 "http://mydomain/nagios/side.php" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36"
SElinux does not seem to be installed.
ls -la /usr/local/nagios/share/ :
Code: Select all
total 100
drwxrwxr-x 11 nagios nagios 4096 Jun 10 19:02 .
drwxr-xr-x 9 root root 4096 Jun 10 17:15 ..
-rw-rw-r-- 1 nagios nagios 576 Jun 10 19:02 config.inc.php
drwxrwxr-x 2 nagios nagios 4096 Jun 10 19:02 contexthelp
drwxrwxr-x 3 nagios nagios 4096 Jun 10 17:03 docs
drwxrwxr-x 3 nagios nagios 4096 Jun 10 19:02 images
drwxrwxr-x 3 nagios nagios 4096 Jun 10 19:02 includes
-rw-rw-r-- 1 nagios nagios 1628 Jun 10 19:02 index.php
drwxrwxr-x 2 nagios nagios 4096 Jun 10 19:02 js
-rw-rw-r-- 1 nagios nagios 1176 Jun 10 19:02 jsonquery.html
drwxr-xr-x 4 nagios nagios 4096 Jun 10 17:15 locale
-rw-rw-r-- 1 nagios nagios 8697 Jun 10 19:02 main.php
drwxrwxr-x 2 nagios nagios 4096 Jun 10 17:03 media
-rw-rw-r-- 1 nagios nagios 26 Jun 10 19:02 robots.txt
-rw-rw-r-- 1 nagios nagios 656 Jun 10 19:02 rss-corebanner.php
-rw-rw-r-- 1 nagios nagios 1064 Jun 10 19:02 rss-corefeed.html
-rw-rw-r-- 1 nagios nagios 895 Jun 10 19:02 rss-corefeed.php
-rw-rw-r-- 1 nagios nagios 540 Jun 10 19:02 rss-newsfeed.html
-rw-rw-r-- 1 nagios nagios 1064 Jun 10 19:02 rss-newsfeed.php
-rw-rw-r-- 1 nagios nagios 6009 Jun 10 19:02 side.php
drwxrwxr-x 2 nagios nagios 4096 Jun 10 17:03 ssi
drwxrwxr-x 2 nagios nagios 4096 Jun 10 19:02 stylesheets
Code: Select all
total 4364
drwxrwxr-x 2 nagios nagios 4096 Jun 10 19:02 .
drwxr-xr-x 9 root root 4096 Jun 10 17:15 ..
-rwxrwxr-x 1 nagios nagios 320576 Jun 10 19:02 archivejson.cgi
-rwxrwxr-x 1 nagios nagios 301880 Jun 10 19:02 avail.cgi
-rwxrwxr-x 1 nagios nagios 300296 Jun 10 19:02 cmd.cgi
-rwxrwxr-x 1 nagios nagios 273136 Jun 10 19:02 config.cgi
-rwxrwxr-x 1 nagios nagios 314136 Jun 10 19:02 extinfo.cgi
-rwxrwxr-x 1 nagios nagios 244504 Jun 10 19:02 history.cgi
-rwxrwxr-x 1 nagios nagios 240400 Jun 10 19:02 notifications.cgi
-rwxrwxr-x 1 nagios nagios 318272 Jun 10 19:02 objectjson.cgi
-rwxrwxr-x 1 nagios nagios 236264 Jun 10 19:02 outages.cgi
-rwxrwxr-x 1 nagios nagios 240376 Jun 10 19:02 showlog.cgi
-rwxrwxr-x 1 nagios nagios 314160 Jun 10 19:02 status.cgi
-rwxrwxr-x 1 nagios nagios 316416 Jun 10 19:02 statusjson.cgi
-rwxrwxr-x 1 nagios nagios 256816 Jun 10 19:02 statuswml.cgi
-rwxrwxr-x 1 nagios nagios 240400 Jun 10 19:02 statuswrl.cgi
-rwxrwxr-x 1 nagios nagios 265024 Jun 10 19:02 summary.cgi
-rwxrwxr-x 1 nagios nagios 252736 Jun 10 19:02 tac.cgi
Code: Select all
nagios:x:10001:
nagcmd:x:10002:nagios,www-dataCode: Select all
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
Code: Select all
total 8
drwxrwsr-x 2 nagios nagcmd 4096 Jun 10 19:06 .
drwxrwxr-x 5 nagios nagios 4096 Jun 10 20:22 ..
prwxrwx--- 1 nagios nagcmd 0 Jun 10 19:06 nagios.cmd
srwxrwx--- 1 nagios nagcmd 0 Jun 10 19:06 nagios.qhCode: Select all
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>Any ideas would be very welcome.