mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
ArubaOS - fix client count polling, add ap count polling. (#10231)
* fix client count polling, add ap count polling. * Set low warning/critical thresholds for AP count sensors * Add Aruba AP Count Warning and Critical Alerts to collection, lint alert_rules.json * add newline at end of alert_rules.json * add/update tests/data/arubaos*.json test data
This commit is contained in:
committed by
Tony Murray
parent
90a67c2ece
commit
a000b4a6de
@@ -27,6 +27,7 @@ namespace LibreNMS\OS;
|
||||
|
||||
use LibreNMS\Device\WirelessSensor;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessClientsDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessApCountDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessFrequencyDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessNoiseFloorDiscovery;
|
||||
use LibreNMS\Interfaces\Discovery\Sensors\WirelessPowerDiscovery;
|
||||
@@ -35,6 +36,7 @@ use LibreNMS\Interfaces\Polling\Sensors\WirelessFrequencyPolling;
|
||||
use LibreNMS\OS;
|
||||
|
||||
class Arubaos extends OS implements
|
||||
WirelessApCountDiscovery,
|
||||
WirelessClientsDiscovery,
|
||||
WirelessFrequencyDiscovery,
|
||||
WirelessFrequencyPolling,
|
||||
@@ -50,12 +52,60 @@ class Arubaos extends OS implements
|
||||
*/
|
||||
public function discoverWirelessClients()
|
||||
{
|
||||
$oid = '.1.3.6.1.4.1.14823.2.2.1.1.3.2'; // WLSX-SWITCH-MIB::wlsxSwitchTotalNumStationsAssociated
|
||||
$oid = '.1.3.6.1.4.1.14823.2.2.1.1.3.2.0'; // WLSX-SWITCH-MIB::wlsxSwitchTotalNumStationsAssociated.0
|
||||
return [
|
||||
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'arubaos', 1, 'Clients')
|
||||
new WirelessSensor('clients', $this->getDeviceId(), $oid, 'arubaos', 1, 'Client Count')
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Discover wireless AP counts. Type is ap-count.
|
||||
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
|
||||
*
|
||||
* @return array Sensors
|
||||
*/
|
||||
public function discoverWirelessApCount()
|
||||
{
|
||||
$mib = 'WLSX-SWITCH-MIB';
|
||||
$data = $this->getCacheTable('wlsxSwitchTotalNumAccessPoints', $mib);
|
||||
$sensors = [];
|
||||
|
||||
foreach ($data as $key => $value) {
|
||||
$oid = snmp_translate($mib.'::'.$key, 'ALL', 'arubaos', '-On', null);
|
||||
$value = intval($value);
|
||||
|
||||
$low_warn_const = 1; // Default warning threshold = 1 down AP
|
||||
$low_limit_const = 10; // Default critical threshold = 10 down APs
|
||||
|
||||
// Calculate default thresholds based on current AP count
|
||||
$low_warn = $value - $low_warn_const;
|
||||
$low_limit = $value - $low_limit_const;
|
||||
|
||||
// For small current AP counts, set thresholds differently:
|
||||
// If AP count is less than twice the default critical threshold,
|
||||
// then set the critical threshold to roughly half the current AP count.
|
||||
if ($value < $low_limit_const * 2) {
|
||||
$low_limit = round($value / 2, 0, PHP_ROUND_HALF_DOWN);
|
||||
}
|
||||
// If AP count is less than the default warning hreshold,
|
||||
// then don't bother setting thresholds.
|
||||
if ($value <= $low_warn_const) {
|
||||
$low_warn = null;
|
||||
$low_limit = null;
|
||||
}
|
||||
|
||||
// If AP count is less than twice the default warning threshold,
|
||||
// then set the critical threshold to zero.
|
||||
if ($value > 0 && $value <= $low_warn_const * 2) {
|
||||
$low_limit = 0;
|
||||
}
|
||||
|
||||
$sensors[] = new WirelessSensor('ap-count', $this->getDeviceId(), $oid, 'arubaos', 1, 'AP Count', $value, 1, 1, 'sum', null, null, $low_limit, null, $low_warn);
|
||||
}
|
||||
|
||||
return $sensors;
|
||||
}
|
||||
|
||||
/**
|
||||
* Discover wireless frequency. This is in MHz. Type is frequency.
|
||||
* Returns an array of LibreNMS\Device\Sensor objects that have been discovered
|
||||
|
@@ -3,8 +3,10 @@ text: ArubaOS
|
||||
type: wireless
|
||||
icon: aruba
|
||||
over:
|
||||
- { graph: device_arubacontroller_numaps, text: 'Number of APs' }
|
||||
- { graph: device_arubacontroller_numclients, text: 'Number of Clients' }
|
||||
- { graph: device_wireless_ap-count, text: 'AP Count' }
|
||||
- { graph: device_wireless_clients, text: 'Client Count' }
|
||||
- { graph: device_arubacontroller_numaps, text: 'Number of APs (Legacy)' }
|
||||
- { graph: device_arubacontroller_numclients, text: 'Number of Clients (Legacy)' }
|
||||
poller_modules:
|
||||
aruba-controller: true
|
||||
discovery:
|
||||
|
@@ -58,6 +58,18 @@
|
||||
"name": "Wireless Sensor under limit",
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"rule": "wireless_sensors.sensor_type == \"arubaos\" && wireless_sensors.sensor_class == \"ap-count\" && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && wireless_sensors.sensor_current <= `wireless_sensors.sensor_limit_low_warn` && wireless_sensors.sensor_current > `wireless_sensors.sensor_limit_low`",
|
||||
"name": "Aruba Wireless AP Count Low Warning",
|
||||
"severity": "warning",
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"rule": "wireless_sensors.sensor_type == \"arubaos\" && wireless_sensors.sensor_class == \"ap-count\" && wireless_sensors.sensor_alert = \"1\" && macros.device_up = \"1\" && wireless_sensors.sensor_current <= `wireless_sensors.sensor_limit_low`",
|
||||
"name": "Aruba Wireless AP Count Low Critical",
|
||||
"severity": "critical",
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"rule": "macros.state_sensor_critical && sensors.sensor_alert = 1",
|
||||
"name": "State Sensor Critical",
|
||||
@@ -193,7 +205,7 @@
|
||||
"name": "UPS has a heavy load"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.3.2.5.1.1.37.\"",
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.3.2.5.1.1.37.\"",
|
||||
"name": "HPE iLo Server drive degraded/failure"
|
||||
},
|
||||
{
|
||||
@@ -201,15 +213,15 @@
|
||||
"name": "HPE iLo Server Power Supply degraded/failure"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.6.2.6.7.1.9.\"",
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.6.2.6.7.1.9.\"",
|
||||
"name": "HPE iLo Server Fan degraded/failure"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.1.2.2.1.1.6.\"",
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.1.2.2.1.1.6.\"",
|
||||
"name": "HPE iLo Server CPU degraded/failure"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.6.2.14.13.1.20.\"",
|
||||
"rule": "sensors.sensor_current ~ \"[3-4]\" && sensors.sensor_oid = \".1.3.6.1.4.1.232.6.2.14.13.1.20.\"",
|
||||
"name": "HPE iLo Server Memory degraded/failure"
|
||||
},
|
||||
{
|
||||
@@ -249,32 +261,32 @@
|
||||
"name": "Synology NAS has a failed fan status"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"cpuFanStatusState\" && sensors.sensor_current = \"2\"",
|
||||
"name": "Synology NAS has a failed CPU fan status"
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"cpuFanStatusState\" && sensors.sensor_current = \"2\"",
|
||||
"name": "Synology NAS has a failed CPU fan status"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"upgradeAvailableState\" && sensors.sensor_current = \"1\"",
|
||||
"name": "Synology NAS has a new upgrade available"
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"upgradeAvailableState\" && sensors.sensor_current = \"1\"",
|
||||
"name": "Synology NAS has a new upgrade available"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"raidStatusState\" && sensors.sensor_current = \"[11-12]\"",
|
||||
"name": "Synology NAS has a bad RAID status"
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"raidStatusState\" && sensors.sensor_current = \"[11-12]\"",
|
||||
"name": "Synology NAS has a bad RAID status"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"diskStatusState\" && sensors.sensor_current = \"[4-5]\"",
|
||||
"name": "Synology NAS has a bad disk status"
|
||||
"rule": "devices.os = \"dsm\" && sensors.sensor_type = \"diskStatusState\" && sensors.sensor_current = \"[4-5]\"",
|
||||
"name": "Synology NAS has a bad disk status"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"f5\" && sensors.sensor_type = \"sysChassisPowerSupplyStatus\" && sensors.sensor_current = \"0\"",
|
||||
"name": "F5 appliance has a bad power supply"
|
||||
"rule": "devices.os = \"f5\" && sensors.sensor_type = \"sysChassisPowerSupplyStatus\" && sensors.sensor_current = \"0\"",
|
||||
"name": "F5 appliance has a bad power supply"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"f5\" && sensors.sensor_type = \"sysChassisFanStatus\" && sensors.sensor_current = \"0\"",
|
||||
"name": "F5 appliance has a bad fan"
|
||||
"rule": "devices.os = \"f5\" && sensors.sensor_type = \"sysChassisFanStatus\" && sensors.sensor_current = \"0\"",
|
||||
"name": "F5 appliance has a bad fan"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"nxos\" && sensors.sensor_type = \"cefcFanTrayOperStatus\" && sensors.sensor_current = \"[3-4]\"",
|
||||
"name": "Cisco NX-OS device has a bad fan"
|
||||
"rule": "devices.os = \"nxos\" && sensors.sensor_type = \"cefcFanTrayOperStatus\" && sensors.sensor_current = \"[3-4]\"",
|
||||
"name": "Cisco NX-OS device has a bad fan"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"panos\" & sensors.sensor_type = \"panSysHAState\" && sensors.sensor_current = \"1\" && sensors.sensor_prev = \"2\"",
|
||||
@@ -333,71 +345,71 @@
|
||||
"name": "Dell iDRAC Processor Status Critical"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"5\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.1100.50.1.5\"",
|
||||
"name": "Dell iDRAC Memory Status Critical"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"10\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.600.20.1.5\"",
|
||||
"name": "Dell iDRAC Voltage Probe Status Failed"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"10\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.600.30.1.5\"",
|
||||
"name": "Dell iDRAC Amperage Probe Status Failed"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"10\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.600.50.1.5\"",
|
||||
"name": "Dell iDRAC Battery Status Failed"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"[5|6]\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.2.2.1\"",
|
||||
"name": "Dell iDRAC Global System Status Critical/NonRecoverable"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"5\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.1100.50.1.5\"",
|
||||
"name": "Dell iDRAC Memory Status Critical"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"10\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.600.20.1.5\"",
|
||||
"name": "Dell iDRAC Voltage Probe Status Failed"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"10\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.600.30.1.5\"",
|
||||
"name": "Dell iDRAC Amperage Probe Status Failed"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"10\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.5.4.600.50.1.5\"",
|
||||
"name": "Dell iDRAC Battery Status Failed"
|
||||
},
|
||||
{
|
||||
"rule": "sensors.sensor_current ~ \"[5|6]\" && sensors.sensor_oid = \".1.3.6.1.4.1.674.10892.2.2.1\"",
|
||||
"name": "Dell iDRAC Global System Status Critical/NonRecoverable"
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"Netscaler\" && sensors.sensor_type = \"sysHighAvailabilityMode\" && sensors.sensor_current != `sensors.sensor_prev` && sensors.lastupdate < \"DATE_SUB(NOW(),INTERVAL 5 MINUTE)\" && macros.device_up = \"1\"",
|
||||
"name": "Netscaler HA node mode change"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"Netscaler\" && sensors.sensor_type = \"haCurState\" && sensors.sensor_current ~ \"[1|8|9]\" && macros.device_up = \"1\"",
|
||||
"name": "Netscaler HA node state Warning"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "devices.os = \"Netscaler\" && sensors.sensor_type = \"haCurState\" && sensors.sensor_current ~ \"[2|4|5|7|10|11]\" && macros.device_up = \"1\"",
|
||||
"name": "Netscaler HA node state Critical"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.ssh_total_to>'5'",
|
||||
"name": "SSH Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.http_total_to>'100'",
|
||||
"name": "HTTP Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.https_total_to>'100'",
|
||||
"name": "HTTPS Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.smtp_total_from>'10'",
|
||||
"name": "SMTP Connections From"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.smtp_total_to>'30'",
|
||||
"name": "SMTP Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.ftp_total_to>'5'",
|
||||
"name": "FTP Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.imap_total_to>'20'",
|
||||
"name": "IMAP Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.imaps_total_to>'20'",
|
||||
"name": "IMAPS Connections To"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
"rule": "%applications.app_type='portactivity' && %applications_metrics.imaps_total_from>'0'",
|
||||
"name": "IRCD Connections From"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
110
tests/data/arubaos.json
Normal file
110
tests/data/arubaos.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.14823.1.1.9999",
|
||||
"sysDescr": "ArubaOS Version 6.4.4.4-4.2.3.1",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.14823.1.1.9999",
|
||||
"sysDescr": "ArubaOS Version 6.4.4.4-4.2.3.1",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": "6.4.4.4-4.2.3.1",
|
||||
"features": "Local Controller for ",
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"wireless": {
|
||||
"discovery": {
|
||||
"wireless_sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "utilization",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "power",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio : Tx Power",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "noise-floor",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
110
tests/data/arubaos_aosw.json
Normal file
110
tests/data/arubaos_aosw.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.6486.800.1.1.2.2.2.1.1.4",
|
||||
"sysDescr": "AOS-W (MODEL: OAW-6000), Version 6.3.1.23 (56687)",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.6486.800.1.1.2.2.2.1.1.4",
|
||||
"sysDescr": "AOS-W (MODEL: OAW-6000), Version 6.3.1.23 (56687)",
|
||||
"sysContact": null,
|
||||
"version": "6.3.1.23",
|
||||
"hardware": "OAW-6000",
|
||||
"features": "Local Controller for ",
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"wireless": {
|
||||
"discovery": {
|
||||
"wireless_sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "utilization",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "power",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio : Tx Power",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "noise-floor",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
@@ -10,11 +10,11 @@
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"location": null,
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg"
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -28,11 +28,11 @@
|
||||
"version": "8.2.0.2",
|
||||
"hardware": "Aruba7210",
|
||||
"features": "Local Controller for 10.235.132.234",
|
||||
"location": "<private>",
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg"
|
||||
"icon": "aruba.svg",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -184,5 +184,75 @@
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
},
|
||||
"wireless": {
|
||||
"discovery": {
|
||||
"wireless_sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "utilization",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "power",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio : Tx Power",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "noise-floor",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
||||
|
110
tests/data/arubaos_powerconnect.json
Normal file
110
tests/data/arubaos_powerconnect.json
Normal file
@@ -0,0 +1,110 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.674.10895.5027",
|
||||
"sysDescr": "ArubaOS (MODEL: Dell PowerConnect W-7210 Controller), Version 6.4.4.8 (55228)",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "",
|
||||
"sysObjectID": ".1.3.6.1.4.1.674.10895.5027",
|
||||
"sysDescr": "ArubaOS (MODEL: Dell PowerConnect W-7210 Controller), Version 6.4.4.8 (55228)",
|
||||
"sysContact": null,
|
||||
"version": "W-7210",
|
||||
"hardware": "Dell",
|
||||
"features": "Local Controller for ",
|
||||
"os": "arubaos",
|
||||
"type": "wireless",
|
||||
"serial": null,
|
||||
"icon": "aruba.svg",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"wireless": {
|
||||
"discovery": {
|
||||
"wireless_sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "utilization",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "power",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio : Tx Power",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "noise-floor",
|
||||
"sensor_index": "",
|
||||
"sensor_type": "arubaos-iap",
|
||||
"sensor_descr": "Radio ",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_aggregator": "sum",
|
||||
"sensor_current": 0,
|
||||
"sensor_prev": null,
|
||||
"sensor_limit": null,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": null,
|
||||
"sensor_limit_low_warn": null,
|
||||
"sensor_alert": 1,
|
||||
"sensor_custom": "No",
|
||||
"entPhysicalIndex": null,
|
||||
"entPhysicalIndex_measured": null,
|
||||
"sensor_oids": "[\".\"]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user