sub rrd_update(@) {
my @args = @_;
-
+ print "Updating: ". Dumper(\@_);
if ($use_rrds == 1) {
RRDs::update(@args);
$rrd_result = RRDs::error;
sub rrd_graph(@) {
my @args = @_;
my @rrd_out = ();
-
+ print "Graphing: " . Dumper(\@_);
if ($use_rrds == 1) {
@rrd_out = RRDs::graph(@args);
$rrd_result = RRDs::error;
RRDs::create(@cmd);
if (RRDs::error) {
print "Error while creating: " . RRDs::error . "\n";
+ print Dumper(\@cmd);
exit 1;
}
}
}
}
-my $child = fork();
-
-die "fork failed!" if (!defined($child));
-
-exit 0 if ($child != 0);
+#my $child = fork();
+#
+#die "fork failed!" if (!defined($child));
+#
+#exit 0 if ($child != 0);
while(1) {
open(HTML, ">${outdir}/index.html.new");