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

Improved sensors for the Panduit PDU device. #15975

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 44 additions & 6 deletions includes/definitions/discovery/panduit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ modules:
skip_values:
-
oid: pdug5GroupName
op: 'not_contains'
value: 'B'
op: '='
value: '.'
-
oid: pdug5InputEntry
value: pdug5InputPowerWatts
Expand All @@ -45,8 +45,8 @@ modules:
skip_values:
-
oid: pdug5GroupName
op: 'not_contains'
value: 'B'
op: '='
value: '.'
-
oid: pdug5InputEntry
value: pdug5InputTotalCurrent
Expand All @@ -65,12 +65,16 @@ modules:
divisor: 10
descr: 'Group {{ $pdug5GroupName }} Voltage'
index: 'pdug5GroupVoltage.{{ $index }}'
high_limit: pdug5GroupVoltageThUpperCritical
warn_limit: pdug5GroupVoltageThUpperWarning
low_high_limit: pdug5GroupVoltageThLowerCritical
low_warn_limit: pdug5GroupVoltageThLowerWarning
snmp_flags: ['-ObsaQ']
skip_values:
-
oid: pdug5GroupName
op: 'not_contains'
value: 'B'
op: '='
value: '.'

frequency:
data:
Expand All @@ -81,3 +85,37 @@ modules:
divisor: 10
descr: 'Input frequency'
snmp_flags: ['-ObsaQ']

temperature:
data:
-
oid: pdug5TemperatureEntry
value: pdug5TemperatureValue
num_oid: '.1.3.6.1.4.1.19536.10.1.4.2.1.4.{{ $index }}'
multiplier: 1
descr: 'pdug5TemperatureName'
high_limit: pdug5TemperatureThUpperCritical
warn_limit: pdug5TemperatureThUpperWarning
snmp_flags: ['-ObsaQ']
skip_values:
-
oid: pdug5TemperatureProbeStatus
op: '='
value: 'disconnected'

humidity:
data:
-
oid: pdug5HumidityEntry
value: pdug5HumidityValue
num_oid: '.1.3.6.1.4.1.19536.10.1.4.3.1.4.{{ $index }}'
divisor: 1
descr: 'pdug5HumidityName'
high_limit: 'pdug5HumidityThUpperCritical'
warn_limit: 'pdug5HumidityThUpperWarning'
snmp_flags: ['-ObsaQ']
skip_values:
-
oid: pdug5HumidityProbeStatus
op: '='
value: 'disconnected'
2 changes: 2 additions & 0 deletions includes/definitions/panduit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ over:
- { graph: device_current, text: Current }
- { graph: device_voltage, text: Voltage }
- { graph: device_power, text: Power }
- { graph: device_temperature, text: Temperature }
- { graph: device_humidity, text: Humidity }
discovery:
-
sysObjectID: .1.3.6.1.4.1.19536
52 changes: 26 additions & 26 deletions tests/data/panduit.json
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit": null,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low": null,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
Expand Down Expand Up @@ -620,10 +620,10 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 229.7,
"sensor_limit": 264.155,
"sensor_limit_warn": null,
"sensor_limit_low": 195.245,
"sensor_limit_low_warn": null,
"sensor_limit": 0,
"sensor_limit_warn": 0,
"sensor_limit_low": null,
"sensor_limit_low_warn": 0,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
Expand All @@ -645,10 +645,10 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 230.5,
"sensor_limit": 265.075,
"sensor_limit_warn": null,
"sensor_limit_low": 195.925,
"sensor_limit_low_warn": null,
"sensor_limit": 0,
"sensor_limit_warn": 0,
"sensor_limit_low": null,
"sensor_limit_low_warn": 0,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
Expand All @@ -670,10 +670,10 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 228.2,
"sensor_limit": 262.43,
"sensor_limit_warn": null,
"sensor_limit_low": 193.97,
"sensor_limit_low_warn": null,
"sensor_limit": 0,
"sensor_limit_warn": 0,
"sensor_limit_low": null,
"sensor_limit_low_warn": 0,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
Expand All @@ -695,10 +695,10 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 228.5,
"sensor_limit": 262.775,
"sensor_limit_warn": null,
"sensor_limit_low": 194.225,
"sensor_limit_low_warn": null,
"sensor_limit": 0,
"sensor_limit_warn": 0,
"sensor_limit_low": null,
"sensor_limit_low_warn": 0,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
Expand All @@ -720,10 +720,10 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 230.7,
"sensor_limit": 265.305,
"sensor_limit_warn": null,
"sensor_limit_low": 196.095,
"sensor_limit_low_warn": null,
"sensor_limit": 0,
"sensor_limit_warn": 0,
"sensor_limit_low": null,
"sensor_limit_low_warn": 0,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
Expand All @@ -745,10 +745,10 @@
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 228.6,
"sensor_limit": 262.89,
"sensor_limit_warn": null,
"sensor_limit_low": 194.31,
"sensor_limit_low_warn": null,
"sensor_limit": 0,
"sensor_limit_warn": 0,
"sensor_limit_low": null,
"sensor_limit_low_warn": 0,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
Expand Down
Loading