Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Nagios Uninstall / Reinstall script
2012-11-16
- Nagios XI
102645
File | Description |
---|---|
uninstall_reinstall_xi.sh | Uninstall reinstall script |
Install instructions..txt | Install instructions |
http://support.nagios.com/forum/viewtopic.php?f=6&t=7102&p=38580#p38580.
I only added the lines for doing a new installation of Nagios. You can also use this to do a uninstall of Nagios and opt out of a new install.
I have only tested it on Centos6
I STRONGLY SUGGEST THAT YOU VIEW THE SCRIPT AND VERIFY WHAT WILL BE WIPED OUT.
==================================
!! 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.
I have only tested it on Centos6
I STRONGLY SUGGEST THAT YOU VIEW THE SCRIPT AND VERIFY WHAT WILL BE WIPED OUT.
==================================
!! 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.
Reviews (2)
bynexxus86, December 7, 2020
getting this:
Starting MySQL...
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
ERROR: MySQL failed to start - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './3-dbservers'
====================
All SET! Go in peace!
====================
Starting MySQL...
Job for mysql.service failed because the control process exited with error code.
See "systemctl status mysql.service" and "journalctl -xe" for details.
ERROR: MySQL failed to start - exiting.
RESULT=1
===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).
If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.
The script that failed was: './3-dbservers'
====================
All SET! Go in peace!
====================
Used the script to correct a flawed Nagios XI install and it worked out very well. If after an upgrade Nagios is complaining about missing line in host services and you can't get it cleared up a uninstall/reinstall might be what you need.
Thank you for the work on the script, it saved me a OS re-installation.
Thank you for the work on the script, it saved me a OS re-installation.
Owner's reply
Thanks man glad to see it helped you.