Page 2 of 3
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Thu Sep 08, 2016 2:52 am
by Vishal41
Hi there,
Thanks
Can you please advise on how do I uninstall both version of Nagios? I am not worried about my current config file as I have not configure much to it. There is just a local host and couple of other devices.
Moving forward I would like to install Nagios from fresh and configure the devices from scratch
Please help and thank you for your time until now.
Regards,
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Thu Sep 08, 2016 10:24 am
by rkennedy
Can you please advise on how do I uninstall both version of Nagios? I am not worried about my current config file as I have not configure much to it. There is just a local host and couple of other devices.
Moving forward I would like to install Nagios from fresh and configure the devices from scratch
Both of these statements contradict each other. If you're starting fresh though, spin up a new clean machine, install Nagios, then copy of your configuration files / plugins to the new machine, and voila! A brand, new, shiny Nagios machine for you to use.
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Thu Sep 08, 2016 10:44 am
by Vishal41
Okay I am a new started to it.
On Centos 5.11 we are also running FTP, and OPEN VPN SSL. Previously some one has installed vbox on this too so I a really not sure can you guide and help me uninstall Nagios version 4.2 and 3.2.3 so I can start a new clean install I cannot ditch this OS or format the existing.
Many thanks
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Thu Sep 08, 2016 11:07 am
by Box293
You should be able to delete the init script and then delete the nagios directory and all it's sub directories.
After doing this you can compile from scratch.
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Fri Sep 09, 2016 2:55 am
by Vishal41
Hi there,
Thank you for your reply. I have found following path to Nagios directory and subdirectory. Should I get rid of everything displayed below using rm -r?
/etc/nagios/
/usr/bin/nagios
/usr/share/nagios
/usr/lib64/nagios/plugins/
/etc/init.d/nagios
/usr/local/nagios
/usr/nagios/nagios-4.2.0
What about the username and Groups?
What about the nagios plugins as it stands it is running 1.4.6? How can I get rid of this? Does it require any special attention?
What about the web?
As mentioned previously I am new starter and learner with Linux and Nagios any help or spoon feeding will be appreciated!
Thanks
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Fri Sep 09, 2016 9:34 am
by Box293
Vishal41 wrote:As mentioned previously I am new starter and learner with Linux and Nagios any help or spoon feeding will be appreciated!
Honestly you should just start again on a fresh system. Any advice we give you about what to delete can be dangerous if you're new to Linux and could cause more problems you don't know how to fix.
Vishal41 wrote:Should I get rid of everything displayed below using rm -r?
If you have both Nagios version 4.2 and 3.2.3 on the same system, v3 would most likely have been installed through a package manager and you would need to uninstall it using the package manager. v4 is most likely built from source, so you should be able to just delete it.
Vishal41 wrote:What about the username and Groups?
They can be left as is
Vishal41 wrote:What about the nagios plugins as it stands it is running 1.4.6? How can I get rid of this? Does it require any special attention?
They can be left as is
Vishal41 wrote:What about the web?
The configs generated by the new install should overwrite the old ones.
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Fri Sep 09, 2016 10:17 am
by Vishal41
Thank you for your reply
How would I Uninstall version 3.2.3 as this is installed using Packet installer?
I will appreciate if you can help me uninstall version 3.2.3 (commnds)
Thanks
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Fri Sep 09, 2016 10:34 am
by Box293
Seeing as you have CentOS 5.11 I don't think it was installed from a package through yum, so you can probably just delete it.
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Tue Sep 13, 2016 3:13 am
by Vishal41
Hi Thank you,
I appreciate all your help and reply. Do you want me to give you any logs or output which will help you determine if it has been installed using Package installer ?
Sorry to be naïve and asking you dumb questions but this is my first step in a different world would like to go far......
Can you please list the steps to uninstall or remove nagios completely from the Centos? I will greatly appreciate if this can be spoon feed so I can understand and learn in detail.
I AM A NOVICE TO THIS WORLD ANY HELP WILL BE GREATLY APPRECIATED. SORRY IF I AM WASTING YOUR TIME
Regards
Re: NAGIOS ERROR:Cannot open main configuration file
Posted: Tue Sep 13, 2016 3:40 pm
by tmcdonald
Running yum list installed | grep nagios should show if it was installed via yum, otherwise it was likely compiled from source.