centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

Feature request : 3PAR perf statistics

Open Bouyaka888 opened this issue 5 years ago • 9 comments

Hi,

Maybe I did not find the rigth plugins ... But it's impossible to have performance statistics on HP 3PAR storage. I have it on Nimbles storage devices. And when I searching I can finding on other models of other constructors. Nothing for 3PAR. IOPS and read/write input/output perf are the basics and main informations of storage device. So, is that possible that the community could look en eye about this ?

Sorry, this is my first post I do not know how is work (I mean, github).

Thk you all,

Bouyaka888 avatar Feb 05 '21 16:02 Bouyaka888

We can use: statvv -rw -d 10 -iter 3 But we get only 3 sampling each 10 seconds. It's not very optimal.

garnier-quentin avatar Feb 09 '21 14:02 garnier-quentin

Hello Quentin.

I'm also interested in getting 3PAR performance statistics. I have several 3PAR 7200 storage systems and can help with experiments.

As far as I understand, through SSH we can get a lot of different useful statistics and significantly expand the functionality of the plugin. If we add advanced perfdata modes and a few additional monitoring modes, then centreon plugins will be best in class.

We can also consider the option of an additional plugin with obtaining some data for monitoring in JSON format via the WSAPI protocol in 3PAR. Here I am also ready to participate, provide documentation on the API, consider examples and help in testing.

Aleksey-Maksimov avatar Jan 26 '22 13:01 Aleksey-Maksimov

If we can have optimal performance information with WSAPI, let's go :) But i need:

  • curl commands and results
  • api documentation

garnier-quentin avatar Jan 26 '22 14:01 garnier-quentin

Yes. I will give you all the information. Only probably it would be better to do a separate issues for each plugin and mode.

Aleksey-Maksimov avatar Jan 26 '22 14:01 Aleksey-Maksimov

Put everything together

garnier-quentin avatar Jan 26 '22 14:01 garnier-quentin

HPE 3PAR Web Services API (WSAPI)


Authentication and obtaining a session key:

# curl -k -H "Accept:application/json" -H "Content-Type:application/json" --data-binary {"user":"monitor","password":"myStr0ng!PWD"}' 'https://3par01.holding.com:8080/api/v1/credentials'

Result:

{"key":"0-8839f492dffe9eb701c2706169f8e62c-4e3bf161"}


An example of requesting data using a session key:

# curl -k -H "X-HP3PAR-WSAPI-SessionKey:0-8839f492dffe9eb701c2706169f8e62c-4e3bf161" 'https://3par01.holding.com:8080/api/v1/wsapiconfiguration'

Result:

{"httpState":"Disabled","httpPort":8008,"httpsState":"Enabled","httpsPort":8080,"version":"1.6.5","sessionsInUse":2,"systemResourceUsage":36,"sessionTimeout":15,"eventSessionsInUse":0,"maxEventSessions":5}


Deleting a session key after polling the storage system is completed:

# curl -k -X DELETE -H "Accept: application/json" https://3par01.holding.com:8080/api/v1/credentials/0-8839f492dffe9eb701c2706169f8e62c-4e3bf161


Link to current documentation on HPE website: HPE 3PAR Web Services API 1.6.15 Developer Guide File attached: HPE_c03606339_HPE 3PAR Web Services API Developer's Guide.pdf

There is also an interesting example of how WSAPI can be used: hpe-storage/python-3parclient

Aleksey-Maksimov avatar Jan 27 '22 05:01 Aleksey-Maksimov

Very nice. Could you also provide what you need and examples ? (like you did for hikvision nvr isapi)

garnier-quentin avatar Jan 27 '22 08:01 garnier-quentin

I'm just working on this right now. But for now, I have a feeling that the maximum amount of performance information can only be obtained through SSH.

Aleksey-Maksimov avatar Jan 27 '22 08:01 Aleksey-Maksimov

Therefore, I will ask you to make additional modes for SSH. To do this, I will create a separate issue for each such mode.

Aleksey-Maksimov avatar Jan 27 '22 08:01 Aleksey-Maksimov

Hi, Thanks for your interest in Centreon. Requests for new features and enhancements must be suggested here. Troubleshooting and questions must now be asked here (cf our new issue template.

Thank you for your understanding.

fmattesct avatar Oct 31 '23 15:10 fmattesct