Installing help

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Installing help

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Installing help

Post 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.
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Re: Installing help

Post 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..
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Re: Installing help

Post by arjantent »

And also getting this error : Can't open /etc/rc.d/init.d/functions after i want to start it :p
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installing help

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Re: Installing help

Post by arjantent »

Alright, thnx. And how to restart apache ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Installing help

Post by abrist »

Code: Select all

service apache2 restart
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
arjantent
Posts: 10
Joined: Tue Oct 08, 2013 6:44 am

Re: Installing help

Post 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?
User avatar
rhassing
Posts: 416
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Installing help

Post 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/).
Rob Hassing
Image
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Installing help

Post 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!
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked