mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Marathon detection
This commit is contained in:
126
includes/definitions/discovery/marathonups.yaml
Normal file
126
includes/definitions/discovery/marathonups.yaml
Normal file
@@ -0,0 +1,126 @@
|
||||
mib: UPS-MIB:SYNSO-UPSMIB
|
||||
modules:
|
||||
sensors:
|
||||
state:
|
||||
data:
|
||||
-
|
||||
oid: upsBattery
|
||||
value: upsBatteryStatus
|
||||
num_oid: '.1.3.6.1.2.1.33.1.2.1.{{ $index }}'
|
||||
descr: Battery Status
|
||||
index: 'upsBatteryStatus.{{ $index }}'
|
||||
states:
|
||||
- { value: 1, descr: Unknown, graph: 0, generic: 3 }
|
||||
- { value: 2, descr: Normal, graph: 0, generic: 0 }
|
||||
- { value: 3, descr: Low, graph: 0, generic: 1 }
|
||||
- { value: 4, descr: Depleted, graph: 0, generic: 2}
|
||||
-
|
||||
oid: upsOutput
|
||||
value: upsOutputSource
|
||||
num_oid: '.1.3.6.1.2.1.33.1.4.1.{{ $index }}'
|
||||
descr: Outout Source
|
||||
index: 'upsOutputSource.{{ $index }}'
|
||||
states:
|
||||
- { value: 1, descr: Other, graph: 0, generic: 3}
|
||||
- { value: 2, descr: None, graph: 0, generic: 2}
|
||||
- { value: 3, descr: Normal, graph: 0, generic: 0}
|
||||
- { value: 4, descr: Bypass, graph: 0, generic: 1}
|
||||
- { value: 5, descr: Battery, graph: 0, generic: 1}
|
||||
- { value: 6, descr: Booster, graph: 0, generic: 3}
|
||||
- { value: 7, descr: Reducer, graph: 0, generic: 3}
|
||||
-
|
||||
oid: upsTest
|
||||
value: upsTestResultsSummary
|
||||
num_oid: '.1.3.6.1.2.1.33.1.7.3.{{ $index }}'
|
||||
descr: UPS Test
|
||||
index: 'upsTestResultsSummary.{{ $index }}'
|
||||
states:
|
||||
- { value: 1, descr: Pass, graph: 0, generic: 0}
|
||||
- { value: 2, descr: Warning, graph: 0, generic: 1}
|
||||
- { value: 3, descr: Error, graph: 0, generic: 2}
|
||||
- { value: 4, descr: Aborted, graph: 0, generic: 1}
|
||||
- { value: 5, descr: In Progress, graph: 0, generic: 0}
|
||||
- { value: 6, descr: No Test Initiated, graph: 0, generic: 0}
|
||||
-
|
||||
oid: upsAlarm
|
||||
value: upsAlarmsPresent
|
||||
num_oid: '.1.3.6.1.2.1.33.1.6.1.{{ $index }}'
|
||||
descr: Number of Alarms
|
||||
index: 'upsAlarmsPresent.{{ $index }}'
|
||||
states:
|
||||
- { value: 0, descr: No Alarms, graph: 0, generic: 0}
|
||||
charge:
|
||||
data:
|
||||
-
|
||||
oid: upsBattery
|
||||
value: upsEstimatedChargeRemaining
|
||||
num_oid: '.1.3.6.1.2.1.33.1.2.4.{{ $index }}'
|
||||
descr: 'Estimated Charge Remaining'
|
||||
index: 'upsEstimatedChargeRemaining.{{ $index }}'
|
||||
voltage:
|
||||
data:
|
||||
-
|
||||
oid: upsInput
|
||||
value: upsInputVoltage
|
||||
num_oid: '.1.3.6.1.2.1.33.1.3.3.1.3.{{ $index }}'
|
||||
descr: 'Input Voltage'
|
||||
index: 'upsInputVoltage.{{ $index }}'
|
||||
-
|
||||
oid: upsBattery
|
||||
value: upsBatteryVoltage
|
||||
num_oid: '.1.3.6.1.2.1.33.1.2.5.{{ $index }}'
|
||||
descr: 'Battery Voltage'
|
||||
index: 'upsBatteryVoltage.{{ $index }}'
|
||||
divisor: 10
|
||||
-
|
||||
oid: upsOutput
|
||||
value: upsOutputVoltage
|
||||
num_oid: '.1.3.6.1.2.1.33.1.4.4.1.2.{{ $index }}'
|
||||
descr: 'Output Voltage'
|
||||
index: 'upsOutputVoltage.{{ $index }}'
|
||||
temperature:
|
||||
data:
|
||||
-
|
||||
oid: upsBattery
|
||||
value: upsBatteryTemperature
|
||||
num_oid: '.1.3.6.1.2.1.33.1.2.7.{{ $index }}'
|
||||
descr: 'Battery Temperature'
|
||||
index: 'upsBatteryTemperature.{{ $index }}'
|
||||
load:
|
||||
data:
|
||||
-
|
||||
oid: upsOutput
|
||||
value: upsOutputPercentLoad
|
||||
num_oid: '.1.3.6.1.2.1.33.1.4.4.1.5.{{ $index }}'
|
||||
descr: 'Load'
|
||||
index: 'upsOutputPercentLoad.{{ $index }}'
|
||||
runtime:
|
||||
data:
|
||||
-
|
||||
oid: upsBattery
|
||||
value: upsSecondsOnBattery
|
||||
num_oid: '.1.3.6.1.2.1.33.1.2.2.{{ $index }}'
|
||||
descr: 'Seconds on Battery'
|
||||
index: 'upsBattery.{{ $index }}'
|
||||
-
|
||||
oid: upsBattery
|
||||
value: upsEstimatedMinutesRemaining
|
||||
num_oid: '.1.3.6.1.2.1.33.1.2.3.{{ $index }}'
|
||||
descr: 'Estimated Minutes Remaining'
|
||||
index: 'upsEstimatedMinutesRemaining.{{ $index }}'
|
||||
frequency:
|
||||
data:
|
||||
-
|
||||
oid: upsInput
|
||||
value: upsInputFrequency
|
||||
num_oid: '.1.3.6.1.2.1.33.1.3.3.1.2.{{ $index }}'
|
||||
descr: 'Input Frequency'
|
||||
index: 'upsInputFrequency.{{ $index }}'
|
||||
divisor: 10
|
||||
-
|
||||
oid: upsOutput
|
||||
value: upsOutputFrequency
|
||||
num_oid: '.1.3.6.1.2.1.33.1.4.2.{{ $index }}'
|
||||
descr: 'Output Frequency'
|
||||
index: 'upsOutputFrequency.{{ $index }}'
|
||||
divisor: 10
|
9
includes/definitions/marathonups.yaml
Normal file
9
includes/definitions/marathonups.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
os: marathonups
|
||||
text: 'MarathonUPS'
|
||||
type: power
|
||||
icon: marathon
|
||||
over:
|
||||
- { graph: device_load, text: Load }
|
||||
- { graph: device_voltage, text: Voltage }
|
||||
discovery:
|
||||
- sysObjectID: .1.3.6.1.4.1.2021.1.1.1
|
5
includes/polling/os/marathonups.inc.php
Normal file
5
includes/polling/os/marathonups.inc.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
$data = snmp_get_multi($device, 'upsIdentModel.0 upsIdentUPSSoftwareVersion.0 upsIdentName.0', '-OQU', 'UPS-MIB');
|
||||
$hardware = $data[0]['UPS-MIB::upsIdentModel'];
|
||||
$version = $data[0]['UPS-MIB::upsIdentUPSSoftwareVersion'];
|
Reference in New Issue
Block a user