Save MIB graphs in database, tag devices for graphing

This commit is contained in:
Paul Gear
2015-06-16 08:27:56 +10:00
parent e77d4d3063
commit 984ec0d060
3 changed files with 95 additions and 43 deletions
-1
View File
@@ -358,7 +358,6 @@ function rrd_create_update($device, $name, $def, $val, $step = 300)
{
global $config;
$rrd = implode("/", array($config['rrd_dir'], $device['hostname'], safename(implode("-", $name)).".rrd"));
d_echo("RRD file: $rrd");
if (!is_file($rrd)) {
// add the --step and the rra definitions to the array
+1 -1
View File
@@ -43,6 +43,6 @@ if (isset($ruckuscountry) && $ruckuscountry != "") {
$ruckus_mibs = array(
"ruckusZDSystemStats" => "RUCKUS-ZD-SYSTEM-MIB",
);
poll_mibs($ruckus_mibs, $device);
poll_mibs($ruckus_mibs, $device, $graphs);
?>