Added support for ICT Modular Power System and ICT Sine Wave Inverter (#11182)

* Added support for ICT Modular Power System and ICT Sine Wave Inverter

* Added SNMP test data for ICT Modular Power System and ICT Sine Wave Inverter

* Fixed styling errors and refactored state sensor for ICT Sine Wave Inverter

* Fixed newly created styling issues from refactoring ICT Sine Wave Inverter files.

* Fixed further styling errors from previous changed to appease Travis CI

* Removed unnecessary math from ICT Sine Wave Inverter voltage sensor

* Cleaned up unnecessary lines in ict-mps/ict-swi sensors. Moved from snmp_get to snmp_get_multi in ict-mps/ict-swi os pollers.

* Added test data for ICT MPS and SWI

* Fixed issue with load sensor not discovering

* Update snmpget to snmp_get

Co-Authored-By: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Updated test data post-fixing sensor detection issue on ICT Sine Wave Inverters

* Moved ict-swi and ict-mps from legacy to yaml sensors

* Removed legacy code for ict-mps and ict-swi sensors

* Last commit mistakenly removed OS polling from ict-mps and ict-swi

* Fixed formatting for OS polling and updated test data for ict-mps and ict-swi

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
This commit is contained in:
Noah Roufus 2020-04-12 02:42:57 -06:00 committed by GitHub
parent 9859e165d3
commit e37417e6c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 1748 additions and 0 deletions

View File

@ -0,0 +1,51 @@
mib: ICT-MODULAR-POWER-SYSTEM-MIB
modules:
sensors:
current:
data:
-
oid: outputCurrent
num_oid: '.1.3.6.1.4.1.39145.13.8.{{ $index }}'
descr: 'Output Current'
index: 'outputCurrent.{{ $index }}'
voltage:
data:
-
oid: inputVoltage
num_oid: '.1.3.6.1.4.1.39145.13.6.{{ $index }}'
descr: 'Input Voltage'
index: 'inputVoltage.{{ $index }}'
-
oid: outputVoltage
num_oid: '.1.3.6.1.4.1.39145.13.7.{{ $index }}'
descr: 'Output Voltage'
index: 'outputVoltage.{{ $index }}'
-
oid: moduleTable
value: moduleVoltage
num_oid: '.1.3.6.1.4.1.39145.13.10.1.4.{{ $index }}'
descr: 'Module #{{ $index }} Voltage (VDC)'
index: 'moduleVoltage.{{ $index }}'
state:
data:
-
oid: moduleStatus
value: moduleStatus
num_oid: '.1.3.6.1.4.1.39145.13.10.1.2.{{ $index }}'
descr: 'Module #{{ $index }} Status'
index: 'moduleStatus.{{ $index }}'
states:
- { graph: 0, value: 1, generic: 1, descr: notInstalled }
- { graph: 0, value: 2, generic: 0, descr: ok }
- { graph: 0, value: 3, generic: 2, descr: alarm }
-
oid: moduleType
value: moduleType
num_oid: '.1.3.6.1.4.1.39145.13.10.1.3.{{ $index }}'
descr: 'Module #{{ $index }} Type'
index: 'moduleType.{{ $index }}'
states:
- { graph: 0, value: 1, generic: 1, descr: notInstalled }
- { graph: 0, value: 2, generic: 0, descr: power }
- { graph: 0, value: 3, generic: 0, descr: battery }
- { graph: 0, value: 4, generic: 0, descr: distribution }

View File

@ -0,0 +1,51 @@
mib: ICT-SINE-WAVE-INVERTER-MIB
modules:
sensors:
voltage:
data:
-
oid: batteryVoltage
num_oid: '.1.3.6.1.4.1.39145.12.6.{{ $index }}'
descr: 'Battery Voltage (VDC)'
index: 'batteryVoltage.{{ $index }}'
-
oid: inverterVoltage
num_oid: '.1.3.6.1.4.1.39145.12.7.{{ $index }}'
descr: 'Inverter Voltage (VAC)'
index: 'inverterVoltage.{{ $index }}'
load:
data:
-
oid: inverterPower
num_oid: '.1.3.6.1.4.1.39145.12.8.{{ $index }}'
descr: 'Inverter Load'
index: 'inverterPower.{{ $index }}'
state:
data:
-
oid: inverterStatus
value: inverterStatus
num_oid: '.1.3.6.1.4.1.39145.12.9.{{ $index }}'
descr: 'Inverter Status'
index: 'inverterStatus.{{ $index }}'
states:
- { graph: 0, value: 1, generic: 0, descr: enabled }
- { graph: 0, value: 2, generic: 1, descr: disabled }
-
oid: inverterControl
value: inverterControl
num_oid: '.1.3.6.1.4.1.39145.12.10.{{ $index }}'
descr: 'Inverter Control'
index: 'inverterControl.{{ $index }}'
states:
- { graph: 0, value: 1, generic: 0, descr: enabled }
- { graph: 0, value: 2, generic: 1, descr: disabled }
-
oid: transferRelayStatus
value: transferRelayStatus
num_oid: '.1.3.6.1.4.1.39145.12.11.{{ $index }}'
descr: 'Transfer Relay Status'
index: 'transferRelayStatus.{{ $index }}'
states:
- { graph: 0, value: 1, generic: 0, descr: inverter }
- { graph: 0, value: 2, generic: 1, descr: grid }

View File

@ -0,0 +1,14 @@
os: ict-mps
text: 'ICT Modular Power System'
type: power
icon: ict
nobulk: true
mib_dir:
- ict
over:
- { graph: device_voltage, text: 'Input Voltage' }
- { graph: device_voltage, text: 'Output Voltage' }
- { graph: device_current, text: 'Output Current' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.39145.13

View File

@ -0,0 +1,14 @@
os: ict-swi
text: 'ICT Sine Wave Inverter'
type: power
icon: ict
nobulk: true
mib_dir:
- ict
over:
- { graph: device_voltage, text: 'Battery Voltage (VDC)' }
- { graph: device_voltage, text: 'Inverter Voltage (VAC)' }
- { graph: device_load, text: 'Inverter Power' }
discovery:
- sysObjectID:
- .1.3.6.1.4.1.39145.12

View File

@ -0,0 +1,5 @@
<?php
$deviceInfo = snmp_get_multi($device, ['deviceHardware.0', 'deviceFirmware.0'], '-OQ', 'ICT-MODULAR-POWER-SYSTEM-MIB');
$hardware = trim($deviceInfo[0]['ICT-MODULAR-POWER-SYSTEM-MIB::deviceHardware'], '" ');
$version = 'v' . trim($deviceInfo[0]['ICT-MODULAR-POWER-SYSTEM-MIB::deviceFirmware'], '" ');

View File

@ -0,0 +1,5 @@
<?php
$deviceInfo = snmp_get_multi($device, ['deviceHardware.0', 'deviceFirmware.0'], '-OQ', 'ICT-SINE-WAVE-INVERTER-MIB');
$hardware = trim($deviceInfo[0]['ICT-SINE-WAVE-INVERTER-MIB::deviceHardware'], '" ');
$version = 'v' . trim($deviceInfo[0]['ICT-SINE-WAVE-INVERTER-MIB::deviceFirmware'], '" ');

View File

@ -0,0 +1,313 @@
-- ICT MIB file for ICT Modular Power System.
--
-- Date Version
-- =============================
-- 1/5/18 v1.01
--
ICT-MODULAR-POWER-SYSTEM-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, IpAddress FROM RFC1155-SMI
DisplayString FROM RFC1213-MIB
OBJECT-TYPE FROM RFC-1212
TRAP-TYPE FROM RFC-1215;
ictPower OBJECT IDENTIFIER ::= { enterprises 39145 }
powerSystem OBJECT IDENTIFIER ::= { ictPower 13 }
deviceModel OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Model Number"
::= { powerSystem 1 }
deviceName OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Device Name"
::= { powerSystem 2 }
deviceHardware OBJECT-TYPE
SYNTAX INTEGER (0..127)
ACCESS read-only
STATUS mandatory
DESCRIPTION "Hardware Version"
::= { powerSystem 3 }
deviceFirmware OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Firmware Version"
::= { powerSystem 4 }
deviceMacAddress OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "MAC Address"
::= { powerSystem 5 }
inputVoltage OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Input Voltage (VAC)"
::= { powerSystem 6 }
outputVoltage OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Output Voltage (VDC)"
::= { powerSystem 7 }
outputCurrent OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Total System Current (Amps)"
::= { powerSystem 8 }
outputEnable OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-write
STATUS mandatory
DESCRIPTION "Output Enable Status (a value of '1' indicates Output is Enabled, and a value of '2' indicates Output is Disabled. Output cannot be disabled during an AC Failure)"
::= { powerSystem 9 }
moduleTable OBJECT-TYPE
SYNTAX SEQUENCE OF ModuleEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION "Module Table"
::= { powerSystem 10 }
moduleEntry OBJECT-TYPE
SYNTAX ModuleEntry
ACCESS not-accessible
STATUS mandatory
INDEX { moduleNumber }
::= { moduleTable 1 }
ModuleEntry ::=
SEQUENCE {
moduleNumber INTEGER,
moduleStatus INTEGER,
moduleType INTEGER,
moduleVoltage DisplayString,
moduleCurrentA DisplayString,
moduleCurrentB DisplayString,
moduleCurrentC DisplayString,
moduleCurrentD DisplayString,
moduleControlA INTEGER,
moduleControlB INTEGER,
moduleControlC INTEGER,
moduleControlD INTEGER
}
moduleNumber OBJECT-TYPE
SYNTAX INTEGER (1..8)
ACCESS read-only
STATUS mandatory
DESCRIPTION "Module Number"
::= { moduleEntry 1 }
moduleStatus OBJECT-TYPE
SYNTAX INTEGER { notInstalled(1), ok(2), alarm(3) }
ACCESS read-only
STATUS mandatory
DESCRIPTION "Module Status"
::= { moduleEntry 2 }
moduleType OBJECT-TYPE
SYNTAX INTEGER { notInstalled(1), power(2), battery(3), distribution(4) }
ACCESS read-only
STATUS mandatory
DESCRIPTION "Module Type ('1' indicates Module is NOT INSTALLED,'2' indicates POWER Module,'3' indicates BATTERY Module, and '4' indicates DISTRIBUTION Module)"
::= { moduleEntry 3 }
moduleVoltage OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Module Voltage (VDC)"
::= { moduleEntry 4 }
moduleCurrentA OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Channel 1 Current (Amps)"
::= { moduleEntry 5 }
moduleCurrentB OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Channel 2 Current (Amps)"
::= { moduleEntry 6 }
moduleCurrentC OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Channel 3 Current (Amps)"
::= { moduleEntry 7 }
moduleCurrentD OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Channel 4 Current (Amps)"
::= { moduleEntry 8 }
moduleControlA OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-write
STATUS mandatory
DESCRIPTION "Channel 1 Control (a value of '1' indicates Channel is Enabled, and a value of '2' indicates Channel is Disabled)"
::= { moduleEntry 9 }
moduleControlB OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-write
STATUS mandatory
DESCRIPTION "Channel 2 Control (a value of '1' indicates Channel is Enabled, and a value of '2' indicates Channel is Disabled)"
::= { moduleEntry 10 }
moduleControlC OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-write
STATUS mandatory
DESCRIPTION "Channel 3 Control (a value of '1' indicates Channel is Enabled, and a value of '2' indicates Channel is Disabled)"
::= { moduleEntry 11 }
moduleControlD OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-write
STATUS mandatory
DESCRIPTION "Channel 4 Control (a value of '1' indicates Channel is Enabled, and a value of '2' indicates Channel is Disabled)"
::= { moduleEntry 12 }
alarmTable OBJECT-TYPE
SYNTAX SEQUENCE OF AlarmEntry
ACCESS not-accessible
STATUS mandatory
DESCRIPTION "Alarm Input Table"
::= { powerSystem 11 }
alarmEntry OBJECT-TYPE
SYNTAX AlarmEntry
ACCESS not-accessible
STATUS mandatory
INDEX { alarmNumber }
::= { alarmTable 1 }
AlarmEntry ::=
SEQUENCE {
alarmNumber INTEGER,
alarmName DisplayString,
alarmStatus INTEGER
}
alarmNumber OBJECT-TYPE
SYNTAX INTEGER (1..4)
ACCESS read-only
STATUS mandatory
DESCRIPTION "Alarm Input Number"
::= { alarmEntry 1 }
alarmName OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Alarm Input Name"
::= { alarmEntry 2 }
alarmStatus OBJECT-TYPE
SYNTAX INTEGER { inactive(1), ready(2), alarm(3) }
ACCESS read-only
STATUS mandatory
DESCRIPTION "Alarm Input Status ('1' indicates Alarm is INACTIVE,'2' indicates Alarm is READY, and '3' indicates Alarm is in an ALARM condition)"
::= { alarmEntry 3 }
--
-- Trap definitions:
--
moduleAlarmTrap TRAP-TYPE
ENTERPRISE powerSystem
VARIABLES { moduleNumber }
DESCRIPTION "Trap generated when a Module Alarm is triggered"
::= 101
alarmInputTrap TRAP-TYPE
ENTERPRISE powerSystem
VARIABLES { alarmNumber }
DESCRIPTION "Trap generated when an Alarm Input is activated"
::= 102
acFailAlarmTrap TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when the AC Failure Alarm is triggered"
::= 103
sysCurrentLimitTrap TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when the System Current Limit Alarm is triggered"
::= 104
moduleAlarmClear TRAP-TYPE
ENTERPRISE powerSystem
VARIABLES { moduleNumber }
DESCRIPTION "Trap generated when a Module Alarm is cleared"
::= 111
alarmInputClear TRAP-TYPE
ENTERPRISE powerSystem
VARIABLES { alarmNumber }
DESCRIPTION "Trap generated when an Alarm Input is cleared"
::= 112
acFailAlarmClear TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when the AC Failure Alarm is cleared"
::= 113
sysCurrentLimitClear TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when the System Current Limit Alarm is cleared"
::= 114
batteryTestStart TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when a Battery Discharge Test is started"
::= 121
batteryTestComplete TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when a Battery Discharge Test completes successfully"
::= 122
batteryTestFail TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when a Battery Discharge Test fails"
::= 123
batteryEqualiseStart TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when a Battery Equalise Charge is started"
::= 124
batteryEqualiseComplete TRAP-TYPE
ENTERPRISE powerSystem
DESCRIPTION "Trap generated when a Battery Equalise Charge completes"
::= 125
END

View File

@ -0,0 +1,172 @@
-- MIB file for ICT Sine Wave Inverter.
--
-- Date Version
-- =============================
-- 3/7/18 1.01
--
ICT-SINE-WAVE-INVERTER-MIB DEFINITIONS ::= BEGIN
IMPORTS
enterprises, IpAddress FROM RFC1155-SMI
DisplayString FROM RFC1213-MIB
OBJECT-TYPE FROM RFC-1212
TRAP-TYPE FROM RFC-1215;
ictPower OBJECT IDENTIFIER ::= { enterprises 39145 }
inverter OBJECT IDENTIFIER ::= { ictPower 12 }
deviceModel OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Model Number"
::= { inverter 1 }
deviceName OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Site Name"
::= { inverter 2 }
deviceHardware OBJECT-TYPE
SYNTAX INTEGER (0..127)
ACCESS read-only
STATUS mandatory
DESCRIPTION "Hardware Version"
::= { inverter 3 }
deviceFirmware OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Firmware Version"
::= { inverter 4 }
deviceMacAddress OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "MAC Address"
::= { inverter 5 }
batteryVoltage OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Battery Voltage (VDC)"
::= { inverter 6 }
inverterVoltage OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Inverter Output Voltage (VAC)"
::= { inverter 7 }
inverterPower OBJECT-TYPE
SYNTAX DisplayString
ACCESS read-only
STATUS mandatory
DESCRIPTION "Inverter Output Power (%)"
::= { inverter 8 }
inverterStatus OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-only
STATUS mandatory
DESCRIPTION "Inverter Output Status ('1' indicates the Inverter Output is ENABLED, and '2' indicates the Inverter Output is DISABLED)"
::= { inverter 9 }
inverterControl OBJECT-TYPE
SYNTAX INTEGER { enabled(1), disabled(2) }
ACCESS read-write
STATUS mandatory
DESCRIPTION "Inverter Output Control (set to '1' to ENABLE the Inverter Output if no alarms are active, set to '2' to DISABLE the Inverter Output)"
::= { inverter 10 }
transferRelayStatus OBJECT-TYPE
SYNTAX INTEGER { inverter(1), grid(2) }
ACCESS read-only
STATUS mandatory
DESCRIPTION "Transfer Relay Status ('1' indicates the Output is connected to the INVERTER, and '2' indicates the Output is connected to the GRID)"
::= { inverter 11 }
--
-- Trap definitions:
--
undervoltageAlarmTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Battery Input Undervoltage Alarm is triggered"
::= 101
overvoltageAlarmTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Battery Input Overvoltage Alarm is triggered"
::= 102
overtemperatureAlarmTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Overtemperature Alarm is triggered"
::= 103
outputFaultAlarmTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Inverter Output Fault Alarm is triggered"
::= 104
systemFaultAlarmTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the System Fault Alarm is triggered"
::= 105
remoteSwitchAlarmTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Remote Switch accessory is activated"
::= 106
undervoltageAlarmClear TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Battery Input Undervoltage Alarm is cleared"
::= 111
overvoltageAlarmClear TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Battery Input Overvoltage Alarm is cleared"
::= 112
overtemperatureAlarmClear TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Overtemperature Alarm is cleared"
::= 113
outputFaultAlarmClear TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Inverter Output Fault Alarm is cleared"
::= 114
systemFaultAlarmClear TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the System Fault Alarm is cleared"
::= 115
remoteSwitchAlarmClear TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Remote Switch accessory is deactivated"
::= 116
inverterPowerTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Output switches to Inverter (Battery) Power"
::= 121
gridPowerTrap TRAP-TYPE
ENTERPRISE inverter
DESCRIPTION "Trap generated when the Output switches to Grid Power"
::= 122
END

746
tests/data/ict-mps.json Normal file
View File

@ -0,0 +1,746 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "my_ict_ups",
"sysObjectID": ".1.3.6.1.4.1.39145.13",
"sysDescr": "ICT Modular Power System",
"sysContact": null,
"version": null,
"hardware": null,
"features": null,
"os": "ict-mps",
"type": "power",
"serial": null,
"icon": "ict.png",
"location": null
}
]
},
"poller": {
"devices": [
{
"sysName": "my_ict_ups",
"sysObjectID": ".1.3.6.1.4.1.39145.13",
"sysDescr": "ICT Modular Power System",
"sysContact": "Example, Inc",
"version": "v1.04",
"hardware": "2",
"features": null,
"os": "ict-mps",
"type": "power",
"serial": null,
"icon": "ict.png",
"location": "my_ict_ups"
}
]
}
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "current",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.8.0",
"sensor_index": "outputCurrent.0",
"sensor_type": "ict-mps",
"sensor_descr": "Output Current",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2.3,
"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": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.1",
"sensor_index": "moduleStatus.1",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #1 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.2",
"sensor_index": "moduleStatus.2",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #2 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.3",
"sensor_index": "moduleStatus.3",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #3 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.4",
"sensor_index": "moduleStatus.4",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #4 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.5",
"sensor_index": "moduleStatus.5",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #5 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.6",
"sensor_index": "moduleStatus.6",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #6 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.7",
"sensor_index": "moduleStatus.7",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #7 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.2.8",
"sensor_index": "moduleStatus.8",
"sensor_type": "moduleStatus",
"sensor_descr": "Module #8 Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.1",
"sensor_index": "moduleType.1",
"sensor_type": "moduleType",
"sensor_descr": "Module #1 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.2",
"sensor_index": "moduleType.2",
"sensor_type": "moduleType",
"sensor_descr": "Module #2 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.3",
"sensor_index": "moduleType.3",
"sensor_type": "moduleType",
"sensor_descr": "Module #3 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 2,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.4",
"sensor_index": "moduleType.4",
"sensor_type": "moduleType",
"sensor_descr": "Module #4 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 3,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.5",
"sensor_index": "moduleType.5",
"sensor_type": "moduleType",
"sensor_descr": "Module #5 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.6",
"sensor_index": "moduleType.6",
"sensor_type": "moduleType",
"sensor_descr": "Module #6 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.7",
"sensor_index": "moduleType.7",
"sensor_type": "moduleType",
"sensor_descr": "Module #7 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.10.1.3.8",
"sensor_index": "moduleType.8",
"sensor_type": "moduleType",
"sensor_descr": "Module #8 Type",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "moduleType"
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.13.6.0",
"sensor_index": "inputVoltage.0",
"sensor_type": "ict-mps",
"sensor_descr": "Input Voltage",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 121,
"sensor_limit": 139.15,
"sensor_limit_warn": null,
"sensor_limit_low": 102.85,
"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.39145.13.10.1.4.1",
"sensor_index": "moduleVoltage.1",
"sensor_type": "ict-mps",
"sensor_descr": "Module #1 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 54.1,
"sensor_limit": 62.215,
"sensor_limit_warn": null,
"sensor_limit_low": 45.985,
"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.39145.13.10.1.4.2",
"sensor_index": "moduleVoltage.2",
"sensor_type": "ict-mps",
"sensor_descr": "Module #2 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 54.1,
"sensor_limit": 62.215,
"sensor_limit_warn": null,
"sensor_limit_low": 45.985,
"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.39145.13.10.1.4.3",
"sensor_index": "moduleVoltage.3",
"sensor_type": "ict-mps",
"sensor_descr": "Module #3 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 54.1,
"sensor_limit": 62.215,
"sensor_limit_warn": null,
"sensor_limit_low": 45.985,
"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.39145.13.10.1.4.4",
"sensor_index": "moduleVoltage.4",
"sensor_type": "ict-mps",
"sensor_descr": "Module #4 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 54.2,
"sensor_limit": 62.33,
"sensor_limit_warn": null,
"sensor_limit_low": 46.07,
"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.39145.13.10.1.4.5",
"sensor_index": "moduleVoltage.5",
"sensor_type": "ict-mps",
"sensor_descr": "Module #5 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": 0,
"sensor_limit_warn": null,
"sensor_limit_low": 0,
"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.39145.13.10.1.4.6",
"sensor_index": "moduleVoltage.6",
"sensor_type": "ict-mps",
"sensor_descr": "Module #6 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": 0,
"sensor_limit_warn": null,
"sensor_limit_low": 0,
"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.39145.13.10.1.4.7",
"sensor_index": "moduleVoltage.7",
"sensor_type": "ict-mps",
"sensor_descr": "Module #7 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": 0,
"sensor_limit_warn": null,
"sensor_limit_low": 0,
"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.39145.13.10.1.4.8",
"sensor_index": "moduleVoltage.8",
"sensor_type": "ict-mps",
"sensor_descr": "Module #8 Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"sensor_limit": 0,
"sensor_limit_warn": null,
"sensor_limit_low": 0,
"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.39145.13.7.0",
"sensor_index": "outputVoltage.0",
"sensor_type": "ict-mps",
"sensor_descr": "Output Voltage",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 54.1,
"sensor_limit": 62.215,
"sensor_limit_warn": null,
"sensor_limit_low": 45.985,
"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
}
],
"state_indexes": [
{
"state_name": "moduleStatus",
"state_descr": "notInstalled",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 1
},
{
"state_name": "moduleStatus",
"state_descr": "ok",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "moduleStatus",
"state_descr": "alarm",
"state_draw_graph": 0,
"state_value": 3,
"state_generic_value": 2
},
{
"state_name": "moduleType",
"state_descr": "notInstalled",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 1
},
{
"state_name": "moduleType",
"state_descr": "power",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "moduleType",
"state_descr": "battery",
"state_draw_graph": 0,
"state_value": 3,
"state_generic_value": 0
},
{
"state_name": "moduleType",
"state_descr": "distribution",
"state_draw_graph": 0,
"state_value": 4,
"state_generic_value": 0
}
]
},
"poller": "matches discovery"
}
}

