Page 1 of 1

Page not found

Posted: Thu Feb 27, 2014 7:38 am
by pankajky
I have installed Nagios according to http://assets.nagios.com/downloads/nagi ... Source.pdf
Now when i am trying to access on browser i am getting an error

Page not found

The page you were trying to access doesn't exist or has been removed.

Back

Please have a look at attachment for more details.

Re: Page not found

Posted: Thu Feb 27, 2014 10:26 am
by tmcdonald
Please run the following and post the output:

Code: Select all

tail -20 /var/log/httpd/error_log
assuming you are on a CentOS or RHEL system.

And did you set up any sort of framework on this server? Redmine is a fairly popular Ruby framework that is probably routing all your requests.

Re: Page not found

Posted: Thu Feb 27, 2014 11:37 pm
by pankajky
Yes I am using redmine also on the same server, this is Ubuntu server 12.04LTS. If I am using "http://192.168.0.32/nagios/index.php" nagios page is showing but if I am "http://192.168.0.32/nagios" i am getting page not found as earlier i have mentioned.
please help me now how to get rid of this error.

Re: Page not found

Posted: Fri Feb 28, 2014 1:58 am
by pankajky
hisp@HISP-HDC:~$ tail -20 /var/log/apache2/error.log
[Thu Feb 27 16:28:31 2014] [notice] caught SIGTERM, shutting down
[Thu Feb 27 16:28:32 2014] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
Storing outgoing emails configuration in config/email.yml is deprecated. You should now store it in config/configuration.yml using the email_delivery setting.
[Thu Feb 27 18:12:49 2014] [notice] caught SIGTERM, shutting down
[Thu Feb 27 18:12:50 2014] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
Storing outgoing emails configuration in config/email.yml is deprecated. You should now store it in config/configuration.yml using the email_delivery setting.
[Fri Feb 28 12:20:50 2014] [notice] caught SIGTERM, shutting down
[Fri Feb 28 12:20:51 2014] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 28 12:21:08 2014] [error] [client 192.168.0.129] File does not exist: /var/www/redmine
[Fri Feb 28 12:22:19 2014] [notice] caught SIGTERM, shutting down
[Fri Feb 28 12:22:20 2014] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 28 12:22:32 2014] [error] [client 192.168.0.129] File does not exist: /var/www/redmine
[Fri Feb 28 12:22:32 2014] [error] [client 192.168.0.129] File does not exist: /var/www/favicon.ico
[Fri Feb 28 12:22:37 2014] [error] [client 192.168.0.129] File does not exist: /var/www/redmine
[Fri Feb 28 12:22:48 2014] [error] [client 192.168.0.129] File does not exist: /var/www/redmine
[Fri Feb 28 12:24:32 2014] [notice] caught SIGTERM, shutting down
[Fri Feb 28 12:24:33 2014] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations
[Fri Feb 28 12:24:37 2014] [error] [client 192.168.0.129] File does not exist: /var/www/redmine
[Fri Feb 28 12:26:27 2014] [notice] caught SIGTERM, shutting down
[Fri Feb 28 12:26:28 2014] [notice] Apache/2.2.22 (Ubuntu) Phusion_Passenger/2.2.11 PHP/5.3.10-1ubuntu3.9 with Suhosin-Patch configured -- resuming normal operations

Re: Page not found

Posted: Fri Feb 28, 2014 12:26 pm
by tmcdonald
It looks like Redmine changed the defaults that Nagios Core relies on to run. My guess is they have a rule in place that passes off URL handling to Redmine, and since it doesn't know what nagios is it tries to find a Redmine page called nagios and fails with a 404. Unfortunately changing these values are likely going to make Redmine fail somewhere along the line.

Would it be possible for you to have Nagios Core running on a dedicated server?