Skip to main content

Pure Storage FlashArray v2 Rest API

Pack Assets​

Templates​

The Centreon Pack Pure Storage FlashArray Rest API v2 brings a host template:

  • HW-Storage-Purestorage-Flasharray-V2-Restapi-custom

It brings the following service templates:

Service AliasService TemplateService DescriptionDefaultDiscovery
AlertsHW-Storage-Purestorage-Flasharray-V2-Alerts-RestapiCheck alertsX
ArraysHW-Storage-Purestorage-Flasharray-V2-Arrays-RestapiCheck arraysX
HardwareHW-Storage-Purestorage-Flasharray-V2-Hardware-RestapiCheck hardware stateX
VolumesHW-Storage-Purestorage-Flasharray-V2-Volumes-RestapiCheck volumesX

Discovery rules​

Rule NameDescription
HW-Storage-Purestorage-Flasharray-V2-Restapi-Array-NameDiscover the arrays and monitor space occupation
HW-Storage-Purestorage-Flasharray-V2-Restapi-Volume-NameDiscover the volumes and monitor space occupation

More information about discovering services automatically is available on the dedicated page and in the following chapter.

Collected metrics & status​

Metric NameUnit
alerts.detected.count
alert status

Prerequisites​

A service account has to be created on the device. This account must have at least a "read only" access to the storage array.

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:

dnf install centreon-pack-hardware-storage-purestorage-flasharray-v2-restapi

Whatever the license type (online or offline), install the Pure Storage FlashArray Rest API v2 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:

dnf install centreon-plugin-Hardware-Storage-Purestorage-Flasharray-V2-Restapi

Configuration​

Host​

  • Log into Centreon and add a new host through Configuration > Hosts.
  • Fill the Name, Alias & IP Address/DNS fields according to your Pure Storage FlashArray server settings.
  • Apply the HW-Storage-Purestorage-Flasharray-V2-Restapi-custom template to the host.
  • Once the template is applied, fill in the corresponding macros. Some macros are mandatory.
MandatoryMacroDescription
APIEXTRAOPTIONS--insecure
APIPORT
APIPROTO
XAPITOKEN
APIVERSION(Default: '2.4')

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_purestorage_flasharray_v2_restapi.pl \
--plugin=storage::purestorage::flasharray::v2::restapi::plugin \
--mode=arrays \
--hostname='10.0.0.1' \
--api-version='2.4' \
--api-token='mytoken' \
--insecure \
--verbose

The expected command output is shown below:

OK: Array 'filer06-c' space usage total: 26.52 TB used: 16.15 TB (60.91%) free: 10.37 TB (39.09%) - data reduction: 3.808 - read: 732.13 MB/s, write: 0.00 B/s | 'filer06-c#array.space.usage.bytes'=17760870565810B;;;0;29159353378407 'filer06-c#array.space.free.bytes'=11398482812597B;;;0;29159353378407 'filer06-c#array.space.usage.percentage'=60.91%;;;0;100 'filer06-c#array.data.reduction.count'=3.808;;;0; 'filer06-c~5m#array.io.read.usage.bytespersecond'=767691223B/s;;;0; 'filer06-c~5m#array.io.write.usage.bytespersecond'=0B/s;;;0;
checking array 'filer06-c'
space usage total: 26.52 TB used: 16.15 TB (60.91%) free: 10.37 TB (39.09%)
data reduction: 3.808
read: 732.13 MB/s, write: 0.00 B/s

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins/centreon_purestorage_flasharray_v2_restapi.pl \
--plugin=storage::purestorage::flasharray::v2::restapi::plugin \
--mode=arrays \
--help

All available modes can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins/centreon_purestorage_flasharray_v2_restapi.pl \
--plugin=storage::purestorage::flasharray::v2::restapi::plugin \
--list-mode

Troubleshooting​

Please find the troubleshooting documentation for the API-based plugins in this chapter.