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 thepart it says "No rule to make target 'install-webconf'.Code:make 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.
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).
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:<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>
Code:<?php header( 'Location: http://nagios.carrhill.lancs.sch.uk/nagios/' ) ; ?>
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.
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.I can't find sample-config/nagios
No, thats the configuration file for 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.
It's a debian thing. If your not running debian or a debian based derivative your apache configuration wont work that way.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.
So, where does the virtual host code go if there is no sites-available folder?
That depends how Fedora has laid out your configuration files.
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.
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.

@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.
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.Originally Posted by Ric_
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.

I'll try to find the time to write some instructions tomorrow![]()
Its easy , just run the command under your nagios installation root, i.e where the extraction of the *.tar.gz took place

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