Re: [rrd-users] rrd insert problem
hi, im running the update once a minute within a script that runs from crontab. there is no other process that updates this db file in the same minute. thanks, shahar. מאת: [EMAIL PROTECTED] בשם A Darren Dunham נשלח: ג 03-יוני-08 19:12 אל: rrd-users@lists.oetiker.ch נושא: Re: [rrd-users] rrd insert problem On Tue, Jun 03, 2008 at 04:33:27PM +0300, Shahar Fleischman wrote: After replacing N: with ${now}: I sometimes get this error in the log file: + /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host/file.rrd 1212497523:786 ERROR: illegal attempt to update using time 1212497523 when last update time is 1212497523 (minimum one second step) You can't run multiple updates with the same timestamp. The error states that the DB has already received an update with that time, so another update with the same time is disallowed. Are you running updates on the order of once a second? -- Darren ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrd insert problem
On Tue, Jun 03, 2008 at 05:15:35AM -0700, mobi wrote: hi, Hi. /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host1/test.rrd N:1239 and i get no error on insert, but when i look in the graph or dump the rrd this also doesnt happen all the time, but only some time with no pattern. anyone has a clue what can it be ? Time drift? I've seen something like that on systems with a unstable system clock and without ntp. Try using the correct time (date +'%s' on Linux) instead of N. e.g.: now=`date +'%s'` rrdtool update [...] ${now}:[...] (and check the values of $now) and of course run ntp to keep your system time stable. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de pgpKgPRzYeED5.pgp Description: PGP signature ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrd insert problem
Hi, This is my first post to a mailing list so I hope I'm replying correctly. After replacing N: with ${now}: I sometimes get this error in the log file: + /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host/file.rrd 1212497523:786 ERROR: illegal attempt to update using time 1212497523 when last update time is 1212497523 (minimum one second step) although I see the data in the rrd db file correctly: !-- 2008-06-03 15:52:00 IDT / 1212497520 -- rowv 7.863500e+02 /v/row Also I have another question, what if there is no data after the N: in the update command, because I had one time that I had no data and in the rrd db I saw a very low value like below ? + /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host/file.rrd N: !-- 2008-06-03 15:19:00 IDT / 1212495540 -- rowv 5.0322736750e+01 /v/row This is my ntp.conf file # driftfile /var/lib/ntp/drift fudge 127.127.1.0 stratum 10 keys /etc/ntp/keys restrict 127.0.0.1 restrict 0.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery restrict 1.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery restrict 2.rhel.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery restrict -6 ::1 restrict default kod nomodify notrap nopeer noquery server 127.127.1.0 server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org # Thanks for the help. Shahar. -Original Message- From: Andreas Maus [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2008 3:25 PM To: Shahar Fleischman Cc: rrd-users@lists.oetiker.ch Subject: Re: [rrd-users] rrd insert problem On Tue, Jun 03, 2008 at 05:15:35AM -0700, mobi wrote: hi, Hi. /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host1/test.rrd N:1239 and i get no error on insert, but when i look in the graph or dump the rrd this also doesnt happen all the time, but only some time with no pattern. anyone has a clue what can it be ? Time drift? I've seen something like that on systems with a unstable system clock and without ntp. Try using the correct time (date +'%s' on Linux) instead of N. e.g.: now=`date +'%s'` rrdtool update [...] ${now}:[...] (and check the values of $now) and of course run ntp to keep your system time stable. HTH, Andreas. -- Dipl.-Ing. Andreas Maus science+computing ag System Administration Hagellocher Weg 73 tel.: +49 7071 9457 671 72070 Tuebingen, Germany fax: +49 7071 9457 411 www.science-computing.de ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrd insert problem
Thanks :) Good to know that, I will take care of that case to put U when there is no data. Shahar. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Simon Hobson Sent: Tuesday, June 03, 2008 5:38 PM To: rrd-users@lists.oetiker.ch Subject: Re: [rrd-users] rrd insert problem mobi wrote: i have a problem in my rrd, the problem started a few days ago. the symptom i see in the log of my bash script is that i insert the correct value into the rrd file like that: /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host1/test.rrd N:1239 and i get no error on insert, but when i look in the graph or dump the rrd file, i see a different lower value. this also doesnt happen all the time, but only some time with no pattern. anyone has a clue what can it be ? It's not a problem, it's a feature ! Go to http://www.vandenbogaerdt.nl/rrdtool/ and follow the link called Rates, normalizing and consolidating ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrd insert problem
mobi wrote: i have a problem in my rrd, the problem started a few days ago. the symptom i see in the log of my bash script is that i insert the correct value into the rrd file like that: /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host1/test.rrd N:1239 and i get no error on insert, but when i look in the graph or dump the rrd file, i see a different lower value. this also doesnt happen all the time, but only some time with no pattern. anyone has a clue what can it be ? It's not a problem, it's a feature ! Go to http://www.vandenbogaerdt.nl/rrdtool/ and follow the link called Rates, normalizing and consolidating ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
Re: [rrd-users] rrd insert problem
On Tue, Jun 03, 2008 at 04:33:27PM +0300, Shahar Fleischman wrote: After replacing N: with ${now}: I sometimes get this error in the log file: + /usr/local/rrd/bin/rrdtool update /usr/local/rrd/db/host/file.rrd 1212497523:786 ERROR: illegal attempt to update using time 1212497523 when last update time is 1212497523 (minimum one second step) You can't run multiple updates with the same timestamp. The error states that the DB has already received an update with that time, so another update with the same time is disallowed. Are you running updates on the order of once a second? -- Darren ___ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users