z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

is it possible to uninstall Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.

is it possible to uninstall Nagios

Postby benhank » Thu Aug 30, 2012 1:35 pm

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.
User avatar
benhank
 
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: is it possible to uninstall Nagios

Postby slansing » Thu Aug 30, 2012 1:49 pm

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.
slansing
 
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: is it possible to uninstall Nagios

Postby benhank » Fri Aug 31, 2012 1:23 pm

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
User avatar
benhank
 
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: is it possible to uninstall Nagios

Postby slansing » Fri Aug 31, 2012 1:28 pm

What did the terminal tell you when you tried to run the script again after making it executable?
slansing
 
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: is it possible to uninstall Nagios

Postby ockmeyer » Thu Nov 01, 2012 2:43 pm

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
ockmeyer
 
Posts: 74
Joined: Mon Jun 25, 2012 2:17 pm

Re: is it possible to uninstall Nagios

Postby slansing » Thu Nov 01, 2012 2:49 pm

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
slansing
 
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: is it possible to uninstall Nagios

Postby ockmeyer » Fri Nov 02, 2012 3:31 pm

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

Postby ockmeyer » Thu Nov 15, 2012 11:19 am

Has anyone figured out how to get the uninstall script to run?
ockmeyer
 
Posts: 74
Joined: Mon Jun 25, 2012 2:17 pm

Re: is it possible to uninstall Nagios

Postby lmiltchev » Thu Nov 15, 2012 1:37 pm

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
lmiltchev
Former Nagios Staff
 
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: is it possible to uninstall Nagios

Postby benhank » Thu Nov 15, 2012 1:42 pm

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
User avatar
benhank
 
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Next

Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 26 guests