Generic UPS
Description
This connector enables hardware monitoring for MIB-2 Standard UPS through an SNMP interface.
Superseded Connector
This connector is superseded by:
Target
Typical platform: SNMP
Operating system: Out-Of-Band
This connector is not available for the local host (it is applicable to remote hosts only).
Prerequisites
Leverages: N/A
Technology and protocols: SNMP
Examples
CLI
metricshub HOSTNAME -t oob -c +GenericUPS --snmp v2c --community public
metricshub.yaml
resourceGroups:
<RESOURCE_GROUP>:
resources:
<HOSTNAME-ID>:
attributes:
host.name: <HOSTNAME> # Change with actual host name
host.type: oob
connectors: [ +GenericUPS ] # Optional, to load only this connector
protocols:
snmp:
version: v2c # Read documentation for v1, v2c and v3
community: public # or probably something more secure
Connector Activation Criteria
The Generic UPS connector will be automatically activated, and its status will be reported as OK if all the below criteria are met:
- An SNMP GetNext on the OID
1.3.6.1.2.1.33must return a non-empty value
Metrics
| Type | Collected Metrics | Specific Attributes |
|---|---|---|
| battery | hw.battery.chargehw.battery.time_lefthw.status{hw.type="battery", state="degraded|failed|ok"}hw.status{hw.type="battery", state="present"} | hw.parent.typeidnametype |
| enclosure | hw.enclosure.energyhw.enclosure.powerhw.status{hw.type="enclosure", state="degraded|failed|ok"}hw.status{hw.type="enclosure", state="present"} | idinfomodelnametypevendor |
| temperature | hw.status{hw.type="temperature", state="present"}hw.temperaturehw.temperature.limit{limit_type="high.critical"}hw.temperature.limit{limit_type="high.degraded"} | hw.parent.typeidnamesensor_location |
| voltage | hw.status{hw.type="voltage", state="present"}hw.voltagehw.voltage.limit{limit_type="high.critical"}hw.voltage.limit{limit_type="low.critical"} | hw.parent.typeidnamesensor_location |