Skip to main content

Pure Storage FlashBlade v2 Rest API

Pack Assets​

Templates​

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

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

It brings the following service templates:

Service AliasService TemplateService DescriptionDefaultDiscovery
AlertsHW-Storage-Purestorage-Flashblade-V2-Alerts-RestapiCheck alertsX
ArraysHW-Storage-Purestorage-Flashblade-V2-Arrays-RestapiCheck arraysX
FilesystemsHW-Storage-Purestorage-Flashblade-V2-Filesystems-RestapiCheck filesystemsX
HardwareHW-Storage-Purestorage-Flashblade-V2-Hardware-RestapiCheck hardware stateX

Discovery rules​

Rule NameDescription
HW-Storage-Purestorage-Flashblade-V2-Restapi-Array-NameDiscover arrays and monitor space occupation
HW-Storage-Purestorage-Flashblade-V2-Restapi-Filesystem-NameDiscover filesystems 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 Name sUnit
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 > Monitoring Connector 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-flashblade-v2-restapi

Whatever the license type (online or offline), install the Pure Storage FlashBlade Rest API v2 Pack through the Configuration > Monitoring Connector 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-Flashblade-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 FlashBlade server settings.
  • Apply the HW-Storage-Purestorage-Flashblade-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_flashblade_v2_restapi.pl \
--plugin=storage::purestorage::flashblade::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 'objectstor301' space usage total: 59.73 TB used: 138.42 GB (0.23%) free: 59.60 TB (99.77%) - data reduction: 1.023 - read: 0.00 B/s, write: 73.16 KB/s | 'objectstor301#array.space.usage.bytes'=148629707720B;;;0;65677494565820 'objectstor301#array.space.free.bytes'=65528864858100B;;;0;65677494565820 'objectstor301#array.space.usage.percentage'=0.23%;;;0;100 'objectstor301#array.data.reduction.count'=1.023;;;0; 'objectstor301~5m#array.io.read.usage.bytespersecond'=0B/s;;;0; 'objectstor301~5m#array.io.write.usage.bytespersecond'=74913.1533333333B/s;;;0;
checking array 'objectstor301'
space usage total: 59.73 TB used: 138.42 GB (0.23%) free: 59.60 TB (99.77%)
data reduction: 1.023
read: 0.00 B/s, write: 73.16 KB/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_flashblade_v2_restapi.pl \
--plugin=storage::purestorage::flashblade::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_flashblade_v2_restapi.pl \
--plugin=storage::purestorage::flashblade::v2::restapi::plugin \
--list-mode

Troubleshooting​

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