uninstall how to

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
jacobriversiii
Posts: 11
Joined: Thu Nov 13, 2014 8:41 pm

uninstall how to

Post by jacobriversiii »

How would one complete an uninstall so the product can be reinstalled without a format.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: uninstall how to

Post 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
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jacobriversiii
Posts: 11
Joined: Thu Nov 13, 2014 8:41 pm

Re: uninstall how to

Post 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?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: uninstall how to

Post 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!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
jacobriversiii
Posts: 11
Joined: Thu Nov 13, 2014 8:41 pm

Re: uninstall how to

Post by jacobriversiii »

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jacobriversiii
Posts: 11
Joined: Thu Nov 13, 2014 8:41 pm

Re: uninstall how to

Post 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/
jacobriversiii
Posts: 11
Joined: Thu Nov 13, 2014 8:41 pm

Re: uninstall how to

Post by jacobriversiii »

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

Post 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

Code: Select all

service elasticsearch restart
it will ask to join the cluster again
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked