Fix up the Siteboss571 discovery yaml to split pdnOutputCurrentValue and pdnMainCurrentValue indexes (#16181)

* Update siteboss571.yaml - Tidy up descriptions and fix current sensors

Fix issue with current sensors 1.1 and 200.1 - these were being overwritten with the per-module sensors due to overlapping IDs. insert extra index definition for each type. this is a breaking change that will cause new RRD files to be created for the current sensors with the new index names.

* Update siteboss571_siteboss571.snmprec

update test data

* Update siteboss571_siteboss571.json

* Revert "Update siteboss571_siteboss571.snmprec"

This reverts commit b767dbc91b.

* Revert "Update siteboss571_siteboss571.json"

This reverts commit a144078ed8.

* Create siteboss571_siteboss571-2.snmprec

* Remove Siteboss571 PHP detection, add new json test output

* Update siteboss571_siteboss571.json with new discovery

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This commit is contained in:
Blair H
2024-07-10 09:02:40 +12:00
committed by GitHub
parent 1baf8f4a1f
commit 991424e543
5 changed files with 1795 additions and 1294 deletions

View File

@@ -4,7 +4,7 @@ modules:
sysDescr_regex: '/(?<hardware>SiteBoss \S+) (?<version>.*)/'
serial: '.1.3.6.1.4.1.3052.14.2.16.15.3.0'
location: '.1.3.6.1.4.1.3052.14.3.1.0'
sensors:
temperature:
data:
@@ -12,7 +12,7 @@ modules:
oid: esPointTable
value: esPointValueStr
num_oid: '.1.3.6.1.4.1.3052.14.1.1.1.1.7.{{ $index }}'
descr: esPointName
descr: 'Sensor: {{ $index }} | {{ $esPointName }}'
skip_values:
-
oid: esIndexPC
@@ -24,8 +24,8 @@ modules:
oid: esPointTable
value: esPointInEventState
num_oid: '.1.3.6.1.4.1.3052.14.1.1.1.1.5.{{ $index }}'
descr: esPointName
group: Contact Closures
descr: 'Contact: {{ $index }} | {{ $esPointName }}'
group: 'Contact Closures'
state_name: contactClosure
states:
- { value: 1, generic: 2, graph: 1, descr: Open }
@@ -43,8 +43,8 @@ modules:
oid: esPointTable
value: esPointValueInt
num_oid: '.1.3.6.1.4.1.3052.14.1.1.1.1.6.{{ $index }}'
descr: esPointName
group: Relay Outputs
descr: 'Relay: {{ $index }} | {{ $esPointName }}'
group: 'Relay Outputs'
state_name: relayOutput
states:
- { value: 0, generic: 0, graph: 1, descr: de-energized }
@@ -67,7 +67,7 @@ modules:
value: esPointValueInt
num_oid: '.1.3.6.1.4.1.3052.14.1.1.1.1.6.{{ $index }}'
descr: 'Port: {{ $index }} | {{ $esPointName }}'
group: Power Outputs
group: 'Power Outputs'
state_name: powerOutput
states:
- { value: 0, generic: 1, graph: 1, descr: de-energized }
@@ -84,44 +84,47 @@ modules:
-
oid: esPointName
op: '='
value: unnamed
value: unnamed
current:
options:
divisor: 1000
data:
-
oid: pdnTable
value: pdnOutputCurrentValue
entPhysicalIndex: pdnIndexPD
value: pdnOutputCurrentValue
num_oid: '.1.3.6.1.4.1.3052.14.1.5.4.1.1.23.{{ $index }}'
descr: 'Port Number: {{ $index }}'
group: Current Per Port
entPhysicalIndex: pdnIndexPD
index: 'pdnOutputCurrentValue.{{ $index }}'
descr: 'Port: {{ $index }}'
group: 'Current (Per Port)'
low_limit: pdnOutputCurrentVLowCurrent
low_warn_limit: pdnOutputCurrentLowCurrent
warn_limit: pdnOutputCurrentHighCurrent
high_limit: pdnOutputCurrentVHighCurrent
high_limit: pdnOutputCurrentVHighCurrent
-
oid: pdnTable
value: pdnMainCurrentValue
entPhysicalIndex: pdnIndexPD
num_oid: '.1.3.6.1.4.1.3052.14.1.5.4.1.1.5.{{ $index }}'
descr: 'EventSensor {{ $index }}'
group: Total Current SiteBoss (Per Module)
entPhysicalIndex: pdnIndexPD
index: 'pdnMainCurrentValue.{{ $index }}'
descr: 'Module: {{ $index }}'
group: 'Current (Per Module)'
low_limit: pdnMainCurrentVLowCurrent
low_warn_limit: pdnMainCurrentLowCurrent
warn_limit: pdnMainCurrentHighCurrent
high_limit: pdnMainCurrentVHighCurrent
high_limit: pdnMainCurrentVHighCurrent
voltage:
options:
divisor: 1000
data:
-
oid: pdnTable
value: pdnMainVoltageValue
value: pdnMainVoltageValue
num_oid: '.1.3.6.1.4.1.3052.14.1.5.4.1.1.13.{{ $index }}'
descr: 'EventSensor {{ $index }}'
group: Total SiteBoss (Per Module)
descr: 'Module: {{ $index }}'
group: 'Voltage (Per Module)'
low_limit: pdnMainVoltageVLowCurrent
low_warn_limit: pdnMainVoltageLowCurrent
warn_limit: pdnMainVoltageHighCurrent
@@ -133,18 +136,18 @@ modules:
data:
-
oid: pdnTable
value: pdnMainPowerValue
value: pdnMainPowerValue
num_oid: '.1.3.6.1.4.1.3052.14.1.5.4.1.1.20.{{ $index }}'
descr: 'EventSensor {{ $index }}'
group: Total SiteBoss (Per Module)
descr: 'Module: {{ $index }}'
group: 'Power (Per Module)'
humidity:
data:
-
oid: esPointTable
value: esPointValueInt
num_oid: '.1.3.6.1.4.1.3052.14.1.1.1.1.6.{{ $index }}'
descr: esPointName
descr: 'Sensor: {{ $index }} | {{ $esPointName }}'
skip_values:
-
oid: esIndexPC
@@ -156,7 +159,7 @@ modules:
oid: esPointTable
value: esPointValueStr
num_oid: '.1.3.6.1.4.1.3052.14.1.1.1.1.7.{{ $index }}'
descr: esPointName
descr: 'Analog: {{ $index }} | {{ $esPointName }}'
skip_values:
-
oid: esIndexPC