Skip to content

Commit

Permalink
check for rrd extension
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske committed May 25, 2013
1 parent 53bccb2 commit e6c166f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions htmlreport/gen-html.php
Expand Up @@ -7,6 +7,11 @@
}
require $cfgfile;

if (!function_exists('rrd_lastupdate')) {
echo "rrd PHP extension is missing\n";
exit(2);
}

$data = array();
foreach ($names as $id => $name) {
$data[$id]['name'] = $name;
Expand Down

0 comments on commit e6c166f

Please sign in to comment.