oetiker / rrdtool-1.x

RRDtool 1.x - Round Robin Database
http://www.rrdtool.org
GNU General Public License v2.0
1.01k stars 263 forks source link

Problems with RRDp.pm #12

Closed oetiker closed 12 years ago

oetiker commented 12 years ago

Hi Tobi,

I've got trouble with RRDp.pm. I use a script like:

RRDp::start while(1) { ... run_rrd($command); ... } RRDp::end

sub runrrd { RRDp::cmd @; $answer = RRDp::read; print $answer; }

If there is an error like ERROR: illegal attempt to update using time ..., RRD terminates my program with this message. Why? I'd like to received this message (that's important for me) but my program must go on.

If my sub look's like

sub rrdrun { RRDp::start ; RRDp::cmd @; RRDp::end; }

then I've no problems and no error message too. But with every $command I must run RRDp::start and RRDp::end and so my performance falls.

Thanks Sierra

PS: Excuse me, but your display has got problems with ::, or hasn't it?

oetiker commented 12 years ago

[oetiker] Sierre,

make sure you are using rrdtool 1.2.12 ... there is much less dieing there ...

cheers tobi

oetiker commented 12 years ago

[Sierra] Thanks for your answer, but I'm in trouble again. After install of rrdtool-1.2.12 there are the same problems - after ERROR: unknown DS name or ERROR: illegal attempt to update using time

my programm was terminate after RRDp::read.

oetiker commented 12 years ago

[oetiker] Hi Sierra

ah now I see what your problem is, RRDp.pm find the ERROR and dies. This is fixed in [752]. please check it out.