UPS Standard SNMP
Pack Assetsβ
Templatesβ
The Centreon Pack UPS Standard brings a host template:
- HW-UPS-Standard-Rfc1628-SNMP-custom
It brings the following service templates:
Service Alias | Service Template | Service Description | Default |
---|---|---|---|
Alarms | HW-UPS-Standard-Rfc1628-Alarms-SNMP | Check if alarms are present | X |
Battery-Status | HW-UPS-Standard-Rfc1628-Battery-Status-SNMP | Check battery status and battery charge remaining | X |
Input-Lines | HW-UPS-Standard-Rfc1628-Input-Lines-SNMP | Check input lines metrics | X |
Output-Lines | HW-UPS-Standard-Rfc1628-Output-Lines-SNMP | Check output lines metrics | X |
Output-Source | HW-UPS-Standard-Rfc1628-Output-Source-SNMP | Check output source status | X |
Collected metrics & statusβ
- Alarms
- Battery-Status
- Input-Lines
- Output-Lines
- Output-Source
Metric Name | Unit |
---|---|
alarms.current.count | count |
Metric Name | Unit |
---|---|
battery status | |
battery.charge.remaining.percent | % |
battery.charge.remaining.minutes | |
battery.current.ampere | A |
battery.temperature.celsius | C |
battery.voltage.volt | V |
Metric Name | Unit |
---|---|
line_id#line.input.current.ampere | A |
line_id#line.input.frequence.hertz | Hz |
line_id#line.input.power.watt | W |
line_id#line.input.voltage.volt | V |
Metric Name | Unit |
---|---|
line_id#line.output.current.ampere | A |
line_id#line.output.load.percentage | % |
line_id#line.output.power.watt | W |
line_id#line.output.voltage.volt | V |
Metric Name | Unit |
---|---|
output source status |
Prerequisitesβ
SNMP Configurationβ
To use this pack, the SNMP service must be properly configured on your UPS Standard equipment.
Network flowβ
The target server must be reachable from the Centreon poller on the UDP/161 SNMP port.
Setupβ
Monitoring Packβ
If the platform uses an online license, you can skip the package installation instruction below as it is not required to have the pack displayed within the Configuration > Plugin Packs > Manager menu. If the platform uses an offline license, install the package on the central server with the command corresponding to the operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- CentOS 7
- Debian 11
dnf install centreon-pack-hardware-ups-standard-rfc1628-snmp
yum install centreon-pack-hardware-ups-standard-rfc1628-snmp
apt install centreon-pack-hardware-ups-standard-rfc1628-snmp
Whatever the license type (online or offline), install the UPS Standard Pack through the Configuration > Plugin Packs > Manager menu.
Pluginβ
Since Centreon 22.04, you can benefit from the 'Automatic plugin installation' feature. When this feature is enabled, you can skip the installation part below.
You still have to manually install the plugin on the poller(s) when:
- Automatic plugin installation is turned off
- You want to run a discovery job from a poller that doesn't monitor any resource of this kind yet
More information in the Installing the plugin section.
Use the commands below according to your operating system's package manager:
- Alma / RHEL / Oracle Linux 8
- CentOS 7
- Debian 11
dnf install centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp
yum install centreon-plugin-Hardware-Ups-Standard-Rfc1628-Snmp
apt install centreon-plugin-hardware-ups-standard-rfc1628-snmp
Configurationβ
Hostβ
- Log into Centreon and add a new host through Configuration > Hosts.
- Fill the Name, Alias & IP Address/DNS fields according to your UPS Standard server settings.
- Apply the HW-UPS-Standard-Rfc1628-SNMP-custom template to the host.
When using SNMP v3, use the SNMPEXTRAOPTIONS Macro to add specific authentication parameters. More information in the Troubleshooting SNMP section.
Mandatory | Macro | Description |
---|---|---|
SNMPEXTRAOPTIONS | Configure your own SNMPv3 credentials combo |
How to check in the CLI that the configuration is OK and what are the main options for?β
Once the plugin is installed, log into your Centreon poller's CLI using the
centreon-engine user account (su - centreon-engine
) and test the plugin by
running the following command:
/usr/lib/centreon/plugins/centreon_ups_standard_rfc1628_snmp.pl \
--plugin=hardware::ups::standard::rfc1628::snmp::plugin \
--mode=battery-status \
--hostname=10.0.0.1 \
--snmp-version='2c' \
--snmp-community='my-snmp-community'
The expected command output is shown below:
OK: battery status is normal - charge remaining: 100% (135 minutes remaining) | 'battery.charge.remaining.percent'=100%;;;0;100 'battery.charge.remaining.minutes'=135minutes;;;0; 'battery.current.ampere'=-0.1A;;;0; 'battery.voltage.volt'=122.5V;;;; 'battery.temperature.celsius'=37C;;;;
All available options for a given mode can be displayed by adding the
--help
parameter to the command:
/usr/lib/centreon/plugins/centreon_ups_standard_rfc1628_snmp.pl \
--plugin=hardware::ups::standard::rfc1628::snmp::plugin \
--mode=battery-status \
--help
All available modes can be displayed by adding the --list-mode
parameter to
the command:
/usr/lib/centreon/plugins/centreon_ups_standard_rfc1628_snmp.pl \
--plugin=hardware::ups::standard::rfc1628::snmp::plugin \
--list-mode
Troubleshootingβ
Please find the troubleshooting documentation for Centreon Plugins typical issues.