rrdtool = $rrdtool; } else { printf('
Error: RRDTool (%s) is not executable. Please install RRDTool it and configure $CONFIG[\'rrdtool\'].
', $rrdtool); die(); } } function rrd_info($rrdfile) { if (file_exists($rrdfile)) { $raw_info = shell_exec($this->rrdtool.' info '.$rrdfile); $raw_array = explode("\n", $raw_info); foreach ($raw_array as $key => $info) { if ($info != "") { $item_info = explode(" = ", $info); $item_info[1] = preg_replace('/"/', '', $item_info[1]); $info_array[$item_info[0]] = $item_info[1]; } } return($info_array); } else { return false; } } } ?>