Skip to main content

Phoenixtec UPS SNMP

Pack Assets​

Monitored Objects​

The Pack Phoenixtec collects metrics for:

  • Battery status
  • Input lines
  • Output lines

Collected Metrics​

Metric nameDescriptionUnit
statusBattery status
battery.charge.remaining.percentBattery capacity in percentage%
battery.charge.remaining.minutesBattery capacity in minutesmin
battery.voltage.voltBattery voltageV
battery.temperature.celsiusBattery temperatureC

Prerequisites​

To monitor your Phoenixtec UPS, the SNMP must be configured. The Poller should be able to perform SNMP requests toward the Phoenixtec device over SNMP UDP/161 port.

Setup​

  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Hardware-Ups-Phoenixtec-Snmp
  1. On the Centreon Web interface in Configuration > Plugin packs > Manager, install the Phoenixtec UPS SNMP Pack

Host configuration​

  • Add a new Host and fill the IP Address/FQDN, SNMP Version and SNMP Community fields according to the device's configuration
  • Apply the HW-Ups-Phoenixtec-SNMP-custom Host Template

When using SNMP v3, use the SNMPEXTRAOPTIONS Macro to add specific authentication parameters

MandatoryNameDescription
SNMPEXTRAOPTIONSConfigure your own SNMPv3 credentials combo

How to test the Plugin and what are the main options for?​

Once the plugin installed, log into your Centreon Poller CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins/centreon_ups_phoenixtec_snmp.pl \
--plugin=hardware::ups::phoenixtec::snmp::plugin \
--mode=battery-status \
--hostname=10.30.2.114 \
--snmp-version='2c' \
--snmp-community='phoenixtec_ro' \
--warning-charge-remaining='50:' \
--critical-charge-remaining='20:' \
--verbose

Expected command output is shown below:

OK: battery status is 'normal', remaining capacity: 100 % | 'battery.charge.remaining.percent'=100%;50:;20:;0;100 'battery.voltage.volt'=2.2V;;;; 'battery.temperature.celsius'=31.5C;;;;

The command above monitors the battery of a Phoenixtec UPS (--plugin=hardware::ups::phoenixtec::snmp::plugin --mode=battery-status) identified by the IP address 10.30.2.114 (--hostname=10.30.2.114). As the Plugin is using the SNMP protocol to request the device, the related community and version are specified (--snmp-version='2c' --snmp-community='phoenixtec_ro').

This command would trigger a WARNING alarm if battery charge remaining above 50% (--warning-charge-remaining='50:') and a CRITICAL alarm above 20% (--critical-charge-remaining='20:').

All the options as well as all the available thresholds can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_ups_phoenixtec_snmp.pl \
--plugin=hardware::ups::phoenixtec::snmp::plugin \
--mode=battery-status \
--help

Troubleshooting​

Troubleshooting plugins