UPS Monitoring
NetXMS can monitor Uninterruptible Power Supplies (UPS) through the UPS subagent (ups.nsm) or via SNMP.
This covers monitoring battery status, input/output power, load, and remaining runtime.
Monitoring Methods
UPS Subagent Configuration
Connection Configuration
[UPS]
Device = 0:/dev/ttyS0:APC:MainUPS
Device = 1:/dev/ttyUSB0:MEGATEC:"Server Room UPS"
Device entry format: id:port:protocol[:name]
| Component | Description |
|---|---|
|
Numeric identifier 0-127 (used as the metric argument) |
|
Communication port path. For serial: |
|
UPS protocol type (case-insensitive, see table below) |
|
Optional descriptive name. Defaults to |
Examples:
[UPS]
Device = 0:/dev/ttyS0:APC
Device = 1:/dev/ttyS1:BCMXCP:"Eaton UPS"
Device = 2:ANY:USB
Device = 3:ANY:MEC0003
Device = 4:186144F5:MEC0003
Supported UPS Protocols
| Protocol | Description |
|---|---|
|
APC Smart-UPS via serial cable (940-0024C or similar). Supports all metrics. |
|
Eaton (formerly Best Power/Powerware) BCMXCP-compatible UPS. Does not support MfgDate or NominalBatteryVoltage. |
|
UPS devices using the Megatec Q1 protocol (many brands) |
|
Meta System UPS devices. Does not support MfgDate, BatteryLevel, NominalBatteryVoltage, LineFrequency, or EstimatedRuntime. |
|
Microdowell UPS devices. Supports all metrics. |
|
UPS connected via USB HID (Windows only). Supported metrics: model, serial number, battery voltage, nominal battery voltage, battery level, power load, estimated runtime, online status. |
|
MEC0003 protocol for off-brand USB UPS devices (VID 0x0001/PID 0x0000, Windows only) |
UPS Metrics
The UPS subagent provides the following parameters (replace 0 with your numeric device ID):
Battery Status
| Parameter | Description |
|---|---|
|
Battery charge level (percentage) |
|
Battery voltage (V) |
|
Nominal battery voltage (V) |
|
Estimated on-battery runtime (minutes) |
|
Online status: 0 = online (AC power), 1 = on battery, 2 = on battery (low) |
Input/Output Power
| Parameter | Description |
|---|---|
|
Input AC voltage (V) |
|
Input line frequency (Hz) |
|
Output AC voltage (V) |
|
Output load (percentage of capacity) |
Device Information
| Parameter | Description |
|---|---|
|
UPS model identification |
|
UPS serial number |
|
UPS firmware version |
|
Manufacturing date |
|
Internal UPS temperature (°C) |
|
Subagent connection to device: 1 = connected, 0 = disconnected |
SNMP-Based UPS Monitoring
Network-managed UPS devices use the UPS-MIB (RFC 1628) or vendor-specific MIBs.
Standard UPS-MIB OIDs
| OID | Description |
|---|---|
|
Estimated battery minutes remaining |
|
Battery charge percentage |
|
Battery voltage (0.1V units) |
|
Input voltage (RMS) |
|
Input frequency (0.1 Hz) |
|
Output voltage (RMS) |
|
Output current (0.1A) |
|
Output load percentage |
APC-Specific SNMP OIDs (PowerNet-MIB)
APC UPS devices with network management cards expose additional metrics:
| OID | Description |
|---|---|
|
Battery capacity percentage |
|
Runtime remaining (in ticks) |
|
Battery temperature |
|
Input line voltage |
|
Output load percentage |
|
Battery replacement needed (1=no, 2=yes) |
Recommended Thresholds
| Metric | Warning | Critical |
|---|---|---|
Battery level |
<50% |
<20% |
Estimated runtime |
<30 minutes |
<10 minutes |
Output load |
>70% |
>90% |
Battery temperature |
>35°C |
>45°C |
Input voltage |
<200V or >250V |
<190V or >260V (for 230V nominal) |
Event-Based Monitoring
Configure alerts for critical UPS state changes:
-
Power failure (switched to battery)
-
Power restored (back to online)
-
Low battery warning
-
Battery replacement needed
-
UPS overload condition
The UPS subagent does not generate events itself (it only logs connection state changes), so detect these conditions with DCI thresholds:
-
UPS.OnlineStatus— activates on value 1 (on battery) or 2 (on battery, low); return to 0 indicates power restored -
UPS.BatteryLevel— activates on low battery charge percentage -
UPS.Load— activates on overload condition
For network-managed UPS devices monitored via SNMP, SNMP traps can additionally signal state changes. See Thresholds and SNMP Traps for configuration.