Page 1 of 1
uninstall how to
Posted: Fri Mar 20, 2015 12:45 pm
by jacobriversiii
How would one complete an uninstall so the product can be reinstalled without a format.
Re: uninstall how to
Posted: Fri Mar 20, 2015 1:10 pm
by jolson
Unfortunately there is not a built-in way of uninstalling Nagios Log Server. Because the install script installs many packages and dependencies, it would be far too much effort to deconstruct and rebuild in that way.
If there is a particular problem you are having, maybe I could help you out? What is your current use-case for needing to uninstall?
I look forward to hearing back from you,
Jesse
Re: uninstall how to
Posted: Fri Mar 20, 2015 2:06 pm
by jacobriversiii
We have a cloud based deployment where we cloned our primary node, is there a way to join via the cli.
Also how would a one lay down a new copy of files if a directory such as /nagioslogserver became corrupted?
Re: uninstall how to
Posted: Fri Mar 20, 2015 2:26 pm
by jolson
There are a host of problems that come with cloning, and I would be afraid to attempt to resolve this issue only to have your log server bite us in the future. I think it would be best if you could erase the cloned node, and spin up a fresh one which you can install Nagios Log Server on, and run through the attachment procedure properly. Fullinstall has non-interactive options if you are looking to automate the installation of additional nodes:
Code: Select all
Usage: ./fullinstall [options...]
Options:
-h | --help
Display this help text
-a | --add_node
-m | --master
-i | --id
-n | --non-interactive
Assume defaults for all questions (for scripted installs)
If files in the /nagioslogserver directory were to become corrupted, it would likely be best to blow away the node and make a fresh one - our product is built to withstand node destruction, and rebuilding nodes can be automated and takes a very small amount of time.
Please let me know if that helps you answer your questions. Let me know if erasing the node is not an option. Thanks!
Re: uninstall how to
Posted: Sat Mar 21, 2015 1:31 pm
by jacobriversiii
This isn't an ideal solution for my setup, is there no uninstall or removal option?
Re: uninstall how to
Posted: Sun Mar 22, 2015 9:24 am
by scottwilkerson
If you remove the following files it would be the equivalent to a fresh install
Code: Select all
rm -f /usr/local/nagioslogserver/var/cluster_uuid
rm -f /usr/local/nagioslogserver/var/host_uuid
To uninstall, you can remove the following directories
Code: Select all
rm -rf /usr/local/nagioslogserver
rm -rf /var/www/html/nagioslogserver
Re: uninstall how to
Posted: Sun Mar 22, 2015 3:13 pm
by jacobriversiii
That doesn't fully work, if i perform those removals and then try to reinstall the following is the result. It does not lay the files down, simply skips them all.
sudo ./fullinstall
Nagios Log Server Installation
==============================
DATE: Sun Mar 22 16:12:18 EDT 2015
DISTRO INFO:
CentOS
7.0.1406
x86_64
Running 'setup_local_syslog'...
setup_local_syslog step already completed - skipping
Running 'prereqs'...
prereqs step already completed - skipping
Running 'sourceguardian'...
sourceguardian step already completed - skipping
Running 'timezone'...
timezone step already completed - skipping
Running 'nagioslogserver'...
nagioslogserver step already completed - skipping
Running 'backend'...
backend step already completed - skipping
Running 'install_mibs'...
install_mibs step already completed - skipping
Running 'sudoers'...
sudoers step already completed - skipping
Running 'firewall'...
firewall step already completed - skipping
Running 'selinux'...
selinux step already completed - skipping
Running 'test_cluster_connection'...
test_cluster_connection step already completed - skipping
Running 'daemons'...
daemons step already completed - skipping
Running 'webroot'...
webroot step already completed - skipping
Nagios Log Server Installation Success!
You can finish the final setup steps for Nagios Log Server by visiting:
http:///nagioslogserver/
Re: uninstall how to
Posted: Sun Mar 22, 2015 6:44 pm
by jacobriversiii
Maybe a more appropriate question is what file needs to be modified to re-initiate the front end cluster join?
Re: uninstall how to
Posted: Mon Mar 23, 2015 7:31 am
by scottwilkerson
If you remove the following files
Code: Select all
rm -f /usr/local/nagioslogserver/var/cluster_uuid
rm -f /usr/local/nagioslogserver/var/host_uuid
And then re-start elasticsearch
it will ask to join the cluster again