Skip to main content

Pure Storage RestAPI


Pure Storage develops flash-based storage for data centers using consumer-grade solid state drives. It provides proprietary de-duplication and compression software to improve the amount of data that can be stored on each drive.

Plugin-Pack assets​

Monitored objects​

  • Storage array

Monitored metrics​

More information is available in the Pure Storage official API documentation :

Metric nameDescription
StatusStatus of alarms. Threshold/Unit: String



  1. Install the Plugin on every poller expected to monitor Pure Storage arrays:
yum install centreon-plugin-Hardware-Storage-Purestorage-Restapi
  1. Install the "Pure-Storage-Restapi" Centreon Plugin-Pack from the "Configuration > Plugin Packs > Manager" page

Host Configuration​

Apply the "HW-Storage-Purestorage-Restapi-custom" template to your newly created host. Then fill the macros value fields marked as mandatory below:

APIEXTRAOPTIONSPure Storage API Extra options


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

Once the Centreon Plugin installed, you can test it directly on the Centreon poller by logging into the CLI with the centreon-engine user and run the command hereafter:

/usr/lib/centreon/plugins// \
--plugin=storage::purestorage::restapi::plugin \
--mode=volume-usage \
--hostname= \
--api-path='/api/1.11' \
--username='centreon' \
--password='centreon' \
--filter-name='.*' \
--units='%' \
--warning-usage='80' \
--critical-usage='90' \
--warning-data-reduction='' \
--critical-data-reduction='' \
--warning-total-reduction=':5' \
--critical-total-reduction=':4' \

If everything's fine, it should output something similar to:

OK: Volume 'PROD::CENTREON' Usage Total: 6.00 TB Used: 1.13 TB (18.85%) Free: 4.87 TB (81.15%), Data Reduction : 2.917, Total Reduction : 5.193, Snapshots : 0.00 B | 

This command checks the volumes usage (--mode=volume-usage) of a Pure Storage array device using the 1.11 API endpoint (--api-path='/api/1.11'). The device's IP address is (--hostname= and the credentials used to authenticate against the API endpoint are centreon/centreon (--username='centreon' --password='centreon'). The above command would return all of the device's volumes as the name filter will match any result (--filter-name='.*').

This command will trigger a WARNING alarm if the volume usage exceeds 80% (--warning-usage='80') and a CRITICAL alarm if it exceeds 90% (--critical-usage='90').

It is besides possible to define WARNING and CRITICAL thresholds on a specific metric: in this example a WARNING alarm will be triggered if the total rate of "reduction" is less than 5 (--warning-total-reduction=':5') and CRITICAL if it is less than 4 (--critical-total-reduction=':4').

The syntax of the different options of the thresholds as well as the list of options and their usage are detailed in the help of the mode by adding the parameter --help to the command:

/usr/lib/centreon/plugins/ \
--plugin=storage::purestorage::restapi::plugin \
--mode=volume-usage \

"UNKNOWN: Cannot decode json response"​

If you receive this message, set the --debug option flag to get more information about the error.

Most common reasons for this message are:

  • A Firewall drops the HTTPS flows between the Poller and the Pure Storage device.

  • The Pure Storage device uses a self-signed certificate. Add the option --ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE" in the Host EXTRAOPTIONS macro to prevent this error.