Skip to main content

HPE Simplivity Rest API

Pack Assets​

Templates​

The Centreon Pack HPE Simplivity Rest API brings 1 host template:

  • Virt-Hpe-Simplivity-Restapi-custom

It brings the following Service Templates:

Service AliasService TemplateDefaultDiscovery
HostsVirt-Hpe-Simplivity-Hosts-RestapiXX
Omnistack-ClustersVirt-Hpe-Simplivity-Omnistack-Clusters-RestapiX
Virtual-MachinesVirt-Hpe-Simplivity-Virtual-Machines-Restapi

Discovery rules​

Rule nameDescription
Virt-Hpe-Simplivity-Restapi-Host-NameDiscover hosts and monitor status

Collected metrics & status​

Metric nameDescriptionUnit
hosts.alive.countNumber of hosts with status alive
hosts.faulty.countNumber of hosts with status faulty
hosts.managed.countNumber of hosts with status managed
hosts.removed.countNumber of hosts with status removed
hosts.suspected.countNumber of hosts with status suspected
hosts.unknown.countNumber of hosts with status unknown
host_name#host.components.green.countNumber of components with status green per host
host_name#host.components.yellow.countNumber of components with status yellow per host
host_name#host.components.red.countNumber of components with status red per host
host_name#host.components.unknown.countNumber of components with status unknown per host
raid statusCurrent status of the raid card per host
logical drive statusCurrent status of each logical drives per host
physical drive statusCurrent status of each physical drives per host

Prerequisites​

To control your HPE Simplivity, the Rest API must be configured:

Setup​

  1. Install the Centreon package on every Centreon poller expected to monitor HPE Simplivity Rest API resources:
yum install centreon-plugin-Virtualization-Hpe-Simplivity-Restapi
  1. On the Centreon Web interface, install the HPE Simplivity Rest API Centreon Pack on the Configuration > Monitoring Connector Manager page.

Configuration​

Host​

  • Log into Centreon and add a new Host through Configuration > Hosts
  • Fill the Name, Alias & IP Address / DNS fields according to your HPE Simplivity Rest API server settings
  • Select the Virt-Hpe-Simplivity-Restapi-custom template to apply to the Host

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

MandatoryNameDescription
XOMNISTACKAPIPORTPort used (Default: 443)
XOMNISTACKAPIPROTOSpecify https if needed (Default: 'https')
XOMNISTACKAPIUSERNAMEApi username
XOMNISTACKAPIPASSWORDApi password
OMNISTACKEXTRAOPTIONSAny extra option you may want to add to the command (eg. a --verbose flag)

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 CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins/centreon_hpe_simplivity_restapi.pl \
--plugin=apps::virtualization::hpe::simplivity::restapi::plugin \
--mode=hosts \
--hostname='10.0.0.1' \
--api-username='my-username' \
--api-password='my-password' \
--verbose

The expected command output is shown below:

OK: All hosts are ok | 'hosts.alive.count'=4;;;; 'hosts.faulty.count'=0;;;; 'hosts.managed.count'=0;;;; 'hosts.removed.count'=0;;;; 'hosts.suspected.count'=0;;;; 'hosts.unknown.count'=0;;;; 'svt01.acme.com#host.components.green.count'=15;;;; 'svt01.acme.com#host.components.yellow.count'=0;;;; 'svt01.acme.com#host.components.red.count'=0;;;; 'svt01.acme.com#host.components.unknown.count'=0;;;; 'svt02.acme.com#host.components.green.count'=15;;;; 'svt02.acme.com#host.components.yellow.count'=0;;;; 'svt02.acme.com#host.components.red.count'=0;;;; 'svt02.acme.com#host.components.unknown.count'=0;;;; 'svt11.acme.com#host.components.green.count'=15;;;; 'svt11.acme.com#host.components.yellow.count'=0;;;; 'svt11.acme.com#host.components.red.count'=0;;;; 'svt11.acme.com#host.components.unknown.count'=0;;;; 'svt12.acme.com#host.components.green.count'=15;;;; 'svt12.acme.com#host.components.yellow.count'=0;;;; 'svt12.acme.com#host.components.red.count'=0;;;; 'svt12.acme.com#host.components.unknown.count'=0;;;;
checking host 'svt01.acme.com'
status: alive
logical drive '1' status: green
logical drive '3' status: green
physical drive '1:1-1' status: green
physical drive '1:1-2' status: green
physical drive '1:1-3' status: green
physical drive '1:1-4' status: green
physical drive '1:1-5' status: green
physical drive '1:1-6' status: green
physical drive '3:1-1' status: green
physical drive '3:1-2' status: green
physical drive '3:1-3' status: green
physical drive '3:1-4' status: green
physical drive '3:1-5' status: green
physical drive '3:1-6' status: green
checking host 'svt02.acme.com'
status: alive
logical drive '1' status: green
logical drive '3' status: green
physical drive '1:1-1' status: green
physical drive '1:1-2' status: green
physical drive '1:1-3' status: green
physical drive '1:1-4' status: green
physical drive '1:1-5' status: green
physical drive '1:1-6' status: green
physical drive '3:1-1' status: green
physical drive '3:1-2' status: green
physical drive '3:1-3' status: green
physical drive '3:1-4' status: green
physical drive '3:1-5' status: green
physical drive '3:1-6' status: green
checking host 'svt11.acme.com'
status: alive
logical drive '1' status: green
logical drive '3' status: green
physical drive '1:1-1' status: green
physical drive '1:1-2' status: green
physical drive '1:1-3' status: green
physical drive '1:1-4' status: green
physical drive '1:1-5' status: green
physical drive '1:1-6' status: green
physical drive '3:1-1' status: green
physical drive '3:1-2' status: green
physical drive '3:1-3' status: green
physical drive '3:1-4' status: green
physical drive '3:1-5' status: green
physical drive '3:1-6' status: green
checking host 'svt12.acme.com'
status: alive
logical drive '1' status: green
logical drive '3' status: green
physical drive '1:1-1' status: green
physical drive '1:1-2' status: green
physical drive '1:1-3' status: green
physical drive '1:1-4' status: green
physical drive '1:1-5' status: green
physical drive '1:1-6' status: green
physical drive '3:1-1' status: green
physical drive '3:1-2' status: green
physical drive '3:1-3' status: green
physical drive '3:1-4' status: green
physical drive '3:1-5' status: green
physical drive '3:1-6' status: green

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

/usr/lib/centreon/plugins/centreon_hpe_simplivity_restapi.pl \
--plugin=apps::virtualization::hpe::simplivity::restapi::plugin \
--mode=hosts \
--help

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

/usr/lib/centreon/plugins/centreon_hpe_simplivity_restapi.pl \
--plugin=apps::virtualization::hpe::simplivity::restapi::plugin \
--list-mode

Troubleshooting​

Please find all the troubleshooting documentation for the Centreon Plugins in the dedicated page