mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
basic support for polling number of connected clients on Aironet and Airport devices, minor fixups
git-svn-id: http://www.observium.org/svn/observer/trunk@1418 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
include("common.inc.php");
|
||||
$device = device_by_id_cache($id);
|
||||
|
||||
$rrd_options .= " -l 0 -E ";
|
||||
|
||||
$radio1 = $config['rrd_dir'] . "/".$device['hostname']."/wificlients-radio1.rrd";
|
||||
$radio2 = $config['rrd_dir'] . "/".$device['hostname']."/wificlients-radio2.rrd";
|
||||
|
||||
if (file_exists($radio1))
|
||||
{
|
||||
$rrd_options .= " COMMENT:' Cur Min Max\\n'";
|
||||
$rrd_options .= " DEF:wificlients1=".$radio1.":wificlients:AVERAGE ";
|
||||
$rrd_options .= " LINE1:wificlients1#CC0000:'Clients on Radio1 ' ";
|
||||
$rrd_options .= " GPRINT:wificlients1:LAST:%3.0lf ";
|
||||
$rrd_options .= " GPRINT:wificlients1:MIN:%3.0lf ";
|
||||
$rrd_options .= " GPRINT:wificlients1:MAX:%3.0lf\\\l ";
|
||||
if (file_exists($radio2))
|
||||
{
|
||||
$rrd_options .= " DEF:wificlients2=".$radio2.":wificlients:AVERAGE ";
|
||||
$rrd_options .= " LINE1:wificlients2#008C00:'Clients on Radio2 ' ";
|
||||
$rrd_options .= " GPRINT:wificlients2:LAST:%3.0lf ";
|
||||
$rrd_options .= " GPRINT:wificlients2:MIN:%3.0lf ";
|
||||
$rrd_options .= " GPRINT:wificlients2:MAX:%3.0lf\\\l ";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
if(is_file($config['rrd_dir'] . "/" . $device['hostname'] ."/wificlients-all.rrd")) {
|
||||
$graph_title = "Wireless clients";
|
||||
$graph_type = "device_wificlients";
|
||||
include ("includes/print-device-graph.php");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user