summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/rrd.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/rrd.inc b/etc/inc/rrd.inc
index b2d4e94..4c218a7 100644
--- a/etc/inc/rrd.inc
+++ b/etc/inc/rrd.inc
@@ -69,7 +69,13 @@ function restore_rrd() {
if (file_exists("{$rrd_file}")) {
unlink($rrd_file);
}
- exec("$rrdtool restore -f '{$xml_file}' '{$rrd_file}'");
+ $output = array();
+ $status = null;
+ exec("$rrdtool restore -f '{$xml_file}' '{$rrd_file}'", $output, $status);
+ if ($status) {
+ log_error("rrdtool restore -f '{$xml_file}' '{$rrd_file}' failed returning {$status}.");
+ continue;
+ }
unlink($xml_file);
}
return true;
OpenPOWER on IntegriCloud