Page 1 of 2

Installing help

Posted: Tue Oct 08, 2013 6:51 am
by arjantent
Hello,

Im an internship in the company, they asked to install nagios. They already had an version, but it came out in 2010, so we agreed that i had should first get an new version. So i deleted the old stuff, and following the guide to install the new version ( 4.0 ). But at certain point the guide ask me to do this:

/etc/init.d/apache2 reload

But when i do that i get this message:
apache2: Syntax error on line 234 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf.d/nagios3.conf: No such file or directory

The nagios3.conf is the file of the old system... even deleted that one now. But how to tell him he has to go the nagios.conf

Hope you guys understand my question.

Thanks in advance,

Arjan

Re: Installing help

Posted: Tue Oct 08, 2013 9:29 am
by slansing
So i deleted the old stuff
Are you trying to fully compile nagios core 4.0 on an old nagios server that is half uninstalled? This is not a very good idea, you should have upgraded from the old version and not tried to remove it. Did you follow a specific guide for uninstalling, if so link it please. At this point it may be faster to install core on a freshly provisioned system. If this is not a possibility we can try to help you through this thread.

Re: Installing help

Posted: Wed Oct 09, 2013 1:27 am
by arjantent
Yes :p..
I followed this guide http://nagios.sourceforge.net/docs/nagi ... buntu.html

Would be nice if you can help me through this thread. I think im very close, just need to restart apache and the last few other things..

Re: Installing help

Posted: Wed Oct 09, 2013 2:16 am
by arjantent
And also getting this error : Can't open /etc/rc.d/init.d/functions after i want to start it :p

Re: Installing help

Posted: Wed Oct 09, 2013 12:07 pm
by abrist
yep. The init script for debian derivatives is b-ro-ken! There are a few different work arounds for the time being, see the following thread:
http://support.nagios.com/forum/viewtop ... n&start=20

Re: Installing help

Posted: Thu Oct 10, 2013 4:00 am
by arjantent
Alright, thnx. And how to restart apache ?

Re: Installing help

Posted: Thu Oct 10, 2013 10:44 am
by abrist

Code: Select all

service apache2 restart

Re: Installing help

Posted: Mon Oct 21, 2013 2:17 am
by arjantent
I know, but that still didnt worked out. Like ive written few posts before.

Maybe its better to start all over? And first delete all the files in a good way?

Re: Installing help

Posted: Mon Oct 21, 2013 5:38 am
by rhassing
Arjan,
Please check if there is a nagios.conf in /etc/apache2/conf.d/

edit /etc/apache2/apache2.conf and change the line with nagios3.conf and add nagios.conf (if it exists in /etc/apache2/conf.d/).

Re: Installing help

Posted: Mon Oct 21, 2013 11:42 am
by sreinhardt
Thanks rhassing, I would concur that between those places you should find a reference to the old install that needs to be removed!