Page 1 of 1
Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Wed Mar 26, 2014 5:55 am
by steveallen1987
Hi
I've very recently install CentOS 6.5 and Nagios Core 4.0.3.
I set up monitoring for 38 devices and this was working OK.
Today, I upgraded to Nagios Core 4.0.4 using the following installation guide (
http://assets.nagios.com/downloads/nagi ... Source.pdf) and this looks like it has overwritten my original installation.
Can someone advise the correct process for upgrading so I can keep the devices I added?
Many thanks,
Steve
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Wed Mar 26, 2014 7:30 am
by sergioma
Try this:
http://nagios.sourceforge.net/docs/nagi ... ading.html
I did this to upgrade 4.0.2 to 4.0.4, but I had a problem with the NRPE's checks stopped, the status is OK and they must be Critical. Anyone had the same problem?

Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Wed Mar 26, 2014 1:07 pm
by abrist
You configs should be ok as long as they were not all named the same as the default configs. If they were named the same as the default configs, and you ran "make install-config", then you may have overwritten them. What are the contents of:
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Wed Mar 26, 2014 5:18 pm
by pato
sergioma wrote:I did this to upgrade 4.0.2 to 4.0.4, but I had a problem with the NRPE's checks stopped, the status is OK and they must be Critical. Anyone had the same problem?
Yes! Glad it's not just me.
http://support.nagios.com/forum/viewtop ... =26293&e=0
For a short term fix, you can roll back to an earlier version of check_nrpe,v2.15 has this "out of bounds" error on connection issues. I'm using v2.12 without issue
The issue is due to the code the v2.15 plugin exits with for "connection refused" issues - 255. In previous versions of Nagios this was interpreted as an error, but 4.0.4 is handling this as an "OK". Smells like a bug to me.
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Thu Mar 27, 2014 6:43 am
by steveallen1987
abrist wrote:You configs should be ok as long as they were not all named the same as the default configs. If they were named the same as the default configs, and you ran "make install-config", then you may have overwritten them. What are the contents of:
Hi Abrist
I have managed to roll the server back to an earlier backup with Nagios Core 4.0.3 installed.
Can you advise the correct process for updating?
Thanks
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Thu Mar 27, 2014 3:06 pm
by tmcdonald
The documentation linked by sergioma is correct:
http://nagios.sourceforge.net/docs/nagi ... ading.html
And as abrist pointed out, you likely ran install-config as well and that's what overwrote your configs if they all had the default names still.
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Posted: Wed Apr 02, 2014 4:51 am
by sergioma
I did:
Code: Select all
./configure –with-command-group=nagcmd
make all
make install
make install-commandmode
and now seems to be working fine.