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
Upgrading Nagios Core 4.0.3 to 4.0.4
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
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?

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
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:
Code: Select all
ls -laR /usr/local/nagios/etcFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
Yes! Glad it's not just me.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?
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.
-
steveallen1987
- Posts: 7
- Joined: Mon Mar 03, 2014 7:23 am
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
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:Code: Select all
ls -laR /usr/local/nagios/etc
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
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.
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.
Former Nagios employee
Re: Upgrading Nagios Core 4.0.3 to 4.0.4
I did:
and now seems to be working fine.
Code: Select all
./configure –with-command-group=nagcmd
make all
make install
make install-commandmode