Page 1 of 2

/nagioslogserver was not found

Posted: Wed Jan 21, 2015 10:26 am
by rlinux57
Getting error while opening this address: http://Server-IP/nagioslogserver/

The requested URL /nagioslogserver was not found on this server.

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 10:35 am
by eloyd
How did you install NLS?

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 11:18 am
by rlinux57
I've installed manually.

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 11:27 am
by eloyd
I am making a lot of assumptions here, but assuming you installed on a CentOS type server, running Apache, you should have a file called /etc/httpd/conf.d/nagioslogserver. Can you please post the contents of that file? If you do not have that file, then you are in a Debian style server, and it will be located in /etc/apache2/conf.d. If it's not there, then most likely this is the root of your problem.

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 11:47 am
by rlinux57
Exactly centOS... Below is the file contect as per your direction.

Alias /nagioslogserver "/var/www/html/nagioslogserver/www/"

<Directory "/var/www/html/nagioslogserver/www/">
# SSLRequireSSL
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 11:52 am
by eloyd
Good, that helps!

Have you rebooted and/or restarted Apache since installing NLS? I'm grasping at straws here because ./fullinstall should take care of these sorts of things. So we're going to debug a bit.

Try this:

Code: Select all

tail -f /var/log/httpd/access_log /var/log/httpd/error_log &
service httpd restart
Then, while watching those logs on your screen, go to your http://<server>/nagioslogserver and see what happens on the logs.

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 11:58 am
by rlinux57
I've restarted apache after installing NLS.

Below is the output of: tail -f /var/log/httpd/access_log /var/log/httpd/error_log &

==> /var/log/httpd/error_log <==
[Wed Jan 21 15:28:20 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
[Wed Jan 21 15:28:20 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Jan 21 15:28:20 2015] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 21 15:28:20 2015] [notice] Digest: done
[Wed Jan 21 15:28:20 2015] [notice] Apache/2.2.15 (Unix) DAV/2 configured -- resuming normal operations
[Wed Jan 21 15:29:18 2015] [notice] caught SIGTERM, shutting down

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 12:03 pm
by eloyd
I'm only seeing the error log. Is there nothing in /var/log/httpd/access_log? If so, then you may be looking at a firewall issue and no requests are making it to your server. You can try "service iptables stop" to see if that helps.

Do you have any valid web accesses to this server?

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 12:14 pm
by rlinux57
There's nothing in /var/log/httpd/access_log. I've stop the iptables but still getting error.
Yes, it's my vps, i've a valid access.

Re: /nagioslogserver was not found

Posted: Wed Jan 21, 2015 12:17 pm
by eloyd
It's looking like your Apache setup is not working properly. If you just go to http://<ip address> what do you get on your browser?