235
tests/data/ict-swi.json Normal file
View File

@ -0,0 +1,235 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "my_ict_inverter",
"sysObjectID": ".1.3.6.1.4.1.39145.12",
"sysDescr": "ICT Sine Wave Inverter",
"sysContact": null,
"version": null,
"hardware": null,
"features": null,
"os": "ict-swi",
"type": "power",
"serial": null,
"icon": "ict.png",
"location": null
}
]
},
"poller": {
"devices": [
{
"sysName": "my_ict_inverter",
"sysObjectID": ".1.3.6.1.4.1.39145.12",
"sysDescr": "ICT Sine Wave Inverter",
"sysContact": "Example, Inc",
"version": "v1.03",
"hardware": "1",
"features": null,
"os": "ict-swi",
"type": "power",
"serial": null,
"icon": "ict.png",
"location": "my_ict_inverter"
}
]
}
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "load",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.12.8.0",
"sensor_index": "inverterPower.0",
"sensor_type": "ict-swi",
"sensor_descr": "Inverter Load",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.12.10.0",
"sensor_index": "inverterControl.0",
"sensor_type": "inverterControl",
"sensor_descr": "Inverter Control",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "inverterControl"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.12.9.0",
"sensor_index": "inverterStatus.0",
"sensor_type": "inverterStatus",
"sensor_descr": "Inverter Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "inverterStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.12.11.0",
"sensor_index": "transferRelayStatus.0",
"sensor_type": "transferRelayStatus",
"sensor_descr": "Transfer Relay Status",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 1,
"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": "transferRelayStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.39145.12.6.0",
"sensor_index": "batteryVoltage.0",
"sensor_type": "ict-swi",
"sensor_descr": "Battery Voltage (VDC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 54.3,
"sensor_limit": 62.445,
"sensor_limit_warn": null,
"sensor_limit_low": 46.155,
"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.39145.12.7.0",
"sensor_index": "inverterVoltage.0",
"sensor_type": "ict-swi",
"sensor_descr": "Inverter Voltage (VAC)",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 119,
"sensor_limit": 136.85,
"sensor_limit_warn": null,
"sensor_limit_low": 101.15,
"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
}
],
"state_indexes": [
{
"state_name": "inverterControl",
"state_descr": "enabled",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "inverterControl",
"state_descr": "disabled",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "inverterStatus",
"state_descr": "enabled",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "inverterStatus",
"state_descr": "disabled",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "transferRelayStatus",
"state_descr": "inverter",
"state_draw_graph": 0,
"state_value": 1,
"state_generic_value": 0
},
{
"state_name": "transferRelayStatus",
"state_descr": "grid",
"state_draw_graph": 0,
"state_value": 2,
"state_generic_value": 1
}
]
},
"poller": "matches discovery"
}
}

