mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Require it explicitly. Makes it easier to understand and matches the style of other values Questionable YAML changes (either broken before or now broken): secureplatform: haStatCode ptp600: receiveModulationMode DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
128 lines
5.8 KiB
YAML
128 lines
5.8 KiB
YAML
mib: UPS-MIB:XPPC-MIB
|
|
modules:
|
|
sensors:
|
|
charge:
|
|
data:
|
|
-
|
|
oid: upsSmartBatteryCapacity
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.2.2.1.{{ $index }}'
|
|
index: 'upsSmartBatteryCapacity.{{ $index }'
|
|
descr: Battery charge remaining
|
|
temperature:
|
|
data:
|
|
-
|
|
oid: upsSmartBatteryTemperature
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.2.2.3.{{ $index }}'
|
|
index: 'upsSmartBatteryTemperature.{{ $index }}'
|
|
descr: Battery
|
|
divisor: 10
|
|
-
|
|
oid: upsEnvTemperature
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.9.1.1.{{ $index }}'
|
|
index: 'upsEnvTemperature.{{ $index }}'
|
|
descr: Environment
|
|
humidity:
|
|
data:
|
|
-
|
|
oid: upsEnvHumidity
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.9.1.2.{{ $index }}'
|
|
index: 'upsEnvHumidity.{{ $index }}'
|
|
descr: Environment
|
|
voltage:
|
|
data:
|
|
-
|
|
oid: upsSmartBatteryVoltage
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.2.2.2.{{ $index }}'
|
|
index: 'upsSmartBatteryVoltage.{{ $index }}'
|
|
descr: Battery Voltage
|
|
divisor: 10
|
|
-
|
|
oid: upsSmartInputLineVoltage
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.3.2.1.{{ $index }}'
|
|
index: 'upsSmartInputLineVoltage.{{ $index }}'
|
|
descr: Input Voltage
|
|
divisor: 10
|
|
-
|
|
oid: upsSmartOutputVoltage
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.4.2.1.{{ $index }}'
|
|
index: 'upsSmartOutputVoltage.{{ $index }}'
|
|
descr: Output Voltage
|
|
divisor: 10
|
|
load:
|
|
data:
|
|
-
|
|
oid: upsSmartOutputLoad
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.4.2.3.{{ $index }}'
|
|
index: 'upsSmartOutputLoad.{{ $index }}'
|
|
descr: 'Output Load'
|
|
runtime:
|
|
data:
|
|
-
|
|
oid: upsSecondsOnBattery
|
|
num_oid: '.1.3.6.1.2.1.33.1.2.2.{{ $index }}'
|
|
index: 'upsSecondsOnBattery.{{ $index }}'
|
|
descr: 'Time running on battery'
|
|
divisor: 60
|
|
current:
|
|
data:
|
|
-
|
|
oid: upsSmartBatteryCurrent
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.2.2.7.{{ $index }}'
|
|
index: 'upsSmartBatteryCurrent.{{ $index }}'
|
|
descr: Battery Current
|
|
state:
|
|
data:
|
|
-
|
|
oid: upsBaseBatteryStatus
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.2.1.1.{{ $index }}'
|
|
descr: Battery Status
|
|
index: 'upsBaseBatteryStatus.{{ $index }}'
|
|
state_name: upsBaseBatteryStatus
|
|
states:
|
|
- { descr: unknown, graph: 0, value: 1, generic: 3 }
|
|
- { descr: BatteryNormal, graph: 0, value: 2, generic: 0 }
|
|
- { descr: BatteryLow, graph: 0, value: 3, generic: 1 }
|
|
-
|
|
oid: upsSmartBatteryReplaceIndicator
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.2.2.5.{{ $index }}'
|
|
descr: Battery Replace Status
|
|
index: 'upsSmartBatteryReplaceIndicator.{{ $index }}'
|
|
state_name: upsSmartBatteryReplaceIndicator
|
|
states:
|
|
- { descr: noBatteryNeedsReplacing, graph: 0, value: 1, generic: 0 }
|
|
- { descr: batteryNeedsReplacing, graph: 0, value: 2, generic: 2 }
|
|
-
|
|
oid: upsBaseOutputStatus
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.4.1.1.{{ $index }}'
|
|
descr: Output Status
|
|
index: 'upsBaseOutputStatus.{{ $index }}'
|
|
state_name: upsBaseOutputStatus
|
|
states:
|
|
- { descr: unknown, graph: 0, value: 1, generic: 3 }
|
|
- { descr: onLine, graph: 0, value: 2, generic: 0 }
|
|
- { descr: onBattery, graph: 0, value: 3, generic: 1 }
|
|
- { descr: onBoost, graph: 0, value: 4, generic: 1 }
|
|
- { descr: sleeping, graph: 0, value: 5, generic: 1 }
|
|
- { descr: onBypass, graph: 0, value: 6, generic: 3 }
|
|
- { descr: rebooting, graph: 0, value: 7, generic: 3 }
|
|
- { descr: standBy, graph: 0, value: 8, generic: 1 }
|
|
- { descr: onBuck, graph: 0, value: 9, generic: 1 }
|
|
-
|
|
oid: upsEnvWater
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.9.1.3.{{ $index }}'
|
|
descr: Water Status
|
|
index: 'upsEnvWater.{{ $index }}'
|
|
state_name: upsEnvWater
|
|
states:
|
|
- { descr: normal, graph: 0, value: 1, generic: 0 }
|
|
- { descr: abnormal, graph: 0, value: 2, generic: 1 }
|
|
-
|
|
oid: upsEnvSmoke
|
|
num_oid: '.1.3.6.1.4.1.935.1.1.1.9.1.4.{{ $index }}'
|
|
descr: Smoke Status
|
|
index: 'upsEnvSmoke.{{ $index }}'
|
|
state_name: upsEnvSmoke
|
|
states:
|
|
- { descr: normal, graph: 0, value: 1, generic: 0 }
|
|
- { descr: abnormal, graph: 0, value: 2, generic: 1 }
|