Skip to main content

Huawei OceanStor SNMP

Plugin Pack Assets​

Monitored Objects​

The Plugin Pack Huawei OceanStor SNMP collects metrics for:

  • Controllers
  • Hardware
  • Storage pools

Discovery rules​

Rule nameDescription
HW-Storage-Huawei-Oceanstor-SNMP-Controller-IdDiscover controllers and monitor cpu and memory usage
HW-Storage-Huawei-Oceanstor-SNMP-Storage-Pool-NameDiscover storage pools and monitor space usage

Collected Metrics​

Metric nameDescriptionUnit
statusStatus of the controller
controller_id#controller.cpu.utilization.percentageCPU utilization%
controller_id#controller.memory.usage.percentageMemory usage%

Prerequisites​

To control your Huawei OceanStor, the SNMP must be configured.

Setup​

  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Hardware-Storage-Huawei-Oceanstor-Snmp
  1. On the Centreon Web interface in "Configuration > Plugin Packs > Manager", install the Huawei OceanStor SNMP Plugin-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-Storage-Huawei-Oceanstor-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_huawei_oceanstor_snmp.pl \
--plugin=storage::huawei::oceanstor::snmp::plugin \
--mode=controllers \
--hostname=10.30.2.114 \
--snmp-version='2c' \
--snmp-community='huawei_ro' \
--warning-cpu-utilization=90 \
--warning-cpu-utilization=95 \
--verbose

Expected command output is shown below:

OK: All controllers are ok | '0A#controller.cpu.utilization.percentage'=6.00%;0:95;;0;100 '0A#controller.memory.usage.percentage'=76.00%;;;0;100 '0B#controller.cpu.utilization.percentage'=8.00%;0:95;;0;100 '0B#controller.memory.usage.percentage'=75.00%;;;0;100
checking controller '0A'
health status: Normal [running status: Online]
cpu usage: 6.00 %
memory used: 76.00 %
checking controller '0B'
health status: Normal [running status: Online]
cpu usage: 8.00 %
memory used: 75.00 %

The command above monitors Huawei OceanStor (--plugin=storage::huawei::oceanstor::snmp::plugin --mode=controllers) 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='huawei_ro').

This command would trigger a WARNING alarm if cpu utilization over 90% (--warning-cpu-utilization='90') and a CRITICAL alarm over 95% (--critical-cpu-utilization='95').

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_huawei_oceanstor_snmp.pl \
--plugin=storage::huawei::oceanstor::snmp::plugin \
--mode=controllers \
--help

Troubleshooting​

UNKNOWN: SNMP GET Request : Timeout​

If you get this message, you're probably facing one of theses issues:

  • The SNMP agent of the device isn't started or is misconfigured
  • An external device is blocking the request (firewall, ...)

UNKNOWN: SNMP GET Request : Cant get a single value.​

This error message often refers to the following issues:

  • The agent doesn't support the MIB used by the plugin
  • The targeted SNMP OID cannot be fetched because of insufficient privileges on the device. SNMP Agent must be capable of accessing to the enterprise branch: .1.3.6.1.4.1.34774.4