dezt (13th March 2008)
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 typein 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.Code:http://localhost/nagios
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.

Did you follow the quick start guide on there site?
yep, that's the one, i even went as far as using ubuntu 6.10 desktop like they did.

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.
dezt (13th March 2008)
Sounds like a permissions problem. probably with the CGI files. Did you put them in the webservers cgi directory?
dezt (13th March 2008)
Geoff, your talking to a novice here, how do i do that?????
Post your web server config.
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 )
dezt (13th March 2008)
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.
Nagios runs entirely from CGIs.
I found my httpd.conf file in the apaces2 dir. hopefully that is what you are talking about.
Here is what it says:
If that's not my webserver config file what is it called and where will it be?Code:# 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
Last edited by dezt; 12th March 2008 at 04:27 PM.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)