centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 273 forks source link

storage::dell::me4::restapi::plugin problem #4406

Open Hbitvof opened 1 year ago

Hbitvof commented 1 year ago

Recently we updated our Powervault to firmware version GT280R011-01 and have the same issue as in #3872 . I added the option --digest-sha256 to the command, but this is not solving the problem. Is there a way to debug this further to see what the issue is this time?

garnier-quentin commented 1 year ago

Do you still have the issue ?

Hbitvof commented 1 year ago

Do you still have the issue ?

Yes, this issue still exists. It would be nice to get some help solving this problem.

garnier-quentin commented 1 year ago

Could you provide the output with --debug ?

Hbitvof commented 1 year ago

Could you provide the output with --debug ?

Here is the output:

UNKNOWN: Login endpoint returns an error: 'Authentication Unsuccessful' ======> request send GET https://x.x.x.x:443/api/login/64111c362671cbc05dc04c2523011ba1c59ba0a08c180f43b3962e6419109ca1 Accept: application/json User-Agent: centreon::plugins::backend::http::useragent Datatype: json

======> response done HTTP/1.1 200 OK Cache-Control: no-cache, no-store, must-revalidate Cache-Control: no-cache Connection: keep-alive Content-Length: 303 Content-Type: application/json; charset="utf-8" Client-Date: Thu, 25 May 2023 10:41:57 GMT Client-Peer: 172.30.69.21:443 Client-Response-Num: 1 Client-SSL-Cert-Issuer: /C=US/ST=CO/O=DELL-EMC/OU=ME4/CN=10.0.0.2 Client-SSL-Cert-Subject: /C=US/ST=CO/O=DELL-EMC/OU=ME4/CN=10.0.0.2 Client-SSL-Cipher: ECDHE-RSA-AES256-GCM-SHA384 Client-SSL-Socket-Class: IO::Socket::SSL Command-Status: 2 Authentication Unsuccessful Content-Security-Policy: script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src * 'self' data:; base-uri 'self'; object-src 'self' Strict-Transport-Security: max-age=31536000; X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN X-XSS-Protection: 1

{

"status":[ { "object-name":"status", "meta":"/meta/status", "response-type":"Error", "response-type-numeric":1, "response":"Authentication Unsuccessful", "return-code":2, "component-id":"", "time-stamp":"2023-05-25 11:41:57", "time-stamp-numeric":1685014917 } ] }

garnier-quentin commented 1 year ago

It's weird. Could you ask to your dell support about it ?

Hbitvof commented 1 year ago

Any specific question you want me to ask Dell? In my experience I don't get anything useful response from this company about such issues.

garnier-quentin commented 1 year ago

It should work: https://www.dell.com/support/manuals/fr-fr/powervault-me4024/me4_series_cli_pub/using-a-script-to-access-the-cli?guid=guid-9ae5ccd6-a207-42df-b2f3-1e02a487a354&lang=en-us

Could you try the basic auth to test with curl ?

Hbitvof commented 1 year ago

I think I forgot to mention the check is sometimes working. I just did the same command again and now I got response. I use the following command: centreon_plugins.pl --hostname=x.x.x.x --plugin=storage::dell::me4::restapi::plugin --mode=hardware --api-username=username --api-password=password --digest-sha256 --insecure

But when I try it again a few minutes later I receive the Authenticiation Unsuccessful error again.

garnier-quentin commented 1 year ago

I seems like a dell me4 issue.

lucie-dubrunfaut commented 2 months ago

Hello :)

Without additional information we are not able to provide a solution or resolve a possible bug. So @Hbitvof, were you able to resolve the problem with Dell support or do you still need us on this issue? If it's a Dell issue let me close it here.

smigy commented 2 months ago

This issue is still persist, it is weird because sometimes the check is successful but sometimes return a timeout

smigy commented 2 months ago

It returns "authentification unsuccessful image image