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
311 stars 274 forks source link

[storage::hp::3par::ssh::plugin] - version 20190704 has different errors #1574

Closed joschi99 closed 5 years ago

joschi99 commented 5 years ago

Plugin version: 20190704

The refactored plugin has different errors:

./centreon_plugins --plugin=storage::hp::3par::ssh::plugin --hostname=x.x.x.x --ssh-option='-l=user' --mode=volume-usage
UNKNOWN: Command error: Invalid columns specified: {Usr_Used_MB;}
./centreon_plugins --plugin=storage::hp::3par::ssh::plugin --hostname=x.x.x.x --ssh-option='-l=user' --mode=disk-usage
UNKNOWN: Command error: showpd: Invalid PD-id exit - SYNTAX -     showpd [options] [<PD_ID> ...] -     showpd -listcols

At least checking components is returning 0 components:

./centreon_plugins --plugin=storage::hp::3par::ssh::plugin --hostname=x.x.x.x --ssh-option='-l=user' --mode=components --debug
OK: All 0 components are ok []. |
Checking batteries
Checking cim
Checking ports
Checking nodes
Checking disks
Checking power supplies
Checking sensors
Checking wsapi
garnier-quentin commented 5 years ago

Could you send me result of commands.

showvv -showcols Id,Name,VSize_MB,Snp_Rsvd_MB,Snp_Used_MB,Adm_Rsvd_MB,Adm_Used_MB,Usr_Rsvd_MB,Usr_Used_MB

showpd -showcols Id,State,Type,Size_MB,Free_MB

shownode -ps

joschi99 commented 5 years ago
showvv -showcols Id,Name,VSize_MB,Snp_Rsvd_MB,Snp_Used_MB,Adm_Rsvd_MB,Adm_Used_MB,Usr_Rsvd_MB,Usr_Used_MB
Id Name          VSize_MB Snp_Rsvd_MB Snp_Used_MB Adm_Rsvd_MB Adm_Used_MB Usr_Rsvd_MB Usr_Used_MB
 1 .srdata          61440           0           0           0           0       61440       61440
 3 3PAR-SAS-LUN1  4145152           0           0           0           0     4145152     4145152
 4 3PAR-SSD-LUN1  1536000           0           0        1024         778     1167104     1162455
 6 3PAR-SSD-LUN2   716800           0           0       34304       33452      538240      528654
 0 admin            10240           0           0           0           0       10240       10240
-------------------------------------------------------------------------------------------------
 5 total          6469632           0           0       35328       34230     5922176     5907941
showpd -showcols Id,State,Type,Size_MB,Free_MB
Id State  Type  Size_MB Free_MB
 0 normal FC    1142784  262144
 1 normal FC    1142784  263168
 2 normal FC    1142784  262144
 3 normal FC    1142784  263168
 4 normal FC    1142784  271360
 5 normal FC    1142784  272384
 6 normal FC    1142784  269312
 7 normal FC    1142784  270336
 8 normal SSD    456704   90112
 9 normal SSD    456704   90112
10 normal SSD    456704   90112
11 normal SSD    456704   90112
12 normal SSD    456704   90112
13 normal SSD    456704   90112
14 normal SSD    456704   91136
15 normal SSD    456704   91136
-------------------------------
16             12795904 2856960
shownode -ps
Node PS -Assem_Part- -Assem_Serial- ACState DCState PSState
 0,1  0   726237-001 5DNSFA2438I3CJ OK      OK      OK
 0,1  1   726237-001 5DNSFA2438B1UD OK      OK      OK
garnier-quentin commented 5 years ago

I don't understand. It should work. Have you accepted the fingerprint ? You use plink ?

joschi99 commented 5 years ago

Fingerprint should not be the problem, plugins version 20190420 works correctly. We don't use plink.

joschi99 commented 5 years ago

Hi @garnier-quentin, I can give you access to do some debug if you need.

garnier-quentin commented 5 years ago

You can contact me by email and i ll send an distant session (to look directly). If you can.

garnier-quentin commented 5 years ago

You can test it and validate.

joschi99 commented 5 years ago

Tested and works perfectly.

Thanks

garnier-quentin commented 5 years ago

Thanks for the feedback.