Uninstall nagios network analyzer on Linux

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
dais
Posts: 9
Joined: Fri Jul 20, 2018 5:02 am

Uninstall nagios network analyzer on Linux

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Uninstall nagios network analyzer on Linux

Post by scottwilkerson »

We recommend installing on a fresh minimal install system.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dais
Posts: 9
Joined: Fri Jul 20, 2018 5:02 am

Re: Uninstall nagios network analyzer on Linux

Post by dais »

Why not on the same system?
dais
Posts: 9
Joined: Fri Jul 20, 2018 5:02 am

Re: Uninstall nagios network analyzer on Linux

Post by dais »

Why do I need to do a fresh minimal install system?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Uninstall nagios network analyzer on Linux

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dais
Posts: 9
Joined: Fri Jul 20, 2018 5:02 am

Re: Uninstall nagios network analyzer on Linux

Post by dais »

So basically, there is no way to uninstall it?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Uninstall nagios network analyzer on Linux

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
dais
Posts: 9
Joined: Fri Jul 20, 2018 5:02 am

Re: Uninstall nagios network analyzer on Linux

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Uninstall nagios network analyzer on Linux

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked