Page 1 of 2

is it possible to uninstall Nagios

Posted: Thu Aug 30, 2012 1:35 pm
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.

Re: is it possible to uninstall Nagios

Posted: Thu Aug 30, 2012 1:49 pm
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.

Re: is it possible to uninstall Nagios

Posted: Fri Aug 31, 2012 1:23 pm
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.. =(

Re: is it possible to uninstall Nagios

Posted: Fri Aug 31, 2012 1:28 pm
by slansing
What did the terminal tell you when you tried to run the script again after making it executable?

Re: is it possible to uninstall Nagios

Posted: Thu Nov 01, 2012 2:43 pm
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

Re: is it possible to uninstall Nagios

Posted: Thu Nov 01, 2012 2:49 pm
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

Re: is it possible to uninstall Nagios

Posted: Fri Nov 02, 2012 3:31 pm
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

Re: is it possible to uninstall Nagios

Posted: Thu Nov 15, 2012 11:19 am
by ockmeyer
Has anyone figured out how to get the uninstall script to run?

Re: is it possible to uninstall Nagios

Posted: Thu Nov 15, 2012 1:37 pm
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.

Re: is it possible to uninstall Nagios

Posted: Thu Nov 15, 2012 1:42 pm
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