Added support for AirOS and AirFibre from UBNT

This commit is contained in:
laf
2015-04-03 18:59:58 +01:00
parent dc6c166804
commit ac4eba78e4
35 changed files with 3192 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'mbps Now Min Max\\n'";
$rrd_options .= " DEF:rxCapacity=".$rrdfilename.":rxCapacity:AVERAGE ";
$rrd_options .= " DEF:txCapacity=".$rrdfilename.":txCapacity:AVERAGE ";
$rrd_options .= " CDEF:rxCapacityC=rxCapacity,1000000,/ ";
$rrd_options .= " CDEF:txCapacityC=txCapacity,1000000,/ ";
$rrd_options .= " LINE1:rxCapacityC#00FF00:'Rx Rate ' ";
$rrd_options .= " GPRINT:rxCapacityC:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:rxCapacityC:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:rxCapacityC:MAX:%0.2lf%s\\\l ";
$rrd_options .= " LINE1:txCapacityC#CC0000:'Tx Rate ' ";
$rrd_options .= " GPRINT:txCapacityC:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:txCapacityC:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:txCapacityC:MAX:%0.2lf%s\\\l ";
}
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Metres Now Min Max\\n'";
$rrd_options .= " DEF:radioLinkDistM=".$rrdfilename.":radioLinkDistM:AVERAGE ";
$rrd_options .= " LINE1:radioLinkDistM#CC0000:'Distance ' ";
$rrd_options .= " GPRINT:radioLinkDistM:LAST:%3.2lf%s ";
$rrd_options .= " GPRINT:radioLinkDistM:MIN:%3.2lf%s ";
$rrd_options .= " GPRINT:radioLinkDistM:MAX:%3.2lf%s\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Octets Now Min Max\\n'";
$rrd_options .= " DEF:rxoctetsAll=".$rrdfilename.":rxoctetsAll:AVERAGE ";
$rrd_options .= " LINE1:rxoctetsAll#00CC00:'Rx Octets ' ";
$rrd_options .= " GPRINT:rxoctetsAll:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:rxoctetsAll:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:rxoctetsAll:MAX:%0.2lf%s\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Octets Now Min Max\\n'";
$rrd_options .= " DEF:txoctetsAll=".$rrdfilename.":txoctetsAll:AVERAGE ";
$rrd_options .= " LINE1:txoctetsAll#CC0000:'Tx Octets ' ";
$rrd_options .= " GPRINT:txoctetsAll:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:txoctetsAll:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:txoctetsAll:MAX:%0.2lf%s\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Packets Now Min Max\\n'";
$rrd_options .= " DEF:rxpktsAll=".$rrdfilename.":rxpktsAll:AVERAGE ";
$rrd_options .= " LINE1:rxpktsAll#CC0000:'Rx Packets ' ";
$rrd_options .= " GPRINT:rxpktsAll:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:rxpktsAll:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:rxpktsAll:MAX:%0.2lf%s\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Packets Now Min Max\\n'";
$rrd_options .= " DEF:txpktsAll=".$rrdfilename.":txpktsAll:AVERAGE ";
$rrd_options .= " LINE1:txpktsAll#CC0000:'Tx Packets ' ";
$rrd_options .= " GPRINT:txpktsAll:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:txpktsAll:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:txpktsAll:MAX:%0.2lf%s\\\l ";
}
?>
@@ -0,0 +1,24 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:' Now Min Max\\n'";
$rrd_options .= " DEF:rxFrequency=".$rrdfilename.":rxFrequency:AVERAGE ";
$rrd_options .= " DEF:txFrequency=".$rrdfilename.":txFrequency:AVERAGE ";
$rrd_options .= " LINE1:rxFrequency#00FF00:'Rx Frequency ' ";
$rrd_options .= " GPRINT:rxFrequency:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:rxFrequency:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:rxFrequency:MAX:%0.2lf%s\\\l ";
$rrd_options .= " LINE1:txFrequency#CC0000:'Tx Frequency ' ";
$rrd_options .= " GPRINT:txFrequency:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:txFrequency:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:txFrequency:MAX:%0.2lf%s\\\l ";
}
?>
@@ -0,0 +1,24 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Celcius Now Min Max\\n'";
$rrd_options .= " DEF:radio0TempC=".$rrdfilename.":radio0TempC:AVERAGE ";
$rrd_options .= " DEF:radio1TempC=".$rrdfilename.":radio1TempC:AVERAGE ";
$rrd_options .= " LINE1:radio0TempC#00FF00:'Radio 0 ' ";
$rrd_options .= " GPRINT:radio0TempC:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:radio0TempC:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:radio0TempC:MAX:%0.2lf%s\\\l ";
$rrd_options .= " LINE1:radio1TempC#CC0000:'Radio 1 ' ";
$rrd_options .= " GPRINT:radio1TempC:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:radio1TempC:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:radio1TempC:MAX:%0.2lf%s\\\l ";
}
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airfiber-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:txPower=".$rrdfilename.":txPower:AVERAGE ";
$rrd_options .= " LINE1:txPower#CC0000:'Tx Power ' ";
$rrd_options .= " GPRINT:txPower:LAST:%3.2lf ";
$rrd_options .= " GPRINT:txPower:MIN:%3.2lf ";
$rrd_options .= " GPRINT:txPower:MAX:%3.2lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:' Now Min Max\\n'";
$rrd_options .= " DEF:AirMaxCapacity=".$rrdfilename.":AirMaxCapacity:AVERAGE ";
$rrd_options .= " LINE1:AirMaxCapacity#CC0000:'Percent ' ";
$rrd_options .= " GPRINT:AirMaxCapacity:LAST:%3.0lf ";
$rrd_options .= " GPRINT:AirMaxCapacity:MIN:%3.0lf ";
$rrd_options .= " GPRINT:AirMaxCapacity:MAX:%3.0lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:' Now Min Max\\n'";
$rrd_options .= " DEF:AirMaxQuality=".$rrdfilename.":AirMaxQuality:AVERAGE ";
$rrd_options .= " LINE1:AirMaxQuality#CC0000:'Percent ' ";
$rrd_options .= " GPRINT:AirMaxQuality:LAST:%3.0lf ";
$rrd_options .= " GPRINT:AirMaxQuality:MIN:%3.0lf ";
$rrd_options .= " GPRINT:AirMaxQuality:MAX:%3.0lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Metres Now Min Max\\n'";
$rrd_options .= " DEF:RadioDistance=".$rrdfilename.":RadioDistance:AVERAGE ";
$rrd_options .= " LINE1:RadioDistance#CC0000:'Distance ' ";
$rrd_options .= " GPRINT:RadioDistance:LAST:%3.2lf%s ";
$rrd_options .= " GPRINT:RadioDistance:MIN:%3.2lf%s ";
$rrd_options .= " GPRINT:RadioDistance:MAX:%3.2lf%s\\\l ";
}
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:' Now Min Max\\n'";
$rrd_options .= " DEF:RadioFreq=".$rrdfilename.":RadioFreq:AVERAGE ";
$rrd_options .= " LINE1:RadioFreq#CC0000:'Frequency ' ";
$rrd_options .= " GPRINT:RadioFreq:LAST:%3.2lf%s ";
$rrd_options .= " GPRINT:RadioFreq:MIN:%3.2lf%s ";
$rrd_options .= " GPRINT:RadioFreq:MAX:%3.2lf%s\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:RadioRssi_0=".$rrdfilename.":RadioRssi_0:AVERAGE ";
$rrd_options .= " LINE1:RadioRssi_0#CC0000:'RSSI ' ";
$rrd_options .= " GPRINT:RadioRssi_0:LAST:%3.2lf ";
$rrd_options .= " GPRINT:RadioRssi_0:MIN:%3.2lf ";
$rrd_options .= " GPRINT:RadioRssi_0:MAX:%3.2lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:RadioRssi_1=".$rrdfilename.":RadioRssi_1:AVERAGE ";
$rrd_options .= " LINE1:RadioRssi_1#00FF00:'RSSI ' ";
$rrd_options .= " GPRINT:RadioRssi_1:LAST:%3.2lf ";
$rrd_options .= " GPRINT:RadioRssi_1:MIN:%3.2lf ";
$rrd_options .= " GPRINT:RadioRssi_1:MAX:%3.2lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:RadioTxPower=".$rrdfilename.":RadioTxPower:AVERAGE ";
$rrd_options .= " LINE1:RadioTxPower#CC0000:'Tx Power ' ";
$rrd_options .= " GPRINT:RadioTxPower:LAST:%3.2lf ";
$rrd_options .= " GPRINT:RadioTxPower:MIN:%3.2lf ";
$rrd_options .= " GPRINT:RadioTxPower:MAX:%3.2lf\\\l ";
}
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'Percent Now Min Max\\n'";
$rrd_options .= " DEF:WlStatCcq=".$rrdfilename.":WlStatCcq:AVERAGE ";
$rrd_options .= " LINE1:WlStatCcq#CC0000:'CCQ ' ";
$rrd_options .= " GPRINT:WlStatCcq:LAST:%3.2lf ";
$rrd_options .= " GPRINT:WlStatCcq:MIN:%3.2lf ";
$rrd_options .= " GPRINT:WlStatCcq:MAX:%3.2lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:WlStatNoiseFloor=".$rrdfilename.":WlStatNoiseFloor:AVERAGE ";
$rrd_options .= " LINE1:WlStatNoiseFloor#CC0000:'Noise ' ";
$rrd_options .= " GPRINT:WlStatNoiseFloor:LAST:%3.2lf ";
$rrd_options .= " GPRINT:WlStatNoiseFloor:MIN:%3.2lf ";
$rrd_options .= " GPRINT:WlStatNoiseFloor:MAX:%3.2lf\\\l ";
}
?>
+19
View File
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:WlStatRssi=".$rrdfilename.":WlStatRssi:AVERAGE ";
$rrd_options .= " LINE1:WlStatRssi#CC0000:'RSSI ' ";
$rrd_options .= " GPRINT:WlStatRssi:LAST:%3.2lf ";
$rrd_options .= " GPRINT:WlStatRssi:MIN:%3.2lf ";
$rrd_options .= " GPRINT:WlStatRssi:MAX:%3.2lf\\\l ";
}
?>
@@ -0,0 +1,20 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'mbps Now Min Max\\n'";
$rrd_options .= " DEF:WlStatRxRate=".$rrdfilename.":WlStatRxRate:AVERAGE ";
$rrd_options .= " CDEF:WlStatRxRateC=WlStatRxRate,1000,/ ";
$rrd_options .= " LINE1:WlStatRxRateC#00FF00:'Rx Rate ' ";
$rrd_options .= " GPRINT:WlStatRxRateC:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:WlStatRxRateC:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:WlStatRxRateC:MAX:%0.2lf%s\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'dbm Now Min Max\\n'";
$rrd_options .= " DEF:WlStatSignal=".$rrdfilename.":WlStatSignal:AVERAGE ";
$rrd_options .= " LINE1:WlStatSignal#CC0000:'Signal ' ";
$rrd_options .= " GPRINT:WlStatSignal:LAST:%3.2lf ";
$rrd_options .= " GPRINT:WlStatSignal:MIN:%3.2lf ";
$rrd_options .= " GPRINT:WlStatSignal:MAX:%3.2lf\\\l ";
}
?>
@@ -0,0 +1,19 @@
<?php
include("includes/graphs/common.inc.php");
$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:' Now Min Max\\n'";
$rrd_options .= " DEF:WlStatStaCount=".$rrdfilename.":WlStatStaCount:AVERAGE ";
$rrd_options .= " LINE1:WlStatStaCount#CC0000:'Stations ' ";
$rrd_options .= " GPRINT:WlStatStaCount:LAST:%3.0lf ";
$rrd_options .= " GPRINT:WlStatStaCount:MIN:%3.0lf ";
$rrd_options .= " GPRINT:WlStatStaCount:MAX:%3.0lf\\\l ";
}
?>
@@ -0,0 +1,20 @@
<?php
include("includes/graphs/common.inc.php");
//$rrd_options .= " -l 0 -E ";
$rrdfilename = $config['rrd_dir'] . "/".$device['hostname']."/ubnt-airmax-mib.rrd";
if (file_exists($rrdfilename))
{
$rrd_options .= " COMMENT:'mbps Now Min Max\\n'";
$rrd_options .= " DEF:WlStatTxRate=".$rrdfilename.":WlStatTxRate:AVERAGE ";
$rrd_options .= " CDEF:WlStatTxRateC=WlStatTxRate,1000,/ ";
$rrd_options .= " LINE1:WlStatTxRateC#CC0000:'Tx Rate ' ";
$rrd_options .= " GPRINT:WlStatTxRateC:LAST:%0.2lf%s ";
$rrd_options .= " GPRINT:WlStatTxRateC:MIN:%0.2lf%s ";
$rrd_options .= " GPRINT:WlStatTxRateC:MAX:%0.2lf%s\\\l ";
}
?>