Skip to main content

Dell PowerStore Rest API

Pack Assets​

Monitored Objects​

The Pack Dell PowerStore collects metrics for:

  • Alerts
  • Hardware

Collected Metrics​

Metric nameDescriptionUnit
alerts.severity.none.countNumber of alerts with none severity
alerts.severity.info.countNumber of alerts with information severity
alerts.severity.minor.countNumber of alerts with minor severity
alerts.severity.major.countNumber of alerts with major severity
alerts.severity.critical.countNumber of alerts with critical severity

Prerequisites​

To control your Dell PowerStore, the Rest API must be configured. E.g: https://downloads.dell.com/manuals/common/pwrstr-apig_en-us.pdf

Setup​

  1. Install the Centreon Plugin on every Poller:
yum install centreon-plugin-Hardware-Storage-Dell-Powerstore-Restapi
  1. On the Centreon Web interface in Configuration > Plugin packs > Manager, install the Dell PowerStore Rest API Pack

Host configuration​

  • Add a new Host and apply the HW-Storage-Dell-Powerstore-Restapi-custom Host Template

Once the template applied, some Macros have to be configured:

MandatoryNameDescription
XAPIPORTPort used (Default: 443)
XAPIPROTOSpecify https if needed (Default: 'https')
XAPIUSERNAMEApi username
XAPIPASSWORDApi password
APIEXTRAOPTIONSAny extra option you may want to add to the command (eg. a --verbose flag)

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 (Parameters such as api-username or api-passwordhave to be adjusted):

/usr/lib/centreon/plugins/centreon_dell_powerstore_restapi.pl \
--plugin=storage::dell::powerstore::restapi::plugin \
--mode=alerts \
--hostname='10.30.2.79' \
--port='443' \
--proto='https' \
--api-username='myapiusername' \
--api-password='myapipassword' \
--verbose

Expected command output is shown below:

CRITICAL: 1 alerts detected | 'alerts.severity.none.count'=0;;;0; 'alerts.severity.info.count'=1;;;0; 'alerts.severity.minor.count'=0;;;0; 'alerts.severity.major.count'=1;;;0; 'alerts.severity.critical.count'=0;;;0; 'alerts.problems.current.count'=1;;;0;
critical: alert [severity: major] [name: XMS_JBOD_CONTROLLER_SAS1_HEALTH_LEVEL_LEVEL_1_CLEAR] [resource: ] 2021-09-08T08:13:14.804936+00:00

The command above monitors alerts (--mode=alerts).

It uses api-username (--api-username='myapiusername'), an api-password (--api-password='myapipassword') and it connects to the host 10.30.2.79 (--hostname='10.30.2.79') on the port 443 (--port='443') using https (--proto='https').

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_dell_powerstore_restapi.pl \
--plugin=storage::dell::powerstore::restapi::plugin \
--mode=alerts \
--help

Troubleshooting​

Troubleshooting plugins