Updated rrdtool_update() to use new array format

This commit is contained in:
laf
2015-08-18 16:26:55 +00:00
parent 84a0b8f676
commit 987634e463
65 changed files with 591 additions and 271 deletions

View File

@@ -36,5 +36,13 @@ if (!is_file($rrdfile)) {
);
}
$rrdupdate = "N:$rxbytes:$txbytes:$rxpkts:$rxbytes:$calls:$registrations";
rrdtool_update("$rrdfile", $rrdupdate);
$fields = array(
'INOCTETS' => $rxbytes,
'OUTOCTETS' => $txbytes,
'INPKTS' => $rxpkts,
'OUTPKTS' => $rxbytes,
'CALLS' => $calls,
'REGISTRATIONS' => $registrations,
);
rrdtool_update("$rrdfile", $fields);