is it possible to uninstall Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

is it possible to uninstall Nagios

Post by benhank »

Is it possible to uninstall nagios without reinstalling the os?
I tried to doc "uninstalling nagios" but when i ran the command:

Code: Select all

[root@lkennagiosxit01 ~]# /usr/local/nagiosxi/scripts/uninstall-xi.sh
[root@lkennagiosxit01 ~]# /usr/local/nagiosxi/scripts/uninstall-xi.sh
So then:

Code: Select all

[root@lkennagiosxit01 ~]# cd /usr/local/nagiosxi/scripts/
[root@lkennagiosxit01 scripts]# ls

[root@lkennagiosxit01 scripts]# ./uninstall_xi.sh
i got:

-bash: ./uninstall_xi.sh: Permission denied
I understand that nagios has to be installed on a fresh install of centos, but will this script restore it to the "fresh, never been installed" state?
I ask this because on our test server, sometimes we want to do projects from a fresh start, but reinstalling the OS is not always an option, as my servers are 50+ miles away from where my office is.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: is it possible to uninstall Nagios

Post by slansing »

That is a permissions error run the following:

Code: Select all

chmod +x /usr/local/nagiosxi/scripts/uninstall_xi.sh
This script is a beta though, so please let us know if it works out for you.
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: is it possible to uninstall Nagios

Post by benhank »

nah I did not work. to many linux commands for a person on my level to edit. too bad tho. guess I gotta hop in the car.. =(
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: is it possible to uninstall Nagios

Post by slansing »

What did the terminal tell you when you tried to run the script again after making it executable?
ockmeyer
Posts: 74
Joined: Mon Jun 25, 2012 2:17 pm

Re: is it possible to uninstall Nagios

Post by ockmeyer »

I don't see a response to the questions, but this is what I get after making the file executable:

/usr/local/nagiosxi/scripts/uninstall_xi.sh: line 4: ./init.sh: No such file or directory
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: is it possible to uninstall Nagios

Post by slansing »

Make sure you are running it with a ./ in front, to make it easier do this:

Code: Select all

cd /usr/local/nagiosxi/scripts

./uninstall_xi.sh
ockmeyer
Posts: 74
Joined: Mon Jun 25, 2012 2:17 pm

Re: is it possible to uninstall Nagios

Post by ockmeyer »

I'm trying to run it exactly like that and still get:

./uninstall_xi.sh: line 4: ./init.sh: No such file or directory
ockmeyer
Posts: 74
Joined: Mon Jun 25, 2012 2:17 pm

Re: is it possible to uninstall Nagios

Post by ockmeyer »

Has anyone figured out how to get the uninstall script to run?
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: is it possible to uninstall Nagios

Post by lmiltchev »

Try this one instead:
uninstall_xi.sh
Note: This *should* uninstall Nagios XI, but it will also uninstall MySQL and PostgreSQL.

Let me know if this worked for you.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: is it possible to uninstall Nagios

Post by benhank »

I started the thread, so I will be the first to boldy go where no >insert gender neutral politically correct word here< gone before! ...coughonmytestservercough =K
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
Locked