Nagios is Frozen
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios is Frozen
OH, so you have core 4 from source, and core 3.5 from rpm. I would highly suggest removing the core 3.5 rpm, then reinstalling (not upgrading) from scratch, short of plugins and configurations, you want to keep those and put them back in /usr/local/nagios/...
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.
Re: Nagios is Frozen
Thankyou, but i dont have any idea how to reinstall the core without upgrading it . i am a very new user of terminal and linux so please be kind in writing instructions.
i followed this step by step procedure to install nagios http://www.tecmint.com/install-nagios-in-linux/ and for upgrading it http://nagios.sourceforge.net/docs/3_0/upgrading.html
i will be very thankful to you
have a nice day and weekend
i followed this step by step procedure to install nagios http://www.tecmint.com/install-nagios-in-linux/ and for upgrading it http://nagios.sourceforge.net/docs/3_0/upgrading.html
i will be very thankful to you
have a nice day and weekend
Re: Nagios is Frozen
First of all, back up your /usr/local/nagios/etc/ directory with the following:
run as the root user.
Then you should be able to run something like "yum remove nagios*" to uninstall the one that you installed via rpm. The actual name of the program might change depending on how it was installed initially so we include the * character to handle variations. Note that this will also remove the plugins.
Then you can safely remove the nagios directory with the following:
again run as the root user.
From here you should have a mostly clean system and you can follow the install directions here:
http://assets.nagios.com/downloads/nagi ... Source.pdf
If you can afford to do so, a clean CentOS 6.5 install might not be a bad idea to make sure we have a known good base to install onto.
Code: Select all
cp -r /usr/local/nagios/etc/ /root/nagiosThen you should be able to run something like "yum remove nagios*" to uninstall the one that you installed via rpm. The actual name of the program might change depending on how it was installed initially so we include the * character to handle variations. Note that this will also remove the plugins.
Then you can safely remove the nagios directory with the following:
Code: Select all
rm -rf /usr/local/nagiosFrom here you should have a mostly clean system and you can follow the install directions here:
http://assets.nagios.com/downloads/nagi ... Source.pdf
If you can afford to do so, a clean CentOS 6.5 install might not be a bad idea to make sure we have a known good base to install onto.
Former Nagios employee
Re: Nagios is Frozen
Thanks a lot .
i followed the procedure but i see that files and folders from old nagios are still there, and for me (begginer) its a a very complicated situation to diagnose and act .
my final option would be to uninstall everything including the OS, and reinstalling everything, but htis would be the final option because otherwise i will have to go through all the pain again :p
if there is any diagnosing procedure share please.
Please do not bump your questions, it creates needless clutter, and it also puts you lower on our "to be replied to list..."
i followed the procedure but i see that files and folders from old nagios are still there, and for me (begginer) its a a very complicated situation to diagnose and act .
my final option would be to uninstall everything including the OS, and reinstalling everything, but htis would be the final option because otherwise i will have to go through all the pain again :p
if there is any diagnosing procedure share please.
Please do not bump your questions, it creates needless clutter, and it also puts you lower on our "to be replied to list..."
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios is Frozen
What files and folders? If you ran 'rm -rf' against the nagios directory, they would be removed. Your nagios directory is /usr/local/nagios is it not?i followed the procedure but i see that files and folders from old nagios are still there
Re: Nagios is Frozen
sorry my misconfusion, you are right i have only single nagios instance , but the problem is i cant access the webpage.
error:404 not found
anyway i note that httpd service is not starting
error:404 not found
anyway i note that httpd service is not starting
Re: Nagios is Frozen
That will definitely be part of the problems. What is the full output when you try to restart the httpd process?furqan wrote:anyway i note that httpd service is not starting
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.