+ Post New Thread
Results 1 to 13 of 13
*nix Thread, Nagios Problem in Technical; I am not in any way Linux savvy, so please be kind. I have been trying to install Nagios on ...
  1. #1

    Join Date
    Mar 2007
    Location
    Cambridge, UK & Reno, USA
    Posts
    339
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Nagios Problem

    I am not in any way Linux savvy, so please be kind.

    I have been trying to install Nagios on a machine running Fedora 6. Everything has installed fine. However, when it comes to the
    Code:
    make install-webconf
    part it says "No rule to make target 'install-webconf'.

    I have Apache installed, but can't find the conf.d directory that is talked about - which makes me wonder whether it has been installed correctly.

    Anybody have any ideas what I should do?

    Thanks.

  2. #2

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

    Re: Nagios Problem

    install-webconf was broken for me. I manually copied the useful bits of sample-config/nagios to a virtual host configuration in /etc/apache2/sites-avaliable/007-nagios.

    YMMV depending on your aptitude with apache configuration. However here is my Virtual host configuration for reference (Disclaimer, this is an Ubuntu Server so paths will vary).

    Code:
    <VirtualHost 10.73.24.34:80>
        ServerAdmin webmaster@carrhill.lancs.sch.uk
        DocumentRoot "/var/www/nagios.carrhill.lancs.sch.uk/htdocs"
        ServerName nagios.carrhill.lancs.sch.uk
        ErrorLog /var/log/apache2/nagios.carrhill.lancs.sch.uk-error_log
        CustomLog /var/log/apache2/nagios.carrhill.lancs.sch.uk-access_log common
    
    # BEGIN FOR NAGIOS
    
    ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin
    
    <Directory "/usr/local/nagios/sbin">
    
            Options ExecCGI
    
            AllowOverride AuthConfig
            Order Allow,Deny
            Allow From All
    
            AuthName "Nagios Access"
            AuthType Basic
            AuthUserFile /usr/local/nagios/etc/nagios.users
            require valid-user
    </Directory>
    # Where the HTML pages live
    
    Alias /nagios /usr/local/nagios/share
    
    <Directory /usr/local/nagios/share>
            Options FollowSymLinks
    
            AllowOverride AuthConfig
            Order Allow,Deny
            Allow From All
    
            AuthName "Nagios Access"
            AuthType Basic
            AuthUserFile /usr/local/nagios/etc/nagios.users
            require valid-user
    </Directory>
    # END FOR NAGIOS
    
    </VirtualHost>
    Astute readers will notice that this means that the document root is not where nagios lives. I solved this with a cheesy index.php redirect.

    Code:
    <?php
    header( 'Location: http://nagios.carrhill.lancs.sch.uk/nagios/' ) ;
    ?>

  3. #3

    Join Date
    Mar 2007
    Location
    Cambridge, UK & Reno, USA
    Posts
    339
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Nagios Problem

    Right, I'm lost - and have a horrible feeling that something may have gone horribly wrong with the installation (although the checks it did suggested that it hadn't).

    I can't find sample-config/nagios, but I can find a nagios.cfg file that, when opened, claims to be the "Sample main config file for Nagios" - am I right to assume this is the same thing.

    I also can't find a "sites-available" folder, which could either be a problem or could just show you how out-of-my-depth I am with this thing.

    On the plus side, I have also now found the conf.d folder - but make install-webconf was still not happy.

  4. #4

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

    Re: Nagios Problem

    I can't find sample-config/nagios
    It's the sample configuration for apache. It should be in wherever you extracted everything initally before compilation. If you can't find it, it doesn't matter. Just use the sections you need from my configuration.

    but I can find a nagios.cfg file that, when opened, claims to be the "Sample main config file for Nagios" - am I right to assume this is the same thing.
    No, thats the configuration file for nagios.

    I also can't find a "sites-available" folder, which could either be a problem or could just show you how out-of-my-depth I am with this thing.
    It's a debian thing. If your not running debian or a debian based derivative your apache configuration wont work that way.

  5. #5

    Join Date
    Mar 2007
    Location
    Cambridge, UK & Reno, USA
    Posts
    339
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Nagios Problem

    So, where does the virtual host code go if there is no sites-available folder?

  6. #6

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

    Re: Nagios Problem

    That depends how Fedora has laid out your configuration files.

  7. #7
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,009
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108

    Re: Nagios Problem

    Might be an idea you switch to Debian or Ubuntu. It's what most of us use and we will be able to give you more accurate instructions.

  8. #8

    Join Date
    Mar 2007
    Location
    Cambridge, UK & Reno, USA
    Posts
    339
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Nagios Problem

    That's OK - I've got it working. I copied Geoff's code (thanks). Made the necessary tweaks, and placed it in the conf.d folder as "nagios.conf" - and it worked!

    Now I've just got to configure the whole thing. Right now, I need a biscuit.

  9. #9

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,596
    Thank Post
    109
    Thanked 764 Times in 595 Posts
    Rep Power
    181

    Re: Nagios Problem

    @spdge: If you have the time to learn the template-based way of doing things, I would recommend this as it can make things a lot neater. If you don't know what I'm talking about... just ignore me

    I may compile some instructions for the wiki.

  10. #10

    Join Date
    Mar 2007
    Location
    Cambridge, UK & Reno, USA
    Posts
    339
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Nagios Problem

    Quote Originally Posted by Ric_
    I may compile some instructions for the wiki.
    You're right, I don't really know what you are talking about. I am just a windows user who wants to see what the hype is all about when it comes to Linux.

    I'm sure after a few more days of fiddling I will be a little bit more confident - but at the moment, it's like looking at Modern Art (it's there, people like it, but I just don't get it).

    So, as you have probably guessed, any help in this field would be great.

  11. #11

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,596
    Thank Post
    109
    Thanked 764 Times in 595 Posts
    Rep Power
    181

    Re: Nagios Problem

    I'll try to find the time to write some instructions tomorrow

  12. #12

    Join Date
    Jan 2012
    Location
    South Africa
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Cool Error : "No rule to make target 'install-webconf'."

    Its easy , just run the command under your nagios installation root, i.e where the extraction of the *.tar.gz took place

  13. #13

    X-13's Avatar
    Join Date
    Jan 2011
    Location
    /dev/null
    Posts
    9,095
    Thank Post
    592
    Thanked 1,953 Times in 1,351 Posts
    Blog Entries
    19
    Rep Power
    814

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 51
    Last Post: 10th November 2009, 05:23 AM
  2. Replies: 1
    Last Post: 24th October 2007, 08:49 PM
  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
  •