+ Post New Thread
Results 1 to 14 of 14
*nix Thread, nagios error in Technical; I've decided to be brave and use ubuntu for something, being brought up on windows i thought it was about ...
  1. #1
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,030
    Thank Post
    157
    Thanked 60 Times in 48 Posts
    Rep Power
    30

    nagios error

    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
    Code:
    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.

  2. #2

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,412
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194
    Did you follow the quick start guide on there site?

  3. #3
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,030
    Thank Post
    157
    Thanked 60 Times in 48 Posts
    Rep Power
    30
    yep, that's the one, i even went as far as using ubuntu 6.10 desktop like they did.

  4. #4

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,412
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194
    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.

  5. Thanks to rush_tech from:

    dezt (13th March 2008)

  6. #5

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,807
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Sounds like a permissions problem. probably with the CGI files. Did you put them in the webservers cgi directory?

  7. Thanks to Geoff from:

    dezt (13th March 2008)

  8. #6
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,030
    Thank Post
    157
    Thanked 60 Times in 48 Posts
    Rep Power
    30
    Geoff, your talking to a novice here, how do i do that?????

  9. #7

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,807
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Post your web server config.

  10. #8

    Join Date
    Mar 2008
    Posts
    24
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    14

    Permissions

    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 )

  11. Thanks to ajtaylor from:

    dezt (13th March 2008)

  12. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,807
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    apache runs as 'www-data' on ubuntu. However nagios should run as 'nagios'.

  13. #10

    Join Date
    Mar 2008
    Posts
    24
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    14
    Quote Originally Posted by Geoff View Post
    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.

  14. #11

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,807
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224
    Nagios runs entirely from CGIs.

  15. #12

    Join Date
    Mar 2008
    Posts
    24
    Thank Post
    0
    Thanked 5 Times in 4 Posts
    Rep Power
    14
    Quote Originally Posted by Geoff View Post
    Nagios runs entirely from CGIs.
    Oh right, I'll shut up then!

  16. #13
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,030
    Thank Post
    157
    Thanked 60 Times in 48 Posts
    Rep Power
    30
    I found my httpd.conf file in the apaces2 dir. hopefully that is what you are talking about.

    Here is what it says:

    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
    If that's not my webserver config file what is it called and where will it be?
    Last edited by dezt; 12th March 2008 at 03:27 PM.

  17. #14
    dezt's Avatar
    Join Date
    Dec 2005
    Location
    Lancs
    Posts
    1,030
    Thank Post
    157
    Thanked 60 Times in 48 Posts
    Rep Power
    30
    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

SHARE:
+ Post New Thread

Similar Threads

  1. Nagios - MRTG
    By rush_tech in forum *nix
    Replies: 5
    Last Post: 13th July 2010, 04:27 PM
  2. Replies: 51
    Last Post: 10th November 2009, 05:23 AM
  3. Nagios Display
    By plexer in forum How do you do....it?
    Replies: 4
    Last Post: 17th July 2007, 07:43 PM
  4. Ubuntu Nagios
    By plexer in forum How do you do....it?
    Replies: 2
    Last Post: 10th May 2007, 09:21 PM
  5. Loving Nagios!
    By Ric_ in forum *nix
    Replies: 33
    Last Post: 22nd October 2006, 10:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •