Skip Menu |

This queue is for tickets about the RRD-Simple CPAN distribution.

Report information
The Basics
Id: 72160
Status: new
Priority: 0/
Queue: RRD-Simple

Owner: Nobody in particular
Requestors: marseille07 [...]

Bug Information
Severity: (no value)
Broken in: 1.44
Fixed in: (no value)

Subject: update( on_missing_ds => ignore ) not working as intended
Download (untitled) / with headers
text/plain 475b
Reading the following comment in, the intent of on_missing_ds => "ignore" is to only ignore the new DSes while updating the existing DSes. # Ignore the offending missing data source name The problem however, is that because the offending new DSes are never taken out of %ds hash, subsequent invocation of my @rtn = RRDs::update($rrdfile, @def); would trigger an error from RRDtool. I've included a one-line change to take out the offending DSes from the hash.
Subject: on_missing_ds.diff
Download on_missing_ds.diff
text/x-diff 492b
--- 2011-11-03 20:10:24.038314484 -0700 +++ 2011-11-03 20:11:16.789562402 -0700 @@ -305,6 +305,7 @@ # Ignore the offending missing data source name if ($stor->{on_missing_ds} eq 'ignore') { TRACE("on_missing_ds = ignore; ignoring data supplied for missing data source '$ds'"); + delete $ds{$ds}; # Fall on our bum and die horribly if requested to do so } elsif ($stor->{on_missing_ds} eq 'die' || $stor->{on_missing_ds} eq 'croak') {

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to