Foglight Storage Management provides support for monitoring Dell Compellent (including Dell Storage Manager) & Equalogic, EMC Clariaon, CX, VMAX, VNX & Isilon, Hitachi AMS, VSP & USP, HP EVA and 3PAR, NetApp OnTap 7, 8, 9 including Cluster Mode. However, there are many arrays on the market and here at Quest, we want to ensure that anyone can monitor whichever array their business has invested in. This blog is a brief introduction into building your own storage monitoring agent. We are using Purestorage as our example agent, see the attached zip file to try it in your environment.

What is the Foglight Storage Management SDK?

The Storage SDK is a set of Python modules that allow users to develop custom agents that submit data into the Foglight Storage Management (FSM) framework. That means all that is required is the Agent; say for PureStorage, and once deployed, all of the data automatically populates the FSM Dashboards, Reports, Alarms and Capacity planning capabilities. That's it, no need to make custom dashboards, rules or alarms, Foglight handles all of it right out of the box.     

Attached to this blog is a fully functioning PureStorage Agent that utilizes the array's API to query performance and utilization metrics.

How do I get started ?

  1. Install Foglight Storage Management version 4.4 or 4.4.5 (releasing May 2017)
  2. Watch the video below
  3. Install Python 2.7.x
  4. Install pycharm community edt
  5. Download the SDK from Foglight via Administration -> Components for Download: Search for "StorageAgentSDK"
  6. Grab our example agent attached here to practice
  7. Start to build your agent
  8. Ask questions in forums, blogs or contact your account manager for help from Quest or one of our Foglight partners

 

A tip, many storage arrays have published python modules that can access your array's API, after the video I have posted a table with some examples.

 
Stay tuned for more blogs on the Foglight Storage Management SDK.
 
 

 

 

 

 

EMCUnity

Yes

Yes

https://github.com/ktelep/EMCUnity

EMC  XtremIO

Yes

Yes

https://github.com/nachiketkarmarkar/PyXtrem

PURESTORAGE

Yes

Yes

https://pypi.python.org/pypi/purestorage

Tintri

Yes

Yes

Https://github.com/Tintri/tintri-api-examples

Solidfire

Yes

Yes

https://github.com/solidfire/solidfire-sdk-python

IBM XIV

Yes

Yes

https://github.com/IBM/pyxcli

Infinidat  

Yes

Yes

https://infinisdk.readthedocs.io/en/latest/getting_started.html

Nutanix

Yes Yes

Nutanix VM - https://www.nutanix.com/products/community-edition/ 

Intro - http://datatomix.com/?p=146 

Part 1 -http://myvirtualcloud.net/how-to-use-python-with-nutanix-rest-api-part-1/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+myvirtualcloudnet+%28myvirtualcloud.net%29

Part 2 - http://myvirtualcloud.net/how-to-use-python-with-nutanix-rest-api-part-2/  

Authentication - http://itbloodpressure.com/2015/11/11/authentication-methods-using-rest-api-with-nutanix/

Anonymous
  • Hi, Chris

    My PureStorage is FA-405 and the version of REST API is 1.13
    Have error "('Unable to establish REST session. Check credentials.', PureError())" when i execute test-agent.bat
    How to check this error?

    Regards,
    C.W.

  • Hello Chris

    I found your Post very Useful and well detailed in getting Monitoring of our M20 flash arrays in Foglight.

    Your Demo files came in very handy.

    To get the demo files working in our system i had to edit line 148

    I had to change "protect=True" to "snap=True"

    lun.set_property("protection", ps_array.get_volume(pv["name"], snap=True))

    After this it worked a treat and gave us a huge headstart in trying to develop our own Cartridge.

    Our M20's are running Rest API 1.6

    Thankyou George

Related Content