mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
More updates for influx
This commit is contained in:
@@ -56,6 +56,9 @@ if ($device['type'] == 'wireless' && $device['os'] == 'arubaos') {
|
||||
);
|
||||
$ret = rrdtool_update($rrdfile, $fields);
|
||||
|
||||
$tags = array();
|
||||
influx_update($device,'aruba-controller',$tags,$fields);
|
||||
|
||||
// also save the info about how many clients in the same place as the wireless module
|
||||
$wificlientsrrd = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('wificlients-radio1.rrd');
|
||||
|
||||
@@ -68,6 +71,9 @@ if ($device['type'] == 'wireless' && $device['os'] == 'arubaos') {
|
||||
);
|
||||
rrdtool_update($wificlientsrrd, $fields);
|
||||
|
||||
$tags = array('radio' => '1');
|
||||
influx_update($device,'wificlients',$tags,$fields);
|
||||
|
||||
$graphs['wifi_clients'] = true;
|
||||
|
||||
|
||||
@@ -127,6 +133,9 @@ if ($device['type'] == 'wireless' && $device['os'] == 'arubaos') {
|
||||
|
||||
rrdtool_update($rrd_file, $fields);
|
||||
|
||||
$tags = array('name' => $name, 'radionum' => $radionum);
|
||||
influx_update($device,'aruba',$tags,$fields);
|
||||
|
||||
}
|
||||
|
||||
// generate the mac address
|
||||
|
||||
Reference in New Issue
Block a user