Skip to main content

NetApp Ontap Rest API

Overview​

ONTAP or Data ONTAP or Clustered Data ONTAP (cDOT) or Data ONTAP 7-Mode is NetApp's proprietary operating system used in storage disk arrays such as NetApp FAS and AFF, ONTAP Select and Cloud Volumes ONTAP

Plugin-Pack assets​

Monitored objects​

  • Cluster
  • Hardware
  • Luns
  • Snapmirrors
  • Volumes

Discovery rules​

Rule nameDescription
HW-Storage-Netapp-Ontap-Restapi-Volume-NameDiscover volumes attached to your storage

Monitored metrics​

Metric nameDescription
node_statusThe node status
cluster.io.read.usage.bytespersecondI/O read. Unit: B/s
cluster.io.write.usage.bytespersecondI/O written. Unit: B/s
cluster.io.read.usage.iopsI/O read per seconds. Unit: iops
cluster.io.write.usage.iopsI/O written per seconds. Unit: iops
cluster.io.read.latency.millisecondsI/O read latency. Unit: ms
cluster.io.write.latency.millisecondsI/O written latency. Unit: ms

Prerequisites​

NetApp ONTAP configuration​

A read-only account (login/password) is required.

Setup​

  1. Install the Centreon Plugin package on every Centreon poller expected to monitor NetApp ONTAP ressources:
yum install centreon-plugin-Hardware-Storage-Netapp-Ontap-Restapi
  1. On the Centreon Web interface, install the 'NetApp Ontap Rest API' Centreon Plugin-Pack on the "Configuration > Plugin Packs > Manager" page

Configuration​

  • Log into Centreon and add a new Host through "Configuration > Hosts".
  • Apply the template HW-Storage-NetApp-Ontap-Restapi-custom and configure all the Macros:
MandatoryNomDescription
XAPIPORTPort used. Default is 443
XAPIPROTOProtocol used. Default is https
XAPIUSERNAMEUsername to access to the API.
XAPIPASSWORDPassword to access to the API.
APIEXTRAOPTIONSAny extra option you may want to add to the command

FAQ​

How do I test my configuration through the CLI and what do the main parameters stand for ?​

Once the Centreon plugin installed, you can test it logging with the centreon-engine user:

/usr/lib/centreon/plugins/centreon_netapp_ontap_restapi.pl \    
--plugin=storage::netapp::ontap::restapi::plugin \
--hostname=netapp.centreon.com \
--port=443 \
--proto=https \
--api-username='admin' \
--api-password='xxxx' \
--mode=volumes \
--verbose

The command above checks the status of the volumes (--mode=volumes) of the NetApp storage netapp.centreon.com (--hostname=netapp.centreon.com) using the API username admin and the related password (--api-username='admin' --api-password='xxxx'). The API connection uses the HTTPS protocol (--proto=https) on the port 443 (--port=443).