Page 1 of 1

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

Posted: Thu Jun 12, 2014 4:50 am
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

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

Posted: Thu Jun 12, 2014 9:33 am
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.

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

Posted: Fri Jun 13, 2014 7:36 am
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: .

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

Posted: Fri Jun 13, 2014 10:05 am
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.

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

Posted: Fri Jun 13, 2014 10:07 am
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.

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

Posted: Fri Jun 13, 2014 10:12 am
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

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

Posted: Fri Jun 13, 2014 12:06 pm
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.

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

Posted: Mon Jun 16, 2014 2:56 am
by CBoekhuis
We run on RHEL 5.7.

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

Posted: Mon Jun 16, 2014 11:17 am
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/