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:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user