More updates for influx

This commit is contained in:
laf
2015-08-19 20:58:02 +00:00
parent d2676213a4
commit 433562d351
66 changed files with 355 additions and 1 deletions

View File

@@ -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