mirror of
https://github.com/librenms/librenms.git
synced 2024-09-21 10:28:13 +00:00
New Device: ATS - Automatic Transfer Switch (#9889)
* New Device: ATS - Automatic Transfer Switch * Small fixes * Fixed test data * More fixes, again * Moved temp to php to retrieve limits from device * Fixed perms again... * Final test file. Or I hope so...
This commit is contained in:
parent
546849f326
commit
5535768d25
BIN
html/images/logos/ats.png
Normal file
BIN
html/images/logos/ats.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
html/images/os/ats.png
Normal file
BIN
html/images/os/ats.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
13
includes/definitions/ats.yaml
Executable file
13
includes/definitions/ats.yaml
Executable file
@ -0,0 +1,13 @@
|
||||
os: ats
|
||||
text: Automatic Transfer Switch
|
||||
type: power
|
||||
icon: ats
|
||||
mib_dir: ats
|
||||
nobulk: true
|
||||
over:
|
||||
- { graph: device_current, text: Current }
|
||||
- { graph: device_voltage, text: Voltage }
|
||||
- { graph: device_load, text: Load }
|
||||
discovery:
|
||||
- sysObjectID:
|
||||
- .1.3.6.1.4.1.37662.1.2.2.1
|
104
includes/definitions/discovery/ats.yaml
Executable file
104
includes/definitions/discovery/ats.yaml
Executable file
@ -0,0 +1,104 @@
|
||||
mib: ATS-MIB
|
||||
modules:
|
||||
sensors:
|
||||
pre-cache:
|
||||
data:
|
||||
- oid:
|
||||
- atsMiscellaneousGroupSystemMaxCurrent
|
||||
- atsInputGroupSourceAvoltageUpperLimit
|
||||
- atsInputGroupSourceAvoltageLowerLimit
|
||||
- atsInputGroupSourceBvoltageUpperLimit
|
||||
- atsInputGroupSourceBvoltageLowerLimit
|
||||
- atsInputGroupSourceAfrequencyUpperLimit
|
||||
- atsInputGroupSourceAfrequencyLowerLimit
|
||||
- atsInputGroupSourceBfrequencyUpperLimit
|
||||
- atsInputGroupSourceBfrequencyLowerLimit
|
||||
current:
|
||||
data:
|
||||
-
|
||||
oid: atsOutputGroupOutputCurrent
|
||||
value: atsOutputGroupOutputCurrent
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.3.4.{{ $index }}'
|
||||
divisor: 10
|
||||
descr: 'Output'
|
||||
index: 'atsOutputGroupOutputCurrent.{{ $index }}'
|
||||
high_limit: 'atsMiscellaneousGroupSystemMaxCurrent'
|
||||
load:
|
||||
data:
|
||||
-
|
||||
oid: atsOutputGroupLoad
|
||||
value: atsOutputGroupLoad
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.3.5.{{ $index }}'
|
||||
descr: 'Output'
|
||||
index: 'atsOutputGroupLoad.{{ $index }}'
|
||||
high_limit: 100
|
||||
voltage:
|
||||
data:
|
||||
-
|
||||
oid: atsInputGroupSourceAinputVoltage
|
||||
value: atsInputGroupSourceAinputVoltage
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.2.3.{{ $index }}'
|
||||
descr: 'Input A'
|
||||
index: 'atsInputGroupSourceAinputVoltage.{{ $index }}'
|
||||
high_limit: 'atsInputGroupSourceAvoltageUpperLimit'
|
||||
low_limit: 'atsInputGroupSourceAvoltageLowerLimit'
|
||||
-
|
||||
oid: atsInputGroupSourceBinputVoltage
|
||||
value: atsInputGroupSourceBinputVoltage
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.2.6.{{ $index }}'
|
||||
descr: 'Input B'
|
||||
index: 'atsInputGroupSourceBinputVoltage.{{ $index }}'
|
||||
high_limit: 'atsInputGroupSourceBvoltageUpperLimit'
|
||||
low_limit: 'atsInputGroupSourceBvoltageLowerLimit'
|
||||
frequency:
|
||||
data:
|
||||
-
|
||||
oid: atsInputGroupSourceAinputFrequency
|
||||
value: atsInputGroupSourceAinputFrequency
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.2.4.{{ $index }}'
|
||||
divisor: 10
|
||||
descr: 'Input A'
|
||||
index: 'atsInputGroupSourceAinputFrequency.{{ $index }}'
|
||||
high_limit: 'atsInputGroupSourceAfrequencyUpperLimit'
|
||||
low_limit: 'atsInputGroupSourceAfrequencyLowerLimit'
|
||||
-
|
||||
oid: atsInputGroupSourceBinputFrequency
|
||||
value: atsInputGroupSourceBinputFrequency
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.2.4.{{ $index }}'
|
||||
divisor: 10
|
||||
descr: 'Input B'
|
||||
index: 'atsInputGroupSourceBinputFrequency.{{ $index }}'
|
||||
high_limit: 'atsInputGroupSourceBfrequencyUpperLimit'
|
||||
low_limit: 'atsInputGroupSourceBfrequencyLowerLimit'
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: atsInputGroupSourceAstatus
|
||||
value: atsInputGroupSourceAstatus
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.2.2.{{ $index }}'
|
||||
descr: 'Input A'
|
||||
index: 'atsInputGroupSourceAstatus.{{ $index }}'
|
||||
state_name: atsInputGroupSourceAstatus
|
||||
states:
|
||||
- { descr: Ok, graph: 0, value: 2, generic: 0 }
|
||||
- { descr: Fail, graph: 0, value: 1, generic: 2 }
|
||||
-
|
||||
oid: atsInputGroupSourceBstatus
|
||||
value: atsInputGroupSourceBstatus
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.2.5.{{ $index }}'
|
||||
descr: 'Input B'
|
||||
index: 'atsInputGroupSourceBstatus.{{ $index }}'
|
||||
state_name: atsInputGroupSourceBstatus
|
||||
states:
|
||||
- { descr: Ok, graph: 0, value: 2, generic: 0 }
|
||||
- { descr: Fail, graph: 0, value: 1, generic: 2 }
|
||||
-
|
||||
oid: atsHmiSwitchGroupBuzzer
|
||||
value: atsHmiSwitchGroupBuzzer
|
||||
num_oid: '.1.3.6.1.4.1.37662.1.2.2.1.1.4.1.{{ $index }}'
|
||||
descr: 'Buzzer'
|
||||
index: 'atsHmiSwitchGroupBuzzer.{{ $index }}'
|
||||
state_name: atsHmiSwitchGroupBuzzer
|
||||
states:
|
||||
- { descr: Disabled, graph: 0, value: 1, generic: 0 }
|
||||
- { descr: Enabled, graph: 0, value: 2, generic: 0 }
|
18
includes/discovery/sensors/temperature/ats.inc.php
Normal file
18
includes/discovery/sensors/temperature/ats.inc.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
echo 'ATS Temperature: ';
|
||||
|
||||
$descr = 'System';
|
||||
$oids = [
|
||||
'atsMiscellaneousGroupAtsSystemTemperture.0',
|
||||
'emdConfigTempHighSetPoint.0',
|
||||
'emdConfigTempLowSetPoint.0',
|
||||
];
|
||||
$temperature = snmp_get_multi($device, $oids, '-OteQUs', 'ATS-MIB');
|
||||
|
||||
if (is_numeric($temperature['0']['atsMiscellaneousGroupAtsSystemTemperture'])) {
|
||||
$temperature['0']['high_warn'] = $temperature['0']['emdConfigTempHighSetPoint'] - 5;
|
||||
$temperature['0']['low_warn'] = $temperature['0']['emdConfigTempLowSetPoint'] + 5;
|
||||
$temperature['0']['oid'] = '.1.3.6.1.4.1.37662.1.2.2.1.1.5.1.0';
|
||||
discover_sensor($valid['sensor'], 'temperature', $device, $temperature['0']['oid'], 'atsMiscellaneousGroupAtsSystemTemperture', 'ats', 'System', '1', '1', $temperature['0']['emdConfigTempLowSetPoint'], $temperature['0']['low_warn'], $temperature['0']['high_warn'], $temperature['0']['emdConfigTempHighSetPoint'], $temperature['0']['atsMiscellaneousGroupAtsSystemTemperture']);
|
||||
}
|
3
includes/polling/os/ats.inc.php
Executable file
3
includes/polling/os/ats.inc.php
Executable file
@ -0,0 +1,3 @@
|
||||
<?php
|
||||
|
||||
$hardware = snmp_get($device, 'atsIdentGroupFirmwareRevision.0', '-OQv', 'ATS-MIB');
|
1450
mibs/ats/ATS-MIB
Normal file
1450
mibs/ats/ATS-MIB
Normal file
File diff suppressed because it is too large
Load Diff
551
tests/data/ats.json
Normal file
551
tests/data/ats.json
Normal file
@ -0,0 +1,551 @@
|
||||
{
|
||||
"os": {
|
||||
"discovery": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.37662.1.2.2.1",
|
||||
"sysDescr": "SNMP Smart II Card v1.05 (SN 11230031806015)",
|
||||
"sysContact": null,
|
||||
"version": null,
|
||||
"hardware": null,
|
||||
"features": null,
|
||||
"os": "ats",
|
||||
"type": "power",
|
||||
"serial": null,
|
||||
"icon": "ats.png",
|
||||
"location": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"devices": [
|
||||
{
|
||||
"sysName": "<private>",
|
||||
"sysObjectID": ".1.3.6.1.4.1.37662.1.2.2.1",
|
||||
"sysDescr": "SNMP Smart II Card v1.05 (SN 11230031806015)",
|
||||
"sysContact": "<private>",
|
||||
"version": null,
|
||||
"hardware": "ATS11747",
|
||||
"features": null,
|
||||
"os": "ats",
|
||||
"type": "power",
|
||||
"serial": null,
|
||||
"icon": "ats.png",
|
||||
"location": "<private>"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"ports": {
|
||||
"discovery": {
|
||||
"ports": [
|
||||
{
|
||||
"port_descr_type": null,
|
||||
"port_descr_descr": null,
|
||||
"port_descr_circuit": null,
|
||||
"port_descr_speed": null,
|
||||
"port_descr_notes": null,
|
||||
"ifDescr": "eth0",
|
||||
"ifName": "eth0",
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": null,
|
||||
"ifConnectorPresent": null,
|
||||
"ifPromiscuousMode": null,
|
||||
"ifHighSpeed": null,
|
||||
"ifOperStatus": null,
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": null,
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": null,
|
||||
"ifType": "iso88023Csmacd",
|
||||
"ifAlias": "eth0",
|
||||
"ifPhysAddress": null,
|
||||
"ifHardType": null,
|
||||
"ifLastChange": 0,
|
||||
"ifVlan": "",
|
||||
"ifTrunk": null,
|
||||
"counter_in": null,
|
||||
"counter_out": null,
|
||||
"ignore": 0,
|
||||
"disabled": 0,
|
||||
"detailed": 0,
|
||||
"deleted": 0,
|
||||
"pagpOperationMode": null,
|
||||
"pagpPortState": null,
|
||||
"pagpPartnerDeviceId": null,
|
||||
"pagpPartnerLearnMethod": null,
|
||||
"pagpPartnerIfIndex": null,
|
||||
"pagpPartnerGroupIfIndex": null,
|
||||
"pagpPartnerDeviceName": null,
|
||||
"pagpEthcOperationMode": null,
|
||||
"pagpDeviceId": null,
|
||||
"pagpGroupIfIndex": null,
|
||||
"ifInUcastPkts": null,
|
||||
"ifInUcastPkts_prev": null,
|
||||
"ifInUcastPkts_delta": null,
|
||||
"ifInUcastPkts_rate": null,
|
||||
"ifOutUcastPkts": null,
|
||||
"ifOutUcastPkts_prev": null,
|
||||
"ifOutUcastPkts_delta": null,
|
||||
"ifOutUcastPkts_rate": null,
|
||||
"ifInErrors": null,
|
||||
"ifInErrors_prev": null,
|
||||
"ifInErrors_delta": null,
|
||||
"ifInErrors_rate": null,
|
||||
"ifOutErrors": null,
|
||||
"ifOutErrors_prev": null,
|
||||
"ifOutErrors_delta": null,
|
||||
"ifOutErrors_rate": null,
|
||||
"ifInOctets": null,
|
||||
"ifInOctets_prev": null,
|
||||
"ifInOctets_delta": null,
|
||||
"ifInOctets_rate": null,
|
||||
"ifOutOctets": null,
|
||||
"ifOutOctets_prev": null,
|
||||
"ifOutOctets_delta": null,
|
||||
"ifOutOctets_rate": null,
|
||||
"poll_prev": null,
|
||||
"ifInNUcastPkts": null,
|
||||
"ifInNUcastPkts_prev": null,
|
||||
"ifInNUcastPkts_delta": null,
|
||||
"ifInNUcastPkts_rate": null,
|
||||
"ifOutNUcastPkts": null,
|
||||
"ifOutNUcastPkts_prev": null,
|
||||
"ifOutNUcastPkts_delta": null,
|
||||
"ifOutNUcastPkts_rate": null,
|
||||
"ifInDiscards": null,
|
||||
"ifInDiscards_prev": null,
|
||||
"ifInDiscards_delta": null,
|
||||
"ifInDiscards_rate": null,
|
||||
"ifOutDiscards": null,
|
||||
"ifOutDiscards_prev": null,
|
||||
"ifOutDiscards_delta": null,
|
||||
"ifOutDiscards_rate": null,
|
||||
"ifInUnknownProtos": null,
|
||||
"ifInUnknownProtos_prev": null,
|
||||
"ifInUnknownProtos_delta": null,
|
||||
"ifInUnknownProtos_rate": null,
|
||||
"ifInBroadcastPkts": null,
|
||||
"ifInBroadcastPkts_prev": null,
|
||||
"ifInBroadcastPkts_delta": null,
|
||||
"ifInBroadcastPkts_rate": null,
|
||||
"ifOutBroadcastPkts": null,
|
||||
"ifOutBroadcastPkts_prev": null,
|
||||
"ifOutBroadcastPkts_delta": null,
|
||||
"ifOutBroadcastPkts_rate": null,
|
||||
"ifInMulticastPkts": null,
|
||||
"ifInMulticastPkts_prev": null,
|
||||
"ifInMulticastPkts_delta": null,
|
||||
"ifInMulticastPkts_rate": null,
|
||||
"ifOutMulticastPkts": null,
|
||||
"ifOutMulticastPkts_prev": null,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": {
|
||||
"ports": [
|
||||
{
|
||||
"port_descr_type": null,
|
||||
"port_descr_descr": null,
|
||||
"port_descr_circuit": null,
|
||||
"port_descr_speed": null,
|
||||
"port_descr_notes": null,
|
||||
"ifDescr": "eth0",
|
||||
"ifName": "eth0",
|
||||
"portName": null,
|
||||
"ifIndex": 1,
|
||||
"ifSpeed": 1000000000000,
|
||||
"ifConnectorPresent": "true",
|
||||
"ifPromiscuousMode": "true",
|
||||
"ifHighSpeed": 1000000,
|
||||
"ifOperStatus": "up",
|
||||
"ifOperStatus_prev": null,
|
||||
"ifAdminStatus": "up",
|
||||
"ifAdminStatus_prev": null,
|
||||
"ifDuplex": null,
|
||||
"ifMtu": 1500,
|
||||
"ifType": "iso88023Csmacd",
|
||||
"ifAlias": "eth0",
|
||||
"ifPhysAddress": null,
|
||||
"ifHardType": null,
|
||||
"ifLastChange": 0,
|
||||
"ifVlan": "",
|
||||
"ifTrunk": null,
|
||||
"counter_in": null,
|
||||
"counter_out": null,
|
||||
"ignore": 0,
|
||||
"disabled": 0,
|
||||
"detailed": 0,
|
||||
"deleted": 0,
|
||||
"pagpOperationMode": null,
|
||||
"pagpPortState": null,
|
||||
"pagpPartnerDeviceId": null,
|
||||
"pagpPartnerLearnMethod": null,
|
||||
"pagpPartnerIfIndex": null,
|
||||
"pagpPartnerGroupIfIndex": null,
|
||||
"pagpPartnerDeviceName": null,
|
||||
"pagpEthcOperationMode": null,
|
||||
"pagpDeviceId": null,
|
||||
"pagpGroupIfIndex": null,
|
||||
"ifInUcastPkts": 0,
|
||||
"ifInUcastPkts_prev": 0,
|
||||
"ifInUcastPkts_delta": null,
|
||||
"ifInUcastPkts_rate": null,
|
||||
"ifOutUcastPkts": 0,
|
||||
"ifOutUcastPkts_prev": 0,
|
||||
"ifOutUcastPkts_delta": null,
|
||||
"ifOutUcastPkts_rate": null,
|
||||
"ifInErrors": 0,
|
||||
"ifInErrors_prev": 0,
|
||||
"ifInErrors_delta": null,
|
||||
"ifInErrors_rate": null,
|
||||
"ifOutErrors": 0,
|
||||
"ifOutErrors_prev": 0,
|
||||
"ifOutErrors_delta": null,
|
||||
"ifOutErrors_rate": null,
|
||||
"ifInOctets": 0,
|
||||
"ifInOctets_prev": 0,
|
||||
"ifInOctets_delta": null,
|
||||
"ifInOctets_rate": null,
|
||||
"ifOutOctets": 0,
|
||||
"ifOutOctets_prev": 0,
|
||||
"ifOutOctets_delta": null,
|
||||
"ifOutOctets_rate": null,
|
||||
"poll_prev": null,
|
||||
"ifInNUcastPkts": 0,
|
||||
"ifInNUcastPkts_prev": 0,
|
||||
"ifInNUcastPkts_delta": null,
|
||||
"ifInNUcastPkts_rate": null,
|
||||
"ifOutNUcastPkts": 0,
|
||||
"ifOutNUcastPkts_prev": 0,
|
||||
"ifOutNUcastPkts_delta": null,
|
||||
"ifOutNUcastPkts_rate": null,
|
||||
"ifInDiscards": 0,
|
||||
"ifInDiscards_prev": 0,
|
||||
"ifInDiscards_delta": null,
|
||||
"ifInDiscards_rate": null,
|
||||
"ifOutDiscards": 0,
|
||||
"ifOutDiscards_prev": 0,
|
||||
"ifOutDiscards_delta": null,
|
||||
"ifOutDiscards_rate": null,
|
||||
"ifInUnknownProtos": 0,
|
||||
"ifInUnknownProtos_prev": 0,
|
||||
"ifInUnknownProtos_delta": null,
|
||||
"ifInUnknownProtos_rate": null,
|
||||
"ifInBroadcastPkts": 0,
|
||||
"ifInBroadcastPkts_prev": 0,
|
||||
"ifInBroadcastPkts_delta": null,
|
||||
"ifInBroadcastPkts_rate": null,
|
||||
"ifOutBroadcastPkts": 0,
|
||||
"ifOutBroadcastPkts_prev": 0,
|
||||
"ifOutBroadcastPkts_delta": null,
|
||||
"ifOutBroadcastPkts_rate": null,
|
||||
"ifInMulticastPkts": 0,
|
||||
"ifInMulticastPkts_prev": 0,
|
||||
"ifInMulticastPkts_delta": null,
|
||||
"ifInMulticastPkts_rate": null,
|
||||
"ifOutMulticastPkts": 0,
|
||||
"ifOutMulticastPkts_prev": 0,
|
||||
"ifOutMulticastPkts_delta": null,
|
||||
"ifOutMulticastPkts_rate": null
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"sensors": {
|
||||
"discovery": {
|
||||
"sensors": [
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "current",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.3.4.0",
|
||||
"sensor_index": "atsOutputGroupOutputCurrent.0",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "Output",
|
||||
"group": "",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0.29999999999999999,
|
||||
"sensor_limit": 16,
|
||||
"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": "frequency",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.2.4.0",
|
||||
"sensor_index": "atsInputGroupSourceAinputFrequency.0",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "Input A",
|
||||
"group": "",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 50,
|
||||
"sensor_limit": 55,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 45,
|
||||
"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": "frequency",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.2.4.0",
|
||||
"sensor_index": "atsInputGroupSourceBinputFrequency.0",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "Input B",
|
||||
"group": "",
|
||||
"sensor_divisor": 10,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 50,
|
||||
"sensor_limit": 55,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 45,
|
||||
"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": "load",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.3.5.0",
|
||||
"sensor_index": "atsOutputGroupLoad.0",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "Output",
|
||||
"group": "",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 0,
|
||||
"sensor_limit": 100,
|
||||
"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.37662.1.2.2.1.1.4.1.0",
|
||||
"sensor_index": "atsHmiSwitchGroupBuzzer.0",
|
||||
"sensor_type": "atsHmiSwitchGroupBuzzer",
|
||||
"sensor_descr": "Buzzer",
|
||||
"group": "",
|
||||
"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": "atsHmiSwitchGroupBuzzer"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.2.2.0",
|
||||
"sensor_index": "atsInputGroupSourceAstatus.0",
|
||||
"sensor_type": "atsInputGroupSourceAstatus",
|
||||
"sensor_descr": "Input A",
|
||||
"group": "",
|
||||
"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": "atsInputGroupSourceAstatus"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "state",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.2.5.0",
|
||||
"sensor_index": "atsInputGroupSourceBstatus.0",
|
||||
"sensor_type": "atsInputGroupSourceBstatus",
|
||||
"sensor_descr": "Input B",
|
||||
"group": "",
|
||||
"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": "atsInputGroupSourceBstatus"
|
||||
},
|
||||
{
|
||||
"sensor_deleted": 0,
|
||||
"sensor_class": "temperature",
|
||||
"poller_type": "snmp",
|
||||
"sensor_oid": ".1.3.6.1.4.1.37662.1.2.2.1.1.5.1.0",
|
||||
"sensor_index": "atsMiscellaneousGroupAtsSystemTemperture",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "System",
|
||||
"group": null,
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 29,
|
||||
"sensor_limit": 40,
|
||||
"sensor_limit_warn": 35,
|
||||
"sensor_limit_low": 5,
|
||||
"sensor_limit_low_warn": 10,
|
||||
"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.37662.1.2.2.1.1.2.3.0",
|
||||
"sensor_index": "atsInputGroupSourceAinputVoltage.0",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "Input A",
|
||||
"group": "",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 235,
|
||||
"sensor_limit": 264,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 195,
|
||||
"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.37662.1.2.2.1.1.2.6.0",
|
||||
"sensor_index": "atsInputGroupSourceBinputVoltage.0",
|
||||
"sensor_type": "ats",
|
||||
"sensor_descr": "Input B",
|
||||
"group": "",
|
||||
"sensor_divisor": 1,
|
||||
"sensor_multiplier": 1,
|
||||
"sensor_current": 236,
|
||||
"sensor_limit": 264,
|
||||
"sensor_limit_warn": null,
|
||||
"sensor_limit_low": 195,
|
||||
"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": "atsHmiSwitchGroupBuzzer",
|
||||
"state_descr": "Disabled",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "atsHmiSwitchGroupBuzzer",
|
||||
"state_descr": "Enabled",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "atsInputGroupSourceAstatus",
|
||||
"state_descr": "Fail",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "atsInputGroupSourceAstatus",
|
||||
"state_descr": "Ok",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
},
|
||||
{
|
||||
"state_name": "atsInputGroupSourceBstatus",
|
||||
"state_descr": "Fail",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 1,
|
||||
"state_generic_value": 2
|
||||
},
|
||||
{
|
||||
"state_name": "atsInputGroupSourceBstatus",
|
||||
"state_descr": "Ok",
|
||||
"state_draw_graph": 0,
|
||||
"state_value": 2,
|
||||
"state_generic_value": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
"poller": "matches discovery"
|
||||
}
|
||||
}
|
165
tests/snmpsim/ats.snmprec
Normal file
165
tests/snmpsim/ats.snmprec
Normal file
@ -0,0 +1,165 @@
|
||||
1.3.6.1.2.1.1.1.0|4|SNMP Smart II Card v1.05 (SN 11230031806015)
|
||||
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.37662.1.2.2.1
|
||||
1.3.6.1.2.1.1.3.0|67|3125594
|
||||
1.3.6.1.2.1.1.4.0|4|<private>
|
||||
1.3.6.1.2.1.1.5.0|4|<private>
|
||||
1.3.6.1.2.1.1.6.0|4|<private>
|
||||
1.3.6.1.2.1.2.2.1.2.1|4|eth0
|
||||
1.3.6.1.2.1.2.2.1.3.1|2|7
|
||||
1.3.6.1.2.1.2.2.1.4.1|2|1500
|
||||
1.3.6.1.2.1.2.2.1.7.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.8.1|2|1
|
||||
1.3.6.1.2.1.2.2.1.13.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.14.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.19.1|65|0
|
||||
1.3.6.1.2.1.2.2.1.20.1|65|0
|
||||
1.3.6.1.2.1.4.20.1.2.0|2|1
|
||||
1.3.6.1.2.1.4.20.1.3.0|65|2
|
||||
1.3.6.1.2.1.4.22.1.2.1|4x|FFFFFFFFFFFF
|
||||
1.3.6.1.2.1.4.22.1.2.2|4x|FFFFFFFFFFFF
|
||||
1.3.6.1.2.1.4.22.1.2.3|4x|01005E7FFFFA
|
||||
1.3.6.1.2.1.4.22.1.2.4|4x|0026984D3E01
|
||||
1.3.6.1.2.1.4.22.1.2.108|4x|C47D4FC446FF
|
||||
1.3.6.1.2.1.4.22.1.2.247|4x|C47D4FC446FF
|
||||
1.3.6.1.2.1.4.31.1.1.1.1|2|1
|
||||
1.3.6.1.2.1.4.31.1.1.3.1|65|71672
|
||||
1.3.6.1.2.1.4.31.1.1.5.1|65|10372322
|
||||
1.3.6.1.2.1.4.31.1.1.7.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.8.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.9.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.10.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.11.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.12.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.14.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.15.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.16.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.17.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.18.1|65|71684
|
||||
1.3.6.1.2.1.4.31.1.1.20.1|65|46188
|
||||
1.3.6.1.2.1.4.31.1.1.22.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.23.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.25.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.26.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.27.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.28.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.29.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.30.1|65|46196
|
||||
1.3.6.1.2.1.4.31.1.1.32.1|65|12466372
|
||||
1.3.6.1.2.1.4.31.1.1.34.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.36.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.38.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.40.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.42.1|65|7554
|
||||
1.3.6.1.2.1.4.31.1.1.44.1|65|0
|
||||
1.3.6.1.2.1.4.31.1.1.46.1|67|0
|
||||
1.3.6.1.2.1.4.31.1.1.47.1|66|5000
|
||||
1.3.6.1.2.1.4.35.1.5.1.1.1|67|0
|
||||
1.3.6.1.2.1.5.1.0|65|1216
|
||||
1.3.6.1.2.1.5.2.0|65|0
|
||||
1.3.6.1.2.1.5.3.0|65|2
|
||||
1.3.6.1.2.1.5.4.0|65|0
|
||||
1.3.6.1.2.1.5.5.0|65|0
|
||||
1.3.6.1.2.1.5.6.0|65|0
|
||||
1.3.6.1.2.1.5.7.0|65|0
|
||||
1.3.6.1.2.1.5.8.0|65|1214
|
||||
1.3.6.1.2.1.5.9.0|65|0
|
||||
1.3.6.1.2.1.5.10.0|65|0
|
||||
1.3.6.1.2.1.5.11.0|65|0
|
||||
1.3.6.1.2.1.5.12.0|65|0
|
||||
1.3.6.1.2.1.5.13.0|65|0
|
||||
1.3.6.1.2.1.5.14.0|65|1214
|
||||
1.3.6.1.2.1.5.15.0|65|0
|
||||
1.3.6.1.2.1.5.16.0|65|0
|
||||
1.3.6.1.2.1.5.17.0|65|0
|
||||
1.3.6.1.2.1.5.18.0|65|0
|
||||
1.3.6.1.2.1.5.19.0|65|0
|
||||
1.3.6.1.2.1.5.20.0|65|0
|
||||
1.3.6.1.2.1.5.21.0|65|1214
|
||||
1.3.6.1.2.1.5.22.0|65|0
|
||||
1.3.6.1.2.1.5.23.0|65|0
|
||||
1.3.6.1.2.1.5.24.0|65|0
|
||||
1.3.6.1.2.1.5.25.0|65|0
|
||||
1.3.6.1.2.1.5.26.0|65|0
|
||||
1.3.6.1.2.1.5.29.1.1.1|2|1
|
||||
1.3.6.1.2.1.5.29.1.2.1|65|1216
|
||||
1.3.6.1.2.1.5.29.1.3.1|65|0
|
||||
1.3.6.1.2.1.5.29.1.4.1|65|1214
|
||||
1.3.6.1.2.1.5.29.1.5.1|65|0
|
||||
1.3.6.1.2.1.5.29.1.6.1|5|
|
||||
1.3.6.1.2.1.5.30.1.1.1.0|2|1
|
||||
1.3.6.1.2.1.5.30.1.2.1.0|2|0
|
||||
1.3.6.1.2.1.5.30.1.3.1.0|65|0
|
||||
1.3.6.1.2.1.5.30.1.4.1.0|65|0
|
||||
1.3.6.1.2.1.5.30.1.5.1.0|5|
|
||||
1.3.6.1.2.1.11.1.0|65|14779
|
||||
1.3.6.1.2.1.11.2.0|65|14781
|
||||
1.3.6.1.2.1.11.3.0|65|0
|
||||
1.3.6.1.2.1.11.4.0|65|0
|
||||
1.3.6.1.2.1.11.5.0|65|0
|
||||
1.3.6.1.2.1.11.6.0|65|0
|
||||
1.3.6.1.2.1.11.8.0|65|0
|
||||
1.3.6.1.2.1.11.9.0|65|0
|
||||
1.3.6.1.2.1.11.10.0|65|0
|
||||
1.3.6.1.2.1.11.11.0|65|0
|
||||
1.3.6.1.2.1.11.12.0|65|0
|
||||
1.3.6.1.2.1.11.13.0|65|48160
|
||||
1.3.6.1.2.1.11.14.0|65|0
|
||||
1.3.6.1.2.1.11.15.0|65|8397
|
||||
1.3.6.1.2.1.11.16.0|65|6396
|
||||
1.3.6.1.2.1.11.17.0|65|0
|
||||
1.3.6.1.2.1.11.18.0|65|0
|
||||
1.3.6.1.2.1.11.19.0|65|0
|
||||
1.3.6.1.2.1.11.20.0|65|0
|
||||
1.3.6.1.2.1.11.21.0|65|3146
|
||||
1.3.6.1.2.1.11.22.0|65|0
|
||||
1.3.6.1.2.1.11.24.0|65|0
|
||||
1.3.6.1.2.1.11.25.0|65|0
|
||||
1.3.6.1.2.1.11.26.0|65|0
|
||||
1.3.6.1.2.1.11.27.0|65|0
|
||||
1.3.6.1.2.1.11.28.0|65|14803
|
||||
1.3.6.1.2.1.11.29.0|65|2
|
||||
1.3.6.1.2.1.11.30.0|2|0
|
||||
1.3.6.1.2.1.11.31.0|65|0
|
||||
1.3.6.1.2.1.11.32.0|65|0
|
||||
1.3.6.1.2.1.31.1.1.1.1.1|4|eth0
|
||||
1.3.6.1.2.1.31.1.1.1.2.1|65|0
|
||||
1.3.6.1.2.1.31.1.1.1.3.1|65|0
|
||||
1.3.6.1.2.1.31.1.1.1.4.1|65|0
|
||||
1.3.6.1.2.1.31.1.1.1.5.1|65|0
|
||||
1.3.6.1.2.1.31.1.1.1.6.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.7.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.8.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.9.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.10.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.11.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.12.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.13.1|70|0
|
||||
1.3.6.1.2.1.31.1.1.1.14.1|2|1
|
||||
1.3.6.1.2.1.31.1.1.1.15.1|66|1000000
|
||||
1.3.6.1.2.1.31.1.1.1.16.1|2|1
|
||||
1.3.6.1.2.1.31.1.1.1.17.1|2|1
|
||||
1.3.6.1.2.1.31.1.1.1.18.1|4|eth0
|
||||
1.3.6.1.2.1.31.1.1.1.19.1|67|0
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.1.4.0|4|ATS11747
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.2.0|2|2
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.3.0|2|235
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.4.0|2|500
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.5.0|2|2
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.6.0|2|236
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.7.0|2|500
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.8.0|2|264
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.9.0|2|195
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.10.0|2|550
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.11.0|2|450
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.12.0|2|264
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.13.0|2|195
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.14.0|2|550
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.2.15.0|2|450
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.3.4.0|2|3
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.3.5.0|2|0
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.4.1.0|2|2
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.5.1.0|2|29
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.5.2.0|2|160
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.9.3.2.0|2|40
|
||||
1.3.6.1.4.1.37662.1.2.2.1.1.9.3.4.0|2|5
|
||||
1.3.6.1.6.3.10.2.1.3.0|2|96792
|
Loading…
Reference in New Issue
Block a user