Core 3.5.1 Error: Could not read object configuration data!
Posted: Wed Oct 09, 2013 4:34 am
Centos 6.4 64bit
SElinux disabled
Running Nginx with following rules:
# id nagios
uid=497(nagios) gid=498(nagios) groups=498(nagios)
# id nginx
uid=498(nginx) gid=499(nginx) groups=499(nginx),498(nagios)
-------------
tried to run my custom perl script in "/usr/lib64/nagios/cgi-bin/" - OK
-------------
# nagios -v /etc/nagios/nagios.cfg
Things look okay - No serious problems were detected during the pre-flight check
Home page is OK:
http://img96.imageshack.us/img96/8060/2xy9.png
But when clicking on other menu items with "Whoops":
http://img268.imageshack.us/img268/1224/0pbs.png
No error messages in logs either nginx or nagios
Any clues?
SElinux disabled
Running Nginx with following rules:
Code: Select all
location /nagios {
alias /usr/share/nagios/html;
index index.php;
auth_basic "Nagios";
auth_basic_user_file /etc/nagios/passwd;
}
location ~ ^/nagios/(.*\.php)$ {
root /usr/share/nagios/html/;
auth_basic "Nagios";
auth_basic_user_file /etc/nagios/passwd;
rewrite ^/nagios/(.*) /$1 break;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME /usr/share/nagios/html$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
location ~ ^/nagios/cgi-bin/(.*\.cgi)$ {
gzip off;
root /usr/lib64/nagios/cgi-bin/;
auth_basic "Nagios";
auth_basic_user_file /etc/nagios/passwd;
rewrite ^/nagios/cgi-bin/(.*) /$1 break;
include /etc/nginx/fastcgi_params;
fastcgi_param AUTH_USER $remote_user;
fastcgi_param REMOTE_USER $remote_user;
fastcgi_param SCRIPT_FILENAME /usr/lib64/nagios/cgi-bin$fastcgi_script_name;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
location ~ ^/nagios/(.*\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf))$ {
root /usr/share/nagios/html/;
rewrite ^/nagios/(.*) /$1 break;
access_log off; expires max;
}
uid=497(nagios) gid=498(nagios) groups=498(nagios)
# id nginx
uid=498(nginx) gid=499(nginx) groups=499(nginx),498(nagios)
-------------
tried to run my custom perl script in "/usr/lib64/nagios/cgi-bin/" - OK
-------------
# nagios -v /etc/nagios/nagios.cfg
Code: Select all
Nagios Core 3.5.1
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-30-2013
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config directory '/etc/nagios/servers'...
Processing object config file '/etc/nagios/servers/server.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 11 services.
Checking hosts...
Checked 2 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Home page is OK:
http://img96.imageshack.us/img96/8060/2xy9.png
But when clicking on other menu items with "Whoops":
http://img268.imageshack.us/img268/1224/0pbs.png
No error messages in logs either nginx or nagios
Any clues?