View File

@ -0,0 +1,124 @@
1.3.6.1.2.1.1.1.0|4x|494354204d6f64756c617220506f7765722053797374656d
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.39145.13
1.3.6.1.2.1.1.3.0|67|265450555
1.3.6.1.2.1.1.4.0|4x|4578616d706c652c20496e63
1.3.6.1.2.1.1.5.0|4x|6d795f6963745f757073
1.3.6.1.2.1.1.6.0|4x|6d795f6963745f757073
1.3.6.1.2.1.1.7.0|2|7
1.3.6.1.4.1.39145.13.1.0|4x|4d6f64756c617220506f7765722053657269657320343856
1.3.6.1.4.1.39145.13.2.0|4x|6d795f6963745f757073
1.3.6.1.4.1.39145.13.3.0|2|2
1.3.6.1.4.1.39145.13.4.0|4x|312e3034
1.3.6.1.4.1.39145.13.5.0|4|5410EC498F89
1.3.6.1.4.1.39145.13.6.0|4|121
1.3.6.1.4.1.39145.13.7.0|4x|35342e31
1.3.6.1.4.1.39145.13.8.0|4x|322e33
1.3.6.1.4.1.39145.13.9.0|2|1
1.3.6.1.4.1.39145.13.10.1.1.1|2|1
1.3.6.1.4.1.39145.13.10.1.1.2|2|2
1.3.6.1.4.1.39145.13.10.1.1.3|2|3
1.3.6.1.4.1.39145.13.10.1.1.4|2|4
1.3.6.1.4.1.39145.13.10.1.1.5|2|5
1.3.6.1.4.1.39145.13.10.1.1.6|2|6
1.3.6.1.4.1.39145.13.10.1.1.7|2|7
1.3.6.1.4.1.39145.13.10.1.1.8|2|8
1.3.6.1.4.1.39145.13.10.1.2.1|2|2
1.3.6.1.4.1.39145.13.10.1.2.2|2|2
1.3.6.1.4.1.39145.13.10.1.2.3|2|2
1.3.6.1.4.1.39145.13.10.1.2.4|2|2
1.3.6.1.4.1.39145.13.10.1.2.5|2|1
1.3.6.1.4.1.39145.13.10.1.2.6|2|1
1.3.6.1.4.1.39145.13.10.1.2.7|2|1
1.3.6.1.4.1.39145.13.10.1.2.8|2|1
1.3.6.1.4.1.39145.13.10.1.3.1|2|2
1.3.6.1.4.1.39145.13.10.1.3.2|2|2
1.3.6.1.4.1.39145.13.10.1.3.3|2|2
1.3.6.1.4.1.39145.13.10.1.3.4|2|3
1.3.6.1.4.1.39145.13.10.1.3.5|2|1
1.3.6.1.4.1.39145.13.10.1.3.6|2|1
1.3.6.1.4.1.39145.13.10.1.3.7|2|1
1.3.6.1.4.1.39145.13.10.1.3.8|2|1
1.3.6.1.4.1.39145.13.10.1.4.1|4x|35342e31
1.3.6.1.4.1.39145.13.10.1.4.2|4x|35342e31
1.3.6.1.4.1.39145.13.10.1.4.3|4x|35342e31
1.3.6.1.4.1.39145.13.10.1.4.4|4x|35342e32
1.3.6.1.4.1.39145.13.10.1.4.5|4x|00
1.3.6.1.4.1.39145.13.10.1.4.6|4x|00
1.3.6.1.4.1.39145.13.10.1.4.7|4x|00
1.3.6.1.4.1.39145.13.10.1.4.8|4x|00
1.3.6.1.4.1.39145.13.10.1.5.1|4x|00
1.3.6.1.4.1.39145.13.10.1.5.2|4x|00
1.3.6.1.4.1.39145.13.10.1.5.3|4x|00
1.3.6.1.4.1.39145.13.10.1.5.4|4x|302e30
1.3.6.1.4.1.39145.13.10.1.5.5|4x|00
1.3.6.1.4.1.39145.13.10.1.5.6|4x|00
1.3.6.1.4.1.39145.13.10.1.5.7|4x|00
1.3.6.1.4.1.39145.13.10.1.5.8|4x|00
1.3.6.1.4.1.39145.13.10.1.6.1|4x|00
1.3.6.1.4.1.39145.13.10.1.6.2|4x|00
1.3.6.1.4.1.39145.13.10.1.6.3|4x|00
1.3.6.1.4.1.39145.13.10.1.6.4|4x|00
1.3.6.1.4.1.39145.13.10.1.6.5|4x|00
1.3.6.1.4.1.39145.13.10.1.6.6|4x|00
1.3.6.1.4.1.39145.13.10.1.6.7|4x|00
1.3.6.1.4.1.39145.13.10.1.6.8|4x|00
1.3.6.1.4.1.39145.13.10.1.7.1|4x|00
1.3.6.1.4.1.39145.13.10.1.7.2|4x|00
1.3.6.1.4.1.39145.13.10.1.7.3|4x|00
1.3.6.1.4.1.39145.13.10.1.7.4|4x|00
1.3.6.1.4.1.39145.13.10.1.7.5|4x|00
1.3.6.1.4.1.39145.13.10.1.7.6|4x|00
1.3.6.1.4.1.39145.13.10.1.7.7|4x|00
1.3.6.1.4.1.39145.13.10.1.7.8|4x|00
1.3.6.1.4.1.39145.13.10.1.8.1|4x|00
1.3.6.1.4.1.39145.13.10.1.8.2|4x|00
1.3.6.1.4.1.39145.13.10.1.8.3|4x|00
1.3.6.1.4.1.39145.13.10.1.8.4|4x|00
1.3.6.1.4.1.39145.13.10.1.8.5|4x|00
1.3.6.1.4.1.39145.13.10.1.8.6|4x|00
1.3.6.1.4.1.39145.13.10.1.8.7|4x|00
1.3.6.1.4.1.39145.13.10.1.8.8|4x|00
1.3.6.1.4.1.39145.13.10.1.9.1|2|2
1.3.6.1.4.1.39145.13.10.1.9.2|2|2
1.3.6.1.4.1.39145.13.10.1.9.3|2|2
1.3.6.1.4.1.39145.13.10.1.9.4|2|2
1.3.6.1.4.1.39145.13.10.1.9.5|2|2
1.3.6.1.4.1.39145.13.10.1.9.6|2|2
1.3.6.1.4.1.39145.13.10.1.9.7|2|2
1.3.6.1.4.1.39145.13.10.1.9.8|2|2
1.3.6.1.4.1.39145.13.10.1.10.1|2|2
1.3.6.1.4.1.39145.13.10.1.10.2|2|2
1.3.6.1.4.1.39145.13.10.1.10.3|2|2
1.3.6.1.4.1.39145.13.10.1.10.4|2|2
1.3.6.1.4.1.39145.13.10.1.10.5|2|2
1.3.6.1.4.1.39145.13.10.1.10.6|2|2
1.3.6.1.4.1.39145.13.10.1.10.7|2|2
1.3.6.1.4.1.39145.13.10.1.10.8|2|2
1.3.6.1.4.1.39145.13.10.1.11.1|2|2
1.3.6.1.4.1.39145.13.10.1.11.2|2|2
1.3.6.1.4.1.39145.13.10.1.11.3|2|2
1.3.6.1.4.1.39145.13.10.1.11.4|2|2
1.3.6.1.4.1.39145.13.10.1.11.5|2|2
1.3.6.1.4.1.39145.13.10.1.11.6|2|2
1.3.6.1.4.1.39145.13.10.1.11.7|2|2
1.3.6.1.4.1.39145.13.10.1.11.8|2|2
1.3.6.1.4.1.39145.13.10.1.12.1|2|2
1.3.6.1.4.1.39145.13.10.1.12.2|2|2
1.3.6.1.4.1.39145.13.10.1.12.3|2|2
1.3.6.1.4.1.39145.13.10.1.12.4|2|2
1.3.6.1.4.1.39145.13.10.1.12.5|2|2
1.3.6.1.4.1.39145.13.10.1.12.6|2|2
1.3.6.1.4.1.39145.13.10.1.12.7|2|2
1.3.6.1.4.1.39145.13.10.1.12.8|2|2
1.3.6.1.4.1.39145.13.11.1.1.1|2|1
1.3.6.1.4.1.39145.13.11.1.1.2|2|2
1.3.6.1.4.1.39145.13.11.1.1.3|2|3
1.3.6.1.4.1.39145.13.11.1.1.4|2|4
1.3.6.1.4.1.39145.13.11.1.2.1|4x|00
1.3.6.1.4.1.39145.13.11.1.2.2|4x|00
1.3.6.1.4.1.39145.13.11.1.2.3|4x|00
1.3.6.1.4.1.39145.13.11.1.2.4|4x|00
1.3.6.1.4.1.39145.13.11.1.3.1|2|1
1.3.6.1.4.1.39145.13.11.1.3.2|2|1
1.3.6.1.4.1.39145.13.11.1.3.3|2|1
1.3.6.1.4.1.39145.13.11.1.3.4|2|1

