mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Updated rrdtool_update() to use new array format
This commit is contained in:
@@ -28,10 +28,16 @@ if ($device['os_group'] == "cisco") {
|
||||
if (!file_exists ($rrd_filename)) {
|
||||
rrdtool_create ($rrd_filename, " DS:total:GAUGE:600:0:U DS:active:GAUGE:600:0:U" . $config['rrd_rra']);
|
||||
}
|
||||
rrdtool_update ($rrd_filename, "N:" . $total . ":" . $active);
|
||||
|
||||
$fields = array(
|
||||
'total' => $total,
|
||||
'active' => $active,
|
||||
);
|
||||
|
||||
rrdtool_update ($rrd_filename, $fields);
|
||||
|
||||
$graphs['cisco-iosmtp'] = TRUE;
|
||||
echo (" Cisco IOS MTP ");
|
||||
}
|
||||
unset($rrd_filename, $total, $active, $available);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user