Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ewc: more WirelessSensors and processor/mempools support #8294

Merged
merged 3 commits into from Mar 5, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.
+22 −9
Diff settings

Always

Just for now

Enable processor/mempool support for ewc using existing enterasys imp…

…lementation
  • Loading branch information...
trs80 committed Feb 25, 2018
commit 668982cad7cf6eb07e34a732da8f0f8efe89a235
Copy path View file
@@ -152,14 +152,14 @@ public function discoverWirelessErrors()
$sensors = array();
foreach ($oids as $index => $entry) {
$name = $ap_interfaces[explode('.',$index)[0]];
$name = $ap_interfaces[explode('.', $index)[0]];
$sensors[] = new WirelessSensor(
'errors',
$this->getDeviceId(),
'.1.3.6.1.4.1.4329.15.3.5.2.5.1.18.' . $index,
'ewc',
$index . 'Retx',
"Retransmits ($name radio " . explode('.',$index)[1]. ")"
"Retransmits ($name radio " . explode('.', $index)[1]. ")"
);
}
return $sensors;
@@ -237,14 +237,14 @@ public function discoverWirelessRssi()
$sensors = array();
foreach ($oids as $index => $entry) {
$name = $ap_interfaces[explode('.',$index)[0]];
$name = $ap_interfaces[explode('.', $index)[0]];
$sensors[] = new WirelessSensor(
'rssi',
$this->getDeviceId(),
'.1.3.6.1.4.1.4329.15.3.5.2.5.1.9.' . $index,
'ewc',
$index,
"RSS ($name radio " . explode('.',$index)[1]. ")"
"RSS ($name radio " . explode('.', $index)[1]. ")"
);
}
return $sensors;
@@ -263,14 +263,14 @@ public function discoverWirelessSnr()
$sensors = array();
foreach ($oids as $index => $entry) {
$name = $ap_interfaces[explode('.',$index)[0]];
$name = $ap_interfaces[explode('.', $index)[0]];
$sensors[] = new WirelessSensor(
'snr',
$this->getDeviceId(),
'.1.3.6.1.4.1.4329.15.3.5.2.5.1.13.' . $index,
'ewc',
$index,
"SNR ($name radio " . explode('.',$index)[1]. ")"
"SNR ($name radio " . explode('.', $index)[1]. ")"
);
}
return $sensors;
@@ -289,14 +289,14 @@ public function discoverWirelessUtilization()
$sensors = array();
foreach ($oids as $index => $entry) {
$name = $ap_interfaces[explode('.',$index)[0]];
$name = $ap_interfaces[explode('.', $index)[0]];
$sensors[] = new WirelessSensor(
'utilization',
$this->getDeviceId(),
'.1.3.6.1.4.1.4329.15.3.5.2.5.1.5.' . $index,
'ewc',
$index,
"Utilization ($name radio " . explode('.',$index)[1]. ")"
"Utilization ($name radio " . explode('.', $index)[1]. ")"
);
}
return $sensors;
@@ -0,0 +1,9 @@
mib: ENTERASYS-RESOURCE-UTILIZATION-MIB
modules:
processors:
data:
-
oid: etsysResourceCpuLoad5min
num_oid: '.1.3.6.1.4.1.5624.1.2.49.1.1.1.1.4.{{ $index }}'
index: '{{ $count }}'
precision: 10
Copy path View file
@@ -4,8 +4,12 @@ type: wireless
icon: extreme
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
- { graph: device_wireless_ap-count, text: 'Connected APs' }
- { graph: device_wireless_clients, text: 'Connected Clients' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.4329.15.1.1.
mib_dir:
- enterasys
@@ -11,7 +11,7 @@
* the source code distribution for details.
*/
if ($device['os'] == 'enterasys') {
if ($device['os'] == 'enterasys' || $device['os'] == 'ewc') {
$enterasys_mem = snmpwalk_cache_threepart_oid($device, 'etsysResourceStorageTable', array(), 'ENTERASYS-RESOURCE-UTILIZATION-MIB');
foreach ($enterasys_mem as $index => $mem_data) {
foreach ($mem_data['ram'] as $mem_id => $ram) {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.