Page 1 of 1

Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS 5

Posted: Mon Dec 03, 2012 2:56 am
by junglecom
Hi all,
I inherited a Nagios core 3.2.3 server and I am trying to update to 3.4.1 on centOS 5.8 x8664.
It looks like it was originally installed using yum and some repository source I cannot figure out.
Ive read a lot of blogs but my installation directory is different than theirs. Mine is ( /etc/nagios/)

When I do a yum update for Nagios I get no new updates available. What am I missing here?

Thank you for your help!

Re: Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS

Posted: Mon Dec 03, 2012 1:03 pm
by abrist
3.2.3 is the newest rpm for centos 5.8. Your only option for an upgrade will be to install from source. I would back up all your configs and review the documentation below thoroughly before proceeding.

http://assets.nagios.com/downloads/nagi ... Source.pdf
http://www.nagios.org/download/core/thanks/

Re: Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS

Posted: Tue Dec 04, 2012 3:32 am
by junglecom
Thank you for your reply. I had a feeling yesterday that this was going to be the case.
Do you have a good document on backing up existing config files and how to migrate into new server?

Re: Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS

Posted: Tue Dec 04, 2012 10:32 am
by mguthrie
The files under /etc/nagios can most likely just be zipped up and moved to the new installation under /usr/local/nagios/etc if you're doing a source installation. You'll also probably want to migrate the Nagios plugins over as well. I don't remember where those get placed on a package install though. Using the same architecture on the new machine will make it so you don't have to recompile any plugins. A source installation keeps plugins in /usr/local/nagios/libexec

I would fire up the second machine, bring the configs and plugins over, but keep notifications disabled until you get everything back to how you wanted it.


The other solution you could do is compile Core with your current directories specified in the compile options, although you'd have to do a little bit of hunting as to which compile options you'd need.

Re: Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS

Posted: Thu Dec 06, 2012 5:53 am
by junglecom
Got it installed thank you! My only problem now is I cannot seem to find the check_snmp pluggin.

Re: Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS

Posted: Thu Dec 06, 2012 12:08 pm
by sreinhardt
Based on the install document posted by abrist, all plugins should be in /usr/local/nagios/libexec. Please look in that directory to see if check_snmp is located there as it should be.
If you used another document, please link us to that.

The other possibility is that some packages were not available upon install of nagios-plugins and check_snmp was not able to be created properly. Per your other post.

Re: Inplace update trouble from Nagios 3.2.3 to 3.4.1 CentOS

Posted: Thu Dec 06, 2012 11:27 pm
by junglecom
Figured out why this package was missing.
I did not have the yum net-snmp packages installed

I just ran:
1. yum install net-snmp*
2. configured the plugins package again
3. make && make install

The check_snmp was now where it should be.

Thanks again for your help!