python.d INFO: plugin[main] : using python v3
python.d DEBUG: plugin[main] : looking for '/etc/netdata/python.d.conf'
python.d DEBUG: plugin[main] : '/etc/netdata/python.d.conf' is loaded
python.d DEBUG: plugin[main] : looking for '/usr/lib/netdata/conf.d/python.d.conf'
python.d DEBUG: plugin[main] : '/usr/lib/netdata/conf.d/python.d.conf' is loaded
python.d DEBUG: plugin[main] : looking for 'pythond-jobs-statuses.json' in /var/lib/netdata
python.d DEBUG: plugin[main] : loading '/var/lib/netdata/pythond-jobs-statuses.json'
python.d DEBUG: plugin[main] : '/var/lib/netdata/pythond-jobs-statuses.json' is loaded
python.d DEBUG: plugin[main] : [adaptec_raid] loaded module source : '/usr/libexec/netdata/python.d/adaptec_raid.chart.py'
python.d DEBUG: plugin[main] : [adaptec_raid] looking for 'adaptec_raid.conf' in ['/etc/netdata/python.d', '/usr/lib/netdata/conf.d/python.d']
python.d DEBUG: plugin[main] : [adaptec_raid] loading '/etc/netdata/python.d/adaptec_raid.conf'
python.d DEBUG: plugin[main] : [adaptec_raid] '/etc/netdata/python.d/adaptec_raid.conf' is loaded
python.d INFO: plugin[main] : [adaptec_raid] built 1 job(s) configs
python.d DEBUG: adaptec_raid[asr6805] : Executing command '/usr/bin/sudo -n -v'
python.d DEBUG: adaptec_raid[asr6805] : Executing command '/usr/bin/sudo -n /usr/sbin/arcconf GETCONFIG 1 LD'
python.d DEBUG: adaptec_raid[asr6805] : discovered logical devices ids: ['0']
python.d DEBUG: adaptec_raid[asr6805] : Executing command '/usr/bin/sudo -n /usr/sbin/arcconf GETCONFIG 1 PD'
python.d ERROR: adaptec_raid[asr6805] : failed to parse "/usr/bin/sudo -n /usr/sbin/arcconf GETCONFIG 1 PD" output
python.d DEBUG: adaptec_raid[asr6805] : output: ['Controllers found: 1\n', '----------------------------------------------------------------------\n', 'Physical Device information\n', '----------------------------------------------------------------------\n', ' Device #0\n', ' Device is a Hard drive\n', ' State : Online\n', ' Block Size : 512 Bytes\n', ' Supported : Yes\n', ' Transfer Speed : SAS 6.0 Gb/s\n', ' Reported Channel,Device(T:L) : 0,1(1:0)\n', ' Reported Location : Connector 0, Device 1\n', ' Vendor : NETAPP\n', ' Model : X422_HCOBE600A10\n', ' Firmware : NA00\n', ' Reserved Size : 956312 KB\n', ' Used Size : 571392 MB\n', ' Unused Size : 64 KB\n', ' Total Size : 572325 MB\n', ' Write Cache : Enabled (write-back)\n', ' FRU : None\n', ' S.M.A.R.T. : No\n', ' S.M.A.R.T. warnings : 0\n', ' Power State : Full rpm\n', ' Supported Power States : Full rpm,Powered off\n', ' SSD : No\n', ' Temperature : Not Supported\n', ' ----------------------------------------------------------------\n', ' Device Phy Information \n', ' ----------------------------------------------------------------\n', ' Phy #0\n', ' PHY Identifier : 0\n', ' SAS Address : 5000\n', ' Attached PHY Identifier : 2\n', ' Attached SAS Address : 5000\n', ' Phy #1\n', ' PHY Identifier : 1\n', ' SAS Address : 5000\n', '\n', ' Device #1\n', ' Device is a Hard drive\n', ' State : Online\n', ' Block Size : 512 Bytes\n', ' Supported : Yes\n', ' Transfer Speed : SAS 6.0 Gb/s\n', ' Reported Channel,Device(T:L) : 0,2(2:0)\n', ' Reported Location : Connector 0, Device 2\n', ' Vendor : NETAPP\n', ' Model : X422_HCOBE600A10\n', ' Firmware : NA02\n', ' Reserved Size : 956312 KB\n', ' Used Size : 571392 MB\n', ' Unused Size : 64 KB\n', ' Total Size : 572325 MB\n', ' Write Cache : Enabled (write-back)\n', ' FRU : None\n', ' S.M.A.R.T. : No\n', ' S.M.A.R.T. warnings : 0\n', ' Power State : Full rpm\n', ' Supported Power States : Full rpm,Powered off\n', ' SSD : No\n', ' Temperature : Not Supported\n', ' ----------------------------------------------------------------\n', ' Device Phy Information \n', ' ----------------------------------------------------------------\n', ' Phy #0\n', ' PHY Identifier : 0\n', ' SAS Address : 5000\n', ' Attached PHY Identifier : 1\n', ' Attached SAS Address : 5000\n', ' Phy #1\n', ' PHY Identifier : 1\n', ' SAS Address : 5000n', '\n', ' Device #2\n', ' Device is a Hard drive\n', ' State : Online\n', ' Block Size : 512 Bytes\n', ' Supported : Yes\n', ' Transfer Speed : SAS 6.0 Gb/s\n', ' Reported Channel,Device(T:L) : 0,4(4:0)\n', ' Reported Location : Connector 1, Device 0\n', ' Vendor : NETAPP\n', ' Model : X422_HCOBD600A10\n', ' Firmware : NA05\n', ' Reserved Size : 956312 KB\n', ' Used Size : 571392 MB\n', ' Unused Size : 64 KB\n', ' Total Size : 572325 MB\n', ' Write Cache : Enabled (write-back)\n', ' FRU : None\n', ' S.M.A.R.T. : No\n', ' S.M.A.R.T. warnings : 0\n', ' Power State : Full rpm\n', ' Supported Power States : Full rpm,Powered off\n', ' SSD : No\n', ' Temperature : Not Supported\n', ' ----------------------------------------------------------------\n', ' Device Phy Information \n', ' ----------------------------------------------------------------\n', ' Phy #0\n', ' PHY Identifier : 0\n', ' SAS Address : 5000\n', ' Attached PHY Identifier : 7\n', ' Attached SAS Address : 5000\n', ' Phy #1\n', ' PHY Identifier : 1\n', ' SAS Address : 5000\n', '\n', ' Device #3\n', ' Device is a Hard drive\n', ' State : Online\n', ' Block Size : 512 Bytes\n', ' Supported : Yes\n', ' Transfer Speed : SAS 6.0 Gb/s\n', ' Reported Channel,Device(T:L) : 0,5(5:0)\n', ' Reported Location : Connector 1, Device 1\n', ' Vendor : NETAPP\n', ' Model : X422_HCOBD600A10\n', ' Firmware : NA05\n', ' Reserved Size : 956312 KB\n', ' Used Size : 571392 MB\n', ' Unused Size : 64 KB\n', ' Total Size : 572325 MB\n', ' Write Cache : Enabled (write-back)\n', ' FRU : None\n', ' S.M.A.R.T. : No\n', ' S.M.A.R.T. warnings : 0\n', ' Power State : Full rpm\n', ' Supported Power States : Full rpm,Powered off\n', ' SSD : No\n', ' Temperature : Not Supported\n', ' ----------------------------------------------------------------\n', ' Device Phy Information \n', ' ----------------------------------------------------------------\n', ' Phy #0\n', ' PHY Identifier : 0\n', ' SAS Address : 5000\n', ' Attached PHY Identifier : 6\n', ' Attached SAS Address : 50000\n', ' Phy #1\n', ' PHY Identifier : 1\n', ' SAS Address : 5000\n', '\n', ' Device #4\n', ' Device is a Hard drive\n', ' State : Online\n', ' Block Size : 512 Bytes\n', ' Supported : Yes\n', ' Transfer Speed : SAS 6.0 Gb/s\n', ' Reported Channel,Device(T:L) : 0,6(6:0)\n', ' Reported Location : Connector 1, Device 2\n', ' Vendor : NETAPP\n', ' Model : X422_HCOBD600A10\n', ' Firmware : NA05\n', ' Reserved Size : 956312 KB\n', ' Used Size : 571392 MB\n', ' Unused Size : 64 KB\n', ' Total Size : 572325 MB\n', ' Write Cache : Enabled (write-back)\n', ' FRU : None\n', ' S.M.A.R.T. : No\n', ' S.M.A.R.T. warnings : 0\n', ' Power State : Full rpm\n', ' Supported Power States : Full rpm,Powered off\n', ' SSD : No\n', ' Temperature : Not Supported\n', ' ----------------------------------------------------------------\n', ' Device Phy Information \n', ' ----------------------------------------------------------------\n', ' Phy #0\n', ' PHY Identifier : 0\n', ' SAS Address : 5000\n', ' Attached PHY Identifier : 5\n', ' Attached SAS Address : 5000\n', ' Phy #1\n', ' PHY Identifier : 1\n', ' SAS Address : 5000\n', '\n', ' Device #5\n', ' Device is a Hard drive\n', ' State : Online\n', ' Block Size : 512 Bytes\n', ' Supported : Yes\n', ' Transfer Speed : SAS 6.0 Gb/s\n', ' Reported Channel,Device(T:L) : 0,7(7:0)\n', ' Reported Location : Connector 1, Device 3\n', ' Vendor : NETAPP\n', ' Model : X422_HCOBD600A10\n', ' Firmware : NA05\n', ' Reserved Size : 956312 KB\n', ' Used Size : 571392 MB\n', ' Unused Size : 64 KB\n', ' Total Size : 572325 MB\n', ' Write Cache : Enabled (write-back)\n', ' FRU : None\n', ' S.M.A.R.T. : No\n', ' S.M.A.R.T. warnings : 0\n', ' Power State : Full rpm\n', ' Supported Power States : Full rpm,Powered off\n', ' SSD : No\n', ' Temperature : Not Supported\n', ' ----------------------------------------------------------------\n', ' Device Phy Information \n', ' ----------------------------------------------------------------\n', ' Phy #0\n', ' PHY Identifier : 0\n', ' SAS Address : 50009\n', ' Attached PHY Identifier : 4\n', ' Attached SAS Address : 5000\n', ' Phy #1\n', ' PHY Identifier : 1\n', ' SAS Address : 5000\n', '\n', '\n', '\n', 'Command completed successfully.\n']
python.d INFO: plugin[main] : adaptec_raid[asr6805] : check failed
python.d INFO: plugin[main] : no jobs to serve
python.d INFO: plugin[main] : exiting from main...
Bug description
I try to configure the Adaptec Raid plugin and when the first arcconf command
arcconf GETCONFIG 1 LDseems to be good, for some reason the secondarcconf GETCONFIG 1 PDdon't work and send a failed to parse output error.The output of the command
sudo -n arcconf GETCONFIG 1 PD
And the Debug show this error
./python.d.plugin adaptec_raid debug trace
Maybe related to a regex problem ?
Expected behavior
Python properly parse the disk info (state, smart, temp ...)
Steps to reproduce
Setup RAID plugin by following the documentation:
https://learn.netdata.cloud/docs/agent/collectors/python.d.plugin/adaptec_raid
Installation method
kickstart.sh
System info
Netdata build info
Netdata Version ____________________________________________ : v1.43.2Additional info
No response