View File

@ -0,0 +1,18 @@
1.3.6.1.2.1.1.1.0|4x|4943542053696e65205761766520496e766572746572
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.39145.12
1.3.6.1.2.1.1.3.0|67|225351476
1.3.6.1.2.1.1.4.0|4x|4578616d706c652c20496e63
1.3.6.1.2.1.1.5.0|4x|6d795f6963745f696e766572746572
1.3.6.1.2.1.1.6.0|4x|6d795f6963745f696e766572746572
1.3.6.1.2.1.1.7.0|2|7
1.3.6.1.4.1.39145.12.1.0|4x|6d795f6963745f696e766572746572
1.3.6.1.4.1.39145.12.2.0|4x|6d795f6963745f696e766572746572
1.3.6.1.4.1.39145.12.3.0|2|1
1.3.6.1.4.1.39145.12.4.0|4x|312e3033
1.3.6.1.4.1.39145.12.5.0|4|D88039189333
1.3.6.1.4.1.39145.12.6.0|4x|35342e33
1.3.6.1.4.1.39145.12.7.0|4|119
1.3.6.1.4.1.39145.12.8.0|4|0
1.3.6.1.4.1.39145.12.9.0|2|1
1.3.6.1.4.1.39145.12.10.0|2|1
1.3.6.1.4.1.39145.12.11.0|2|1