/nagioslogserver was not found

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

/nagioslogserver was not found

Post by rlinux57 »

Getting error while opening this address: http://Server-IP/nagioslogserver/

The requested URL /nagioslogserver was not found on this server.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /nagioslogserver was not found

Post by eloyd »

How did you install NLS?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: /nagioslogserver was not found

Post by rlinux57 »

I've installed manually.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /nagioslogserver was not found

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: /nagioslogserver was not found

Post 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>
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /nagioslogserver was not found

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: /nagioslogserver was not found

Post 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
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /nagioslogserver was not found

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: /nagioslogserver was not found

Post 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.
User avatar
eloyd
Cool Title Here
Posts: 2129
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /nagioslogserver was not found

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoydI'm a Nagios Fanatic!
Locked