Jump to content

Recommended Posts

Posted

I've decided to be brave and use ubuntu for something, being brought up on windows i thought it was about time i tried somethin a bit adventureus. Now i'm starting to regret it.

 

I have installed ubuntu on a spare box and decided to put nagios on it for monitoring. everything seemed to go very well, until i try to log in to the web interface. I type

http://localhost/nagios

in the browser as the nagios guide tells me to, it then asks for a username and password, which is nagiosadmin and the password i created earlier, but instead of going to what I would expect to see, the home page, i get an error message telling me that I don't have permission to view nagios on this server.

 

help, someone please tell me what i've done wrong. All i did was follow the quick start quide for ubuntu from the official nagios documentation, but it doesn't show the home page, just a 403 error.

 

Now i'm getting scared, ubuntu is something i've not tried before and all the commands are different from windows so I find myself using google a lot.

Posted

I'm in the same boat as you as I know a little about linux. But I followed the quickstart quide for Fedora and I managed to get it up and running. I know Ubuntu as much stricter permissions than other distros.

I'm sure someone who knows ubuntu will be along shortly.

  • Thanks 1
Posted

Chances are that you just have the file permissions wrong on the nagios directory off your webserver document root.

 

Try doing:

 

chown -R www nagios

 

from in the webserver document root. (You might want to check that the webserver runs as user www - you can check that with ps -ef )

  • Thanks 1
Posted
apache runs as 'www-data' on ubuntu. However nagios should run as 'nagios'. :)

 

Fair enough re: www-data. No idea what nagios (oh, it's so much effort to go to google) is, but if it's hosted on an apache webserver (presumably), then regardless of the ownership of the files, apache will run as whatever user you have specified in httpd.conf (i.e. www-data on ubuntu as above), and permissions will need to be correct to read (and execute in the case of directories) any web pages that you hope to serve up. CGI's a whole other matter.

Posted (edited)

I found my httpd.conf file in the apaces2 dir. hopefully that is what you are talking about.

 

Here is what it says:

 

# This is here for backwards compatability reasons and to support
#  installing 3rd party modules directly via apxs2, rather than
#  through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so

 

If that's not my webserver config file what is it called and where will it be?

Edited by dezt
Posted

Forget all my problems from before guys, i've formatted and installed ubuntu 7.10 server and managed to breeze through the install for nagios with it working with no problems. Thanks to everyone who gave me advice.

 

dezt

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...