Upgrade 2014R1.1, no rrd file update due to new check_icmp

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
CBoekhuis
Posts: 234
Joined: Tue Aug 16, 2011 4:55 am

Upgrade 2014R1.1, no rrd file update due to new check_icmp

Post by CBoekhuis »

Hello,

after upgrading to 2014R1.1, the graphs related to the check-host-alive command is no longer recording data.
Apperantly the new version of the check_icmp command outputs more fields then the previous version:

from the _HOST_.xml files:

Code: Select all

  <RRD>
    <RC>1</RC>
    <TXT>/usr/local/nagios/share/perfdata/localhost/_HOST_.rrd: found extra data on update argument: 3.771:3.771</TXT>
  </RRD>

Code: Select all

>:/usr/local/nagios/libexec> ./check_icmp -H localhost -w 3000.0,80% -c 5000.0,100% -n 1                    
OK - localhost: rta 0.091ms, lost 0%|rta=0.091ms;3000.000;5000.000;0; pl=0%;80;100;; 
>:/usr/local/nagios/libexec> ./check_icmp.new -H localhost -w 3000.0,80% -c 5000.0,100% -n 1
OK - localhost: rta 0.158ms, lost 0%|rta=0.158ms;3000.000;5000.000;0; pl=0%;80;100;; rtmax=0.158ms;;;; rtmin=0.158ms;;;; 
Is there a way to correct the rrd files so I won't loose all the historical data? For the time being I restored the previous check_icm.

Greetings....Hans
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by slansing »

Unfortunately RRD's cannot be edited in that way once created. The issue is that the new plugin has two additional metrics that are being returned, we did run into this with another customer and had to revert their plugin as well.
CBoekhuis
Posts: 234
Joined: Tue Aug 16, 2011 4:55 am

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by CBoekhuis »

So basically I've got three options:
1) delete all rrd files and thereby throwing out 3 years of historical data.
2) restore the previous check_icmp (which I did at this moment). Downside is that with a future upgrade I'll run into this same problem again.
3) Add datastores and rows to the rrd files so the extra data can be stored in the rrd files (you can't edit the rrd files, but you can dump/edit/restore them). Downside is obviously the time it takes to this for nearly 400 files. I'll have to look into a way to automate this process :cry: .
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by tmcdonald »

I have suggested adding a switch to the plugins to control their RRD output for backwards-compatibility. I'm not sure what happened to that idea but it has been discussed. I can bring it up again because I agree that losing this data is, to say the least, not preferred.
Former Nagios employee
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by abrist »

Just a follow up - what OS version are you running?

Code: Select all

cat /etc/*release
So far, the only reports have been from centos 5.x users.
Former 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.
CBoekhuis
Posts: 234
Joined: Tue Aug 16, 2011 4:55 am

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by CBoekhuis »

I like the idea of a backward-compatibilty option! It makes it far more flexible. If you could raise this idea again please do!

Greetings...Hans
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by sreinhardt »

It is being actively discussed, we just have not made a full decision on it yet. I would fully expect a resolve in 2014r1.2.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
CBoekhuis
Posts: 234
Joined: Tue Aug 16, 2011 4:55 am

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by CBoekhuis »

We run on RHEL 5.7.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Upgrade 2014R1.1, no rrd file update due to new check_ic

Post by abrist »

The easiest way to workaround this at the moment is to download and build the older plugins package, and then overwrite the new check_icmp plugin with the old check_icmp plugin:

Code: Select all

cd /tmp
wget http://nagios-plugins.org/download/nagios-plugins-1.4.16.tar.gz
tar vfxz nagios-plugins-1.4.16.tar.gz
cd nagios-plugins-1.4.16
./configure
make
mv /usr/local/nagios/libexec/check_icmp /usr/local/nagios/libexec/check_icmp.old
cp plugins-root/check_icmp /usr/local/nagios/libexec/
Former 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.
Locked