Added CET Power T2S TSI (#13645)

* Delta Icon

* CET Power Firts Commit

* Fix objectID Eltex MES23XX

* cetpower.yaml update

* delete UPS.mib and update cetpower.yaml

* cetpower snmprec add

* Update delta.svg

* Rename CET-TSI-MIB.mib to CET-TSI-MIB

* Rename CET-TSI-SMI.mib to CET-TSI-SMI

* Create cetpower.json

* Update cetpower.json

* Update eltex-mes23xx.yaml

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Konstantin 2022-01-10 21:30:18 +07:00 committed by GitHub
parent 5395961b65
commit 759dcb1bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 6154 additions and 0 deletions

BIN
html/images/os/cet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

1
html/images/os/delta.svg Normal file
View File

@ -0,0 +1 @@
<svg version="1.1" id="layer" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 652 652" xml:space="preserve"><path class="st0" d="M559 346.1c.2-.2.3-.5.3-.7v-15.8c0-.6-.5-1-1-1l-73.8-.1c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7v16c0 .3.1.5.3.7.2.2.5.3.7.3h24.9v67c0 .3.1.5.3.7.2.2.5.3.7.3h18.8c.9 0 2-.3 2.9-1.1.8-.7 1.5-1.9 1.5-3.6v-63.3h24.6c.3-.1.6-.2.8-.4m-131.3 51.5c0-.3-.1-.5-.3-.7-.2-.2-.5-.3-.7-.3H380v-18.8h40.2c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7v-15.9c0-.3-.1-.5-.3-.7-.2-.2-.5-.3-.7-.3h-40.1v-13.2h46.5c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7v-16.2c0-.3-.1-.5-.3-.7-.2-.2-.5-.3-.7-.3h-70.9c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7v75.1c0 3.2 1.6 5.7 3.7 7.4 2.2 1.7 4.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h-2c-9.5-.4-16.8-4.3-21.4-9.4-4.6-5.1-6.7-11.3-7-16.6v-1.3c.2-15.8 11-32.9 25.7-46.7 14.8-13.7 33.9-24.3 52.7-24.5h.3c8.7 0 16.1 2.9 21.2 8 5.1 5.1 7.7 12.3 7.7 19.9 0 5.3-1.2 10.9-3.6 16.5 4.1 4.6 6.6 10.7 6.6 17.3 0 14.5-11.8 26.3-26.3 26.3m8.7-73.2c-3.1-3.1-7.6-5.1-14.3-5.1h-.2c-15 0-32.6 9.2-46.1 21.9-13.6 12.5-22.8 28.6-22.6 39.6v.9c.1 3.1 1.5 7.2 4.4 10.5 3 3.2 7.4 5.9 14.6 6.2h1.6c9.5 0 21.3-4.4 32.5-11.9-3.1-4.3-4.9-9.6-4.9-15.2 0-14.5 11.8-26.3 26.3-26.3 4.2 0 8.1 1 11.7 2.8 1.3-3.7 1.9-7.1 1.9-10.3-.1-5.6-1.9-10-4.9-13.1"/></svg>

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,16 @@
os: cetpower
text: 'CET TSI Controller'
type: power
icon: cet
snmp_bulk: false
over:
- { graph: device_current, text: Load }
- { graph: device_voltage, text: Voltage }
- { graph: device_temperature, text: Temperature }
- { graph: device_power, text: Power }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.12551.4.0
- sysDescr:
- T2S-ETH supervisor for TSI SNMP V1.0
mib_dir: cet

View File

@ -0,0 +1,64 @@
mib: CET-TSI-MIB
modules:
os:
serial: CET-TSI-MIB::tsiT2SSerialNumber
sensors:
load:
options:
skip_value_lt: 1
data:
-
oid: tsiPhaseTable
value: tsiPhaseAvailablePowerRatioW
num_oid: '.1.3.6.1.4.1.12551.4.1.2.2.1.2.{{ $index }}'
index: 'tsiPhaseAvailablePowerRatio.{{ $index }}'
descr: 'Available Power Ratio {{ $index }}'
power:
options:
skip_value_lt: 1
data:
-
oid: tsiPhaseTable
value: tsiPhaseCurrentPowerInW
num_oid: '.1.3.6.1.4.1.12551.4.1.2.2.1.12.{{ $index }}'
index: 'tsiPhaseCurrentPowerInW.{{ $index }}'
descr: 'Current Power In {{ $index }}'
-
oid: tsiPhaseTable
value: tsiPhaseInstalledPowerInW
num_oid: '.1.3.6.1.4.1.12551.4.1.2.2.1.14.{{ $index }}'
index: 'tsiPhaseInstalledPowerInW.{{ $index }}'
descr: 'Installed Power In {{ $index }}'
voltage:
options:
skip_value_lt: 1
divisor: 10
data:
-
oid: tsiModuleTable
value: tsiModuleVinAC
num_oid: '.1.3.6.1.4.1.12551.4.1.1.1.1.20.{{ $index }}'
index: 'tsiModuleVinAC.{{ $index }}'
descr: 'Module Voltage in AC {{ $index }}'
-
oid: tsiModuleTable
value: tsiModuleVout
num_oid: '.1.3.6.1.4.1.12551.4.1.1.1.1.16.{{ $index }}'
index: 'tsiModuleVout.{{ $index }}'
descr: 'Module Voltage Out {{ $index }}'
-
oid: tsiModuleTable
value: tsiModuleVinDC
num_oid: '.1.3.6.1.4.1.12551.4.1.1.1.1.25.{{ $index }}'
index: 'tsiModuleVinDC.{{ $index }}'
descr: 'Module Voltage in DC {{ $index }}'
temperature:
options:
skip_value_lt: 1
data:
-
oid: tsiModuleTable
value: tsiModuleTemperature
num_oid: '.1.3.6.1.4.1.12551.4.1.1.1.1.28.{{ $index }}'
index: 'tsiModuleTemperature.{{ $index }}'
descr: 'Module Temperature {{ $index }}'

1732
mibs/cet/CET-TSI-MIB Normal file

File diff suppressed because it is too large Load Diff

23
mibs/cet/CET-TSI-SMI Normal file
View File

@ -0,0 +1,23 @@
CET-TSI-SMI DEFINITIONS ::= BEGIN
-- the path to the root
internet OBJECT IDENTIFIER ::= { iso org(3) dod(6) 1 }
directory OBJECT IDENTIFIER ::= { internet 1 }
mgmt OBJECT IDENTIFIER ::= { internet 2 }
experimental OBJECT IDENTIFIER ::= { internet 3 }
private OBJECT IDENTIFIER ::= { internet 4 }
enterprises OBJECT IDENTIFIER ::= { private 1 }
cetMIB OBJECT IDENTIFIER ::= { enterprises 12551 } -- assigned by IANA
-- Other CE+T products
cetBip OBJECT IDENTIFIER ::= { cetMIB 1 } -- BIP
cetMiniBip OBJECT IDENTIFIER ::= { cetMIB 2 } -- Mini-BIP
bipRdiMIB OBJECT IDENTIFIER ::= { cetMIB 3 } -- BIP-RDI
END

390
tests/data/cetpower.json Normal file
View File

@ -0,0 +1,390 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "t2s-eth",
"sysObjectID": ".1.3.6.1.4.1.12551.4.0",
"sysDescr": "T2S-ETH supervisor for TSI SNMP V1.0",
"sysContact": "help@cet-power.com",
"version": null,
"hardware": null,
"features": null,
"os": "cetpower",
"type": "power",
"serial": null,
"icon": "cet.png",
"location": "Local"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "load",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.2.2.1.2.1",
"sensor_index": "tsiPhaseAvailablePowerRatio.1",
"sensor_type": "cetpower",
"sensor_descr": "Available Power Ratio 1",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 28,
"sensor_limit": 80,
"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_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.2.2.1.12.1",
"sensor_index": "tsiPhaseCurrentPowerInW.1",
"sensor_type": "cetpower",
"sensor_descr": "Current Power In 1",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 3411,
"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_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "power",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.2.2.1.14.1",
"sensor_index": "tsiPhaseInstalledPowerInW.1",
"sensor_type": "cetpower",
"sensor_descr": "Installed Power In 1",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 12000,
"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_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.28.4",
"sensor_index": "tsiModuleTemperature.4",
"sensor_type": "cetpower",
"sensor_descr": "Module Temperature 4",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 29,
"sensor_limit": 49,
"sensor_limit_warn": null,
"sensor_limit_low": 19,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.28.5",
"sensor_index": "tsiModuleTemperature.5",
"sensor_type": "cetpower",
"sensor_descr": "Module Temperature 5",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 31,
"sensor_limit": 51,
"sensor_limit_warn": null,
"sensor_limit_low": 21,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.28.6",
"sensor_index": "tsiModuleTemperature.6",
"sensor_type": "cetpower",
"sensor_descr": "Module Temperature 6",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 28,
"sensor_limit": 48,
"sensor_limit_warn": null,
"sensor_limit_low": 18,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.20.4",
"sensor_index": "tsiModuleVinAC.4",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage in AC 4",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 238.4,
"sensor_limit": 274.16,
"sensor_limit_warn": null,
"sensor_limit_low": 202.64,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.20.5",
"sensor_index": "tsiModuleVinAC.5",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage in AC 5",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 238.1,
"sensor_limit": 273.815,
"sensor_limit_warn": null,
"sensor_limit_low": 202.385,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.20.6",
"sensor_index": "tsiModuleVinAC.6",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage in AC 6",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 238.3,
"sensor_limit": 274.045,
"sensor_limit_warn": null,
"sensor_limit_low": 202.555,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.25.4",
"sensor_index": "tsiModuleVinDC.4",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage in DC 4",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 51.2,
"sensor_limit": 58.88,
"sensor_limit_warn": null,
"sensor_limit_low": 43.52,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.25.5",
"sensor_index": "tsiModuleVinDC.5",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage in DC 5",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 51.4,
"sensor_limit": 59.11,
"sensor_limit_warn": null,
"sensor_limit_low": 43.69,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.25.6",
"sensor_index": "tsiModuleVinDC.6",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage in DC 6",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 51.3,
"sensor_limit": 58.995,
"sensor_limit_warn": null,
"sensor_limit_low": 43.605,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.16.4",
"sensor_index": "tsiModuleVout.4",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage Out 4",
"group": null,
"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_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.16.5",
"sensor_index": "tsiModuleVout.5",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage Out 5",
"group": null,
"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_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.12551.4.1.1.1.1.16.6",
"sensor_index": "tsiModuleVout.6",
"sensor_type": "cetpower",
"sensor_descr": "Module Voltage Out 6",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 230.8,
"sensor_limit": 265.42,
"sensor_limit_warn": null,
"sensor_limit_low": 196.18,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"state_name": null
}
]
},
"poller": "matches discovery"
}
}

File diff suppressed because it is too large Load Diff