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

Added support for DELLEMC-OS10-PRODUCTS-MIB (os: dell-os10) #10011

Merged
merged 3 commits into from Apr 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions includes/definitions/dell-os10.yaml
@@ -0,0 +1,16 @@
os: dell-os10
text: 'Dell EMC Networking OS10 Enterprise'
type: network
icon: dell
group: dell
mib_dir:
- dell
- dell-os10
over:
- { graph: device_bits, text: 'Device Traffic' }
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
discovery:
- sysObjectID:
# DELLEMC-OS10-PRODUCTS-MIB::os10Products
- .1.3.6.1.4.1.674.11000.5000.100.2.
47 changes: 47 additions & 0 deletions includes/definitions/discovery/dell-os10.yaml
@@ -0,0 +1,47 @@
mib: DELLEMC-OS10-CHASSIS-MIB
modules:
sensors:
temperature:
data:
-
oid: os10ChassisTable
value: os10ChassisTemp
num_oid: '.1.3.6.1.4.1.674.11000.5000.100.4.1.1.3.1.11.{{ $index }}'
descr: 'Chassis {{ $index }}'
-
oid: os10CardTable
value: os10CardTemp
num_oid: '.1.3.6.1.4.1.674.11000.5000.100.4.1.1.4.1.5.{{ $index }}'
descr: 'Card {{ $index }}'
state:
data:
-
oid: os10FanTable
value: os10FanOperStatus
num_oid: '.1.3.6.1.4.1.674.11000.5000.100.4.1.2.3.1.7.{{ $index }}'
descr: 'Fan {{ $index }}'
group: Fans
state_name: os10FanOperStatus
states:
- { value: 1, descr: normal, graph: 1, generic: 0 }
- { value: 2, descr: abnormal, graph: 1, generic: 2 }
-
oid: os10FanTrayTable
value: os10FanTrayOperStatus
num_oid: '.1.3.6.1.4.1.674.11000.5000.100.4.1.2.2.1.4.{{ $index }}'
descr: 'Fan Tray {{ $index }}'
group: Fans
state_name: os10FanTrayOperStatus
states:
- { value: 1, descr: normal, graph: 1, generic: 0 }
- { value: 2, descr: abnormal, graph: 1, generic: 2 }
-
oid: os10PowerSupplyTable
value: os10PowerSupplyOperStatus
num_oid: '.1.3.6.1.4.1.674.11000.5000.100.4.1.2.1.1.4.{{ $index }}'
descr: 'PSU {{ $index }}'
group: PSUs
state_name: os10PowerSupplyOperStatus
states:
- { value: 1, descr: normal, graph: 1, generic: 0 }
- { value: 2, descr: abnormal, graph: 1, generic: 2 }
9 changes: 9 additions & 0 deletions includes/polling/os/dell-os10.inc.php
@@ -0,0 +1,9 @@
<?php

// DELLEMC-OS10-PRODUCTS-MIB
$dell_os10_hardware = snmp_get_multi($device, ['os10ChassisType.1', 'os10ChassisHwRev.1', 'os10ChassisServiceTag.1', 'os10ChassisExpServiceCode.1', 'os10ChassisProductSN.1'], '-OQUs', 'DELLEMC-OS10-CHASSIS-MIB');

$hardware = $dell_os10_hardware[1]['os10ChassisType'];
$version = $dell_os10_hardware[1]['os10ChassisHwRev'];
$serial = $dell_os10_hardware[1]['os10ChassisProductSN'];
$features = $dell_os10_hardware[1]['os10ChassisServiceTag'] . '/' . $dell_os10_hardware[1]['os10ChassisExpServiceCode'];