diff --git a/AUTHORS.md b/AUTHORS.md index 6ae497f9e4..6ff840e070 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -57,5 +57,6 @@ Contributors to LibreNMS: - Nils Steinger (n-st) - Mark Nagel (ciscoqid) - Sławomir Paszkiewicz (paszczus) +- Frederik Mogensen (mogensen) [1]: http://observium.org/ "Observium web site" diff --git a/html/includes/graphs/device/ciscowlc_numaps.inc.php b/html/includes/graphs/device/ciscowlc_numaps.inc.php new file mode 100644 index 0000000000..c8507252f2 --- /dev/null +++ b/html/includes/graphs/device/ciscowlc_numaps.inc.php @@ -0,0 +1,20 @@ + $value) { + $numClients += $value['bsnApIfNoOfUsers']; +} + +$rrdfile = $host_rrd.'/ciscowlc'.safename('.rrd'); +if (!is_file($rrdfile)) { + rrdtool_create($rrdfile, ' --step 300 DS:NUMAPS:GAUGE:600:0:12500000000 DS:NUMCLIENTS:GAUGE:600:0:12500000000 '.$config['rrd_rra']); +} + +$fields = array( + 'NUMAPS' => $numAccessPoints, + 'NUMCLIENTS' => $numClients +); +$ret = rrdtool_update($rrdfile, $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'); + +if (!is_file($wificlientsrrd)) { + rrdtool_create($wificlientsrrd, '--step 300 DS:wificlients:GAUGE:600:-273:10000 '.$config['rrd_rra']); +} + +$fields = array( + 'wificlients' => $numClients +); + +rrdtool_update($wificlientsrrd, $fields); +$graphs['wifi_clients'] = true;