Page 1 of 1

Uninstall nagios network analyzer on Linux

Posted: Fri Jul 20, 2018 5:14 am
by dais
I have installed nagios following this guide: https://assets.nagios.com/downloads/nag ... 1532076035

I have also tried to uninstall it with script uninstall_xi.sh downloaded from here: https://support.nagios.com/forum/viewto ... f=6&t=7102
It shows:

Code: Select all

        ==================================
        !! DESTRUCTIVE UNINSTALL NOTICE !!
        ==================================
        WARNING: This script will uninstall

        Nagios
        MySql
        Postgresql

        from this system as well as all data associated with these services.
        This action is irreversible and will result in the removal of
        all Nagios databases, configuration files, log files, and services.

Are you sure you want to continue? [y/N] y
Proceeding with uninstall...
Stopping services...
Failed to stop nagios.service: Unit nagios.service not loaded.
Failed to stop npcd.service: Unit npcd.service not loaded.
Failed to stop ndo2db.service: Unit ndo2db.service not loaded.
removing init files...
Removing users and suduoers...
userdel: user 'nagios' does not exist
groupdel: group 'nagcmd' does not exist
Removing crontabs...
Removing files...
Removing NagiosQL files...
Removing Apache configs...
Failed to restart httpd.service: Unit httpd.service not found.
Removing xinetd configs...
Failed to restart xinetd.service: Unit xinetd.service not found.
Removing Postgres and mysql databases...
uninstall_xi.sh: line 80: yum: command not found
Removing database backup scripts...
        ====================
        UNINSTALL COMPLETED!
        ====================

and when I run again ./fullinstall, it shows:

Code: Select all

It looks like Nagios Network Analyzer is already installed.

Re: Uninstall nagios network analyzer on Linux

Posted: Fri Jul 20, 2018 8:47 am
by scottwilkerson
We recommend installing on a fresh minimal install system.

Re: Uninstall nagios network analyzer on Linux

Posted: Fri Jul 20, 2018 10:34 pm
by dais
Why not on the same system?

Re: Uninstall nagios network analyzer on Linux

Posted: Sat Jul 21, 2018 12:09 am
by dais
Why do I need to do a fresh minimal install system?

Re: Uninstall nagios network analyzer on Linux

Posted: Sat Jul 21, 2018 6:30 am
by scottwilkerson
We do not have a script that clean up and removes all the databases, directories and packages from the original install. and you would be left with fragments of files, logs etc that would not be relevant to the current install causing confusion.

Re: Uninstall nagios network analyzer on Linux

Posted: Wed Jul 25, 2018 3:34 am
by dais
So basically, there is no way to uninstall it?

Re: Uninstall nagios network analyzer on Linux

Posted: Wed Jul 25, 2018 9:18 am
by scottwilkerson
dais wrote:So basically, there is no way to uninstall it?
That is correct. You could remove the directories but there are other additions that will still be present

Code: Select all

rm -rf /usr/local/nagiosna
rm -rf /var/www/html/nagiosna

Re: Uninstall nagios network analyzer on Linux

Posted: Thu Jul 26, 2018 4:39 am
by dais
Okay.. I've done

Code: Select all

sudo rm -rf /usr/local/nagiosna
sudo rm -rf /var/www/html/nagiosna/
and

Code: Select all

sudo rm /etc/init.d/nagiosna
also delete extracted nagiosna folder

and follow installation guide again.
It is installed successfully !!
NOTE: mysql-server should be installed correctly with root password.

Re: Uninstall nagios network analyzer on Linux

Posted: Thu Jul 26, 2018 6:59 am
by scottwilkerson
dais wrote:Okay.. I've done

Code: Select all

sudo rm -rf /usr/local/nagiosna
sudo rm -rf /var/www/html/nagiosna/
and

Code: Select all

sudo rm /etc/init.d/nagiosna
also delete extracted nagiosna folder

and follow installation guide again.
It is installed successfully !!
NOTE: mysql-server should be installed correctly with root password.
Great!

Locking