Installing help
Installing help
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
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
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.So i deleted the old stuff
Re: Installing help
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..
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
And also getting this error : Can't open /etc/rc.d/init.d/functions after i want to start it :p
Re: Installing help
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
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.
"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.
Re: Installing help
Alright, thnx. And how to restart apache ?
Re: Installing help
Code: Select all
service apache2 restartFormer 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.
"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.
Re: Installing help
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?
Maybe its better to start all over? And first delete all the files in a good way?
Re: Installing help
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/).
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


-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Installing help
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.