add initial support for socomec-ups (#16018)

* [wip] add initial support for socomec-ups

based on: https://community.librenms.org/t/add-socomec-ups-with-netvision-snmp-card/24139

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>

* ci

* drop cache/precache

* drop MIB definition

---------

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
This commit is contained in:
Peca Nesovanovic 2024-06-04 11:24:30 +02:00 committed by GitHub
parent d888ab4649
commit 390baa73fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 3618 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?php
/*
* SocomecUps.php
*
* -Description-
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* @package LibreNMS
* @link https://www.librenms.org
* @copyright 2024 Peca Nesovanovic
* @author peca.nesovanovic@sattrakt.com
*/
namespace LibreNMS\OS;
use App\Models\Device;
use LibreNMS\OS;
class SocomecUps extends OS
{
public function discoverOS(Device $device): void
{
parent::discoverOS($device); // yaml
$data = intval(\SnmpQuery::get('SOCOMECUPS-MIB::upsConfigNomKva.0')->value());
$device->features = ($data / 10) . ' kVA';
}
}

View File

@ -0,0 +1,265 @@
modules:
os:
hardware: SOCOMECUPS-MIB::upsIdentModel.0
version: SOCOMECUPS-MIB::upsIdentAgentSoftwareVersion.0
version_regex: '/v(?<version>[0-9]+.[0-9]+)/'
serial: SOCOMECUPS-MIB::upsIdentSerialNumber.0
sensors:
voltage:
data:
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsBatteryVoltage
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.5.{{ $index }}'
descr: 'Battery #{{ $index }} Voltage'
index: 'upsBatteryVoltage.{{ $index }}'
divisor: 10
low_limit: 10
low_warn_limit: 11
warn_limit: 55
high_limit: 60
-
oid: SOCOMECUPS-MIB::upsBypass
value: SOCOMECUPS-MIB::upsBypassVoltage
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.5.3.1.2.{{ $index }}'
descr: 'Bypass #{{ $index }} Voltage'
index: 'upsBypassVoltage.{{ $index }}'
divisor: 10
-
oid: SOCOMECUPS-MIB::upsInput
value: SOCOMECUPS-MIB::upsInputVoltage
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.3.3.1.2.{{ $index }}'
descr: 'Input #{{ $index }} Voltage'
index: 'upsInputVoltage.{{ $index }}'
divisor: 10
low_limit: 200
low_warn_limit: 210
warn_limit: 235
high_limit: 240
-
oid: SOCOMECUPS-MIB::upsOutput
value: SOCOMECUPS-MIB::upsOutputVoltage
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.4.4.1.2.{{ $index }}'
descr: 'Output #{{ $index }} Voltage'
index: 'upsOutputVoltage.{{ $index }}'
divisor: 10
current:
data:
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsBatteryCurrent
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.8.{{ $index }}'
descr: 'Battery #{{ $index }} Current'
index: 'upsBatteryCurrent.{{ $index }}'
divisor: 10
skip_values:
-
oid: SOCOMECUPS-MIB::upsBatteryCurrent
op: '>'
value: 32767
-
oid: SOCOMECUPS-MIB::upsBypass
value: SOCOMECUPS-MIB::upsBypassCurrent
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.5.3.1.3.{{ $index }}'
descr: 'Bypass #{{ $index }} Current'
index: 'upsBypassCurrent.{{ $index }}'
divisor: 10
skip_values:
-
oid: SOCOMECUPS-MIB::upsBypassCurrent
op: '>'
value: 32767
-
oid: SOCOMECUPS-MIB::upsInput
value: SOCOMECUPS-MIB::upsInputCurrent
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.3.3.1.3.{{ $index }}'
descr: 'Input #{{ $index }} Current'
index: 'upsInputCurrent.{{ $index }}'
divisor: 10
skip_values:
-
oid: SOCOMECUPS-MIB::upsInputCurrent
op: '>'
value: 32767
-
oid: SOCOMECUPS-MIB::upsOutput
value: SOCOMECUPS-MIB::upsOutputCurrent
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.4.4.1.3.{{ $index }}'
descr: 'Output #{{ $index }} Current'
index: 'upsOutputCurrent.{{ $index }}'
divisor: 10
skip_values:
-
oid: SOCOMECUPS-MIB::upsOutputCurrent
op: '>'
value: 32767
load:
data:
-
oid: SOCOMECUPS-MIB::upsOutput
value: SOCOMECUPS-MIB::upsOutputPercentLoad
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.4.4.1.4.{{ $index }}'
descr: 'Output #{{ $index }} Load'
index: 'upsOutputPercentLoad.{{ $index }}'
frequency:
data:
-
oid: SOCOMECUPS-MIB::upsBypass
value: SOCOMECUPS-MIB::upsBypassFrequency
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.5.1.{{ $index }}'
descr: 'Bypass #{{ $index }} Frequency'
index: 'upsBypassFrequency.{{ $index }}'
divisor: 10
-
oid: SOCOMECUPS-MIB::upsInput
value: SOCOMECUPS-MIB::upsInputFrequency
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.3.2.{{ $index }}'
descr: 'Input #{{ $index }} Frequency'
index: 'upsInputFrequency.{{ $index }}'
divisor: 10
-
oid: SOCOMECUPS-MIB::upsOutput
value: SOCOMECUPS-MIB::upsOutputFrequency
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.4.2.{{ $index }}'
descr: 'Output #{{ $index }} Frequency'
index: 'upsOutputFrequency.{{ $index }}'
divisor: 10
temperature:
data:
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsBatteryTemperature
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.6.{{ $index }}'
descr: 'Battery #{{ $index }} Temperature'
index: 'upsBatteryTemperature.{{ $index }}'
divisor: 10
skip_values:
-
oid: SOCOMECUPS-MIB::upsBatteryTemperature
op: '='
value: 0
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsAmbientTemperature
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.7.{{ $index }}'
descr: 'Ambient #{{ $index }} Temperature'
index: 'upsAmbientTemperature.{{ $index }}'
divisor: 10
skip_values:
-
oid: SOCOMECUPS-MIB::upsAmbientTemperature
op: '='
value: 0
runtime:
data:
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsEstimatedMinutesRemaining
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.3.{{ $index }}'
descr: 'Battery #{{ $index }} Minutes remaining'
index: 'upsEstimatedMinutesRemaining.{{ $index }}'
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsSecondsOnBattery
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.2.{{ $index }}'
descr: 'Battery #{{ $index }} Runtime seconds'
index: 'upsSecondsOnBattery.{{ $index }}'
charge:
data:
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsEstimatedChargeRemaining
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.4.{{ $index }}'
descr: 'Battery #{{ $index }} Charge remaining'
index: 'upsEstimatedChargeRemaining.{{ $index }}'
state:
data:
-
oid: SOCOMECUPS-MIB::upsBattery
value: SOCOMECUPS-MIB::upsBatteryStatus
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.1.{{ $index }}'
descr: 'Battery #{{ $index }} Status'
index: 'upsBatteryStatus.{{ $index }}'
state_name: upsBatteryStatus
states:
- { value: 1, generic: 3, graph: 1, descr: 'Unknown' }
- { value: 2, generic: 0, graph: 1, descr: 'Normal' }
- { value: 3, generic: 1, graph: 1, descr: 'Charging' }
- { value: 4, generic: 3, graph: 1, descr: 'Test' }
- { value: 5, generic: 1, graph: 1, descr: 'Discharging' }
- { value: 6, generic: 1, graph: 1, descr: 'Low' }
- { value: 7, generic: 2, graph: 1, descr: 'Depleted' }
- { value: 8, generic: 2, graph: 1, descr: 'Failure' }
- { value: 9, generic: 2, graph: 1, descr: 'Disconnected' }
-
oid: SOCOMECUPS-MIB::upsOutput
value: SOCOMECUPS-MIB::upsOutputSource
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.2.1.{{ $index }}'
descr: 'Output #{{ $index }} Source'
index: 'upsOutputSource.{{ $index }}'
state_name: upsOutputSource
states:
- { value: 1, generic: 3, graph: 1, descr: 'Unknown' }
- { value: 2, generic: 1, graph: 1, descr: 'on Maintenance Bypass' }
- { value: 3, generic: 1, graph: 1, descr: 'on Inverter' }
- { value: 4, generic: 0, graph: 1, descr: 'Normal mode' }
- { value: 5, generic: 0, graph: 1, descr: 'ECO mode' }
- { value: 6, generic: 1, graph: 1, descr: 'on Bypass' }
- { value: 7, generic: 0, graph: 1, descr: 'on Standby' }
- { value: 8, generic: 2, graph: 1, descr: 'UPS Off' }
- { value: 9, generic: 1, graph: 1, descr: 'line Interactive' }
-
oid: SOCOMECUPS-MIB::upsAlarm
value: SOCOMECUPS-MIB::upsAlarmOverload
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.6.3.2.{{ $index }}'
descr: 'Output #{{ $index }} Overload'
index: 'upsAlarmOverload.{{ $index }}'
group: Alarm
state_name: upsAlarmOverload
states:
- { value: 0, generic: 0, graph: 1, descr: 'OK' }
- { value: 1, generic: 2, graph: 1, descr: 'Alarm' }
-
oid: SOCOMECUPS-MIB::upsAlarm
value: SOCOMECUPS-MIB::upsAlarmTemperature
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.6.3.3.{{ $index }}'
descr: 'Temperature #{{ $index }} Out of tolerance'
index: 'upsAlarmTemperature.{{ $index }}'
group: Alarm
state_name: upsAlarmTemperature
states:
- { value: 0, generic: 0, graph: 1, descr: 'OK' }
- { value: 1, generic: 2, graph: 1, descr: 'Alarm' }
-
oid: SOCOMECUPS-MIB::upsAlarm
value: SOCOMECUPS-MIB::upsAlarmRectifierAlarm
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.6.3.21.{{ $index }}'
descr: 'Rectifier #{{ $index }} Preventive alarm'
index: 'upsAlarmRectifierAlarm.{{ $index }}'
group: Alarm
state_name: upsAlarmRectifierAlarm
states:
- { value: 0, generic: 0, graph: 1, descr: 'OK' }
- { value: 1, generic: 2, graph: 1, descr: 'Alarm' }
-
oid: SOCOMECUPS-MIB::upsAlarm
value: SOCOMECUPS-MIB::upsAlarmFansFailure
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.6.3.32.{{ $index }}'
descr: 'Fan #{{ $index }} Alarm'
index: 'upsAlarmFansFailure.{{ $index }}'
group: Alarm
state_name: upsAlarmFansFailure
states:
- { value: 0, generic: 0, graph: 1, descr: 'OK' }
- { value: 1, generic: 2, graph: 1, descr: 'Alarm' }
-
oid: SOCOMECUPS-MIB::upsAlarm
value: SOCOMECUPS-MIB::upsAlarmGeneralFault
num_oid: '.1.3.6.1.4.1.4555.1.1.7.1.6.3.11.{{ $index }}'
descr: 'General Alarm'
index: 'upsAlarmGeneralFault.{{ $index }}'
group: Alarm
state_name: upsAlarmGeneralFault
states:
- { value: 0, generic: 0, graph: 1, descr: 'OK' }
- { value: 1, generic: 2, graph: 1, descr: 'Alarm' }

View File

@ -0,0 +1,14 @@
os: socomec-ups
text: 'Socomec UPS'
group: ups
type: power
snmp_bulk: false
mib_dir: socomec
icon: socomecpdu
over:
- { graph: device_voltage, text: Voltage }
- { graph: device_load, text: Load }
- { graph: device_frequency, text: Frequency }
discovery:
-
sysObjectID: .1.3.6.1.4.1.4555.1.1.7

2435
mibs/socomec/SOCOMECUPS-MIB Normal file

File diff suppressed because it is too large Load Diff

728
tests/data/socomec-ups.json Normal file
View File

@ -0,0 +1,728 @@
{
"os": {
"discovery": {
"devices": [
{
"sysName": "<private>",
"sysObjectID": ".1.3.6.1.4.1.4555.1.1.7",
"sysDescr": "NetVision-8",
"sysContact": "<private>",
"version": "8.00",
"hardware": "NETYS RT",
"features": "2.2 kVA",
"location": "<private>",
"os": "socomec-ups",
"type": "power",
"serial": "2D22451188",
"icon": "socomecpdu.png"
}
]
},
"poller": "matches discovery"
},
"sensors": {
"discovery": {
"sensors": [
{
"sensor_deleted": 0,
"sensor_class": "charge",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.4.0",
"sensor_index": "upsEstimatedChargeRemaining.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Charge remaining",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 100,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "current",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.4.1.3.1",
"sensor_index": "upsOutputCurrent.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #1 Current",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.5.1.0",
"sensor_index": "upsBypassFrequency.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Bypass #0 Frequency",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.3.2.0",
"sensor_index": "upsInputFrequency.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Input #0 Frequency",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "frequency",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.2.0",
"sensor_index": "upsOutputFrequency.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #0 Frequency",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 50,
"sensor_limit": 52.5,
"sensor_limit_warn": null,
"sensor_limit_low": 47.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "load",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.4.1.4.1",
"sensor_index": "upsOutputPercentLoad.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #1 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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "runtime",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.3.0",
"sensor_index": "upsEstimatedMinutesRemaining.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Minutes remaining",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 65535,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "runtime",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.2.0",
"sensor_index": "upsSecondsOnBattery.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Runtime seconds",
"group": null,
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.32.0",
"sensor_index": "upsAlarmFansFailure.0",
"sensor_type": "upsAlarmFansFailure",
"sensor_descr": "Fan #0 Alarm",
"group": "Alarm",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": "upsAlarmFansFailure"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.11.0",
"sensor_index": "upsAlarmGeneralFault.0",
"sensor_type": "upsAlarmGeneralFault",
"sensor_descr": "General Alarm",
"group": "Alarm",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": "upsAlarmGeneralFault"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.2.0",
"sensor_index": "upsAlarmOverload.0",
"sensor_type": "upsAlarmOverload",
"sensor_descr": "Output #0 Overload",
"group": "Alarm",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": "upsAlarmOverload"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.21.0",
"sensor_index": "upsAlarmRectifierAlarm.0",
"sensor_type": "upsAlarmRectifierAlarm",
"sensor_descr": "Rectifier #0 Preventive alarm",
"group": "Alarm",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": "upsAlarmRectifierAlarm"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.6.3.3.0",
"sensor_index": "upsAlarmTemperature.0",
"sensor_type": "upsAlarmTemperature",
"sensor_descr": "Temperature #0 Out of tolerance",
"group": "Alarm",
"sensor_divisor": 1,
"sensor_multiplier": 1,
"sensor_current": 0,
"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,
"rrd_type": "GAUGE",
"state_name": "upsAlarmTemperature"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.1.0",
"sensor_index": "upsBatteryStatus.0",
"sensor_type": "upsBatteryStatus",
"sensor_descr": "Battery #0 Status",
"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,
"rrd_type": "GAUGE",
"state_name": "upsBatteryStatus"
},
{
"sensor_deleted": 0,
"sensor_class": "state",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.1.0",
"sensor_index": "upsOutputSource.0",
"sensor_type": "upsOutputSource",
"sensor_descr": "Output #0 Source",
"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,
"rrd_type": "GAUGE",
"state_name": "upsOutputSource"
},
{
"sensor_deleted": 0,
"sensor_class": "temperature",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.7.0",
"sensor_index": "upsAmbientTemperature.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Ambient #0 Temperature",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 21,
"sensor_limit": 41,
"sensor_limit_warn": null,
"sensor_limit_low": 11,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.2.5.0",
"sensor_index": "upsBatteryVoltage.0",
"sensor_type": "socomec-ups",
"sensor_descr": "Battery #0 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 54.2,
"sensor_limit": 60,
"sensor_limit_warn": 55,
"sensor_limit_low": 10,
"sensor_limit_low_warn": 11,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.5.3.1.2.1",
"sensor_index": "upsBypassVoltage.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Bypass #1 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 240,
"sensor_limit": 276,
"sensor_limit_warn": null,
"sensor_limit_low": 204,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.3.3.1.2.1",
"sensor_index": "upsInputVoltage.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Input #1 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 240,
"sensor_limit": 240,
"sensor_limit_warn": 235,
"sensor_limit_low": 200,
"sensor_limit_low_warn": 210,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
},
{
"sensor_deleted": 0,
"sensor_class": "voltage",
"poller_type": "snmp",
"sensor_oid": ".1.3.6.1.4.1.4555.1.1.7.1.4.4.1.2.1",
"sensor_index": "upsOutputVoltage.1",
"sensor_type": "socomec-ups",
"sensor_descr": "Output #1 Voltage",
"group": null,
"sensor_divisor": 10,
"sensor_multiplier": 1,
"sensor_current": 230,
"sensor_limit": 264.5,
"sensor_limit_warn": null,
"sensor_limit_low": 195.5,
"sensor_limit_low_warn": null,
"sensor_alert": 1,
"sensor_custom": "No",
"entPhysicalIndex": null,
"entPhysicalIndex_measured": null,
"sensor_prev": null,
"user_func": null,
"rrd_type": "GAUGE",
"state_name": null
}
],
"state_indexes": [
{
"state_name": "upsAlarmFansFailure",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmFansFailure",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmGeneralFault",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmGeneralFault",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmOverload",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmOverload",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmRectifierAlarm",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmRectifierAlarm",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsAlarmTemperature",
"state_descr": "OK",
"state_draw_graph": 1,
"state_value": 0,
"state_generic_value": 0
},
{
"state_name": "upsAlarmTemperature",
"state_descr": "Alarm",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 2
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Unknown",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 3
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Normal",
"state_draw_graph": 1,
"state_value": 2,
"state_generic_value": 0
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Charging",
"state_draw_graph": 1,
"state_value": 3,
"state_generic_value": 1
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Test",
"state_draw_graph": 1,
"state_value": 4,
"state_generic_value": 3
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Discharging",
"state_draw_graph": 1,
"state_value": 5,
"state_generic_value": 1
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Low",
"state_draw_graph": 1,
"state_value": 6,
"state_generic_value": 1
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Depleted",
"state_draw_graph": 1,
"state_value": 7,
"state_generic_value": 2
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Failure",
"state_draw_graph": 1,
"state_value": 8,
"state_generic_value": 2
},
{
"state_name": "upsBatteryStatus",
"state_descr": "Disconnected",
"state_draw_graph": 1,
"state_value": 9,
"state_generic_value": 2
},
{
"state_name": "upsOutputSource",
"state_descr": "Unknown",
"state_draw_graph": 1,
"state_value": 1,
"state_generic_value": 3
},
{
"state_name": "upsOutputSource",
"state_descr": "on Maintenance Bypass",
"state_draw_graph": 1,
"state_value": 2,
"state_generic_value": 1
},
{
"state_name": "upsOutputSource",
"state_descr": "on Inverter",
"state_draw_graph": 1,
"state_value": 3,
"state_generic_value": 1
},
{
"state_name": "upsOutputSource",
"state_descr": "Normal mode",
"state_draw_graph": 1,
"state_value": 4,
"state_generic_value": 0
},
{
"state_name": "upsOutputSource",
"state_descr": "ECO mode",
"state_draw_graph": 1,
"state_value": 5,
"state_generic_value": 0
},
{
"state_name": "upsOutputSource",
"state_descr": "on Bypass",
"state_draw_graph": 1,
"state_value": 6,
"state_generic_value": 1
},
{
"state_name": "upsOutputSource",
"state_descr": "on Standby",
"state_draw_graph": 1,
"state_value": 7,
"state_generic_value": 0
},
{
"state_name": "upsOutputSource",
"state_descr": "UPS Off",
"state_draw_graph": 1,
"state_value": 8,
"state_generic_value": 2
},
{
"state_name": "upsOutputSource",
"state_descr": "line Interactive",
"state_draw_graph": 1,
"state_value": 9,
"state_generic_value": 1
}
]
},
"poller": "matches discovery"
}
}

View File

@ -0,0 +1,136 @@
1.3.6.1.2.1.1.1.0|4|NetVision-8
1.3.6.1.2.1.1.2.0|6|1.3.6.1.4.1.4555.1.1.7
1.3.6.1.2.1.1.3.0|67|12123
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.11.1.0|65|240
1.3.6.1.2.1.11.2.0|65|239
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|2270
1.3.6.1.2.1.11.14.0|65|0
1.3.6.1.2.1.11.15.0|65|23
1.3.6.1.2.1.11.16.0|65|0
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|0
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|241
1.3.6.1.2.1.11.29.0|65|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.4.1.4555.1.1.7.1.1.1.0|4|NETYS RT
1.3.6.1.4.1.4555.1.1.7.1.1.2.0|4|2D22451188
1.3.6.1.4.1.4555.1.1.7.1.1.5.0|4|Net Vision 8 v8.00
1.3.6.1.4.1.4555.1.1.7.1.2.1.0|2|3
1.3.6.1.4.1.4555.1.1.7.1.2.2.0|2|0
1.3.6.1.4.1.4555.1.1.7.1.2.3.0|2|65535
1.3.6.1.4.1.4555.1.1.7.1.2.4.0|2|100
1.3.6.1.4.1.4555.1.1.7.1.2.5.0|2|542
1.3.6.1.4.1.4555.1.1.7.1.2.6.0|2|0
1.3.6.1.4.1.4555.1.1.7.1.2.7.0|2|210
1.3.6.1.4.1.4555.1.1.7.1.2.8.0|2|65535
1.3.6.1.4.1.4555.1.1.7.1.2.9.0|2|0
1.3.6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