uninstall how to
-
jacobriversiii
- Posts: 11
- Joined: Thu Nov 13, 2014 8:41 pm
uninstall how to
How would one complete an uninstall so the product can be reinstalled without a format.
Re: uninstall how to
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
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
-
jacobriversiii
- Posts: 11
- Joined: Thu Nov 13, 2014 8:41 pm
Re: uninstall how to
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?
Also how would a one lay down a new copy of files if a directory such as /nagioslogserver became corrupted?
Re: uninstall how to
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:
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!
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)
Please let me know if that helps you answer your questions. Let me know if erasing the node is not an option. Thanks!
-
jacobriversiii
- Posts: 11
- Joined: Thu Nov 13, 2014 8:41 pm
Re: uninstall how to
This isn't an ideal solution for my setup, is there no uninstall or removal option?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: uninstall how to
If you remove the following files it would be the equivalent to a fresh install
To uninstall, you can remove the following directories
Code: Select all
rm -f /usr/local/nagioslogserver/var/cluster_uuid
rm -f /usr/local/nagioslogserver/var/host_uuidCode: Select all
rm -rf /usr/local/nagioslogserver
rm -rf /var/www/html/nagioslogserver-
jacobriversiii
- Posts: 11
- Joined: Thu Nov 13, 2014 8:41 pm
Re: uninstall how to
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/
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/
-
jacobriversiii
- Posts: 11
- Joined: Thu Nov 13, 2014 8:41 pm
Re: uninstall how to
Maybe a more appropriate question is what file needs to be modified to re-initiate the front end cluster join?
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: uninstall how to
If you remove the following files
And then re-start elasticsearch
it will ask to join the cluster again
Code: Select all
rm -f /usr/local/nagioslogserver/var/cluster_uuid
rm -f /usr/local/nagioslogserver/var/host_uuidCode: Select all
service elasticsearch restart