Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MegaCli Plugin fails to parse #4278

Closed
stefnats opened this issue Sep 24, 2018 · 2 comments · Fixed by #4279
Closed

MegaCli Plugin fails to parse #4278

stefnats opened this issue Sep 24, 2018 · 2 comments · Fixed by #4279
Assignees
Labels
area/collectors Everything related to data collection bug collectors/python.d

Comments

@stefnats
Copy link

stefnats commented Sep 24, 2018

I tried activating the MegaCli plugin but without success.
These are the outputs:

netdata@server:/home/stefan$ /usr/libexec/netdata/plugins.d/python.d.plugin 1 debug trace megacli
2018-09-24 12:12:58: python.d INFO: plugin: main: Using python 2
2018-09-24 12:12:58: python.d DEBUG: plugin: main: module load source: 'megacli' => [OK]
2018-09-24 12:12:58: python.d DEBUG: plugin: main: module load config: 'megacli' => [OK]
2018-09-24 12:12:58: python.d DEBUG: plugin: main: job initialization: 'megacli megacli' => ['OK']
2018-09-24 12:12:58: python.d DEBUG: plugin: main: module status: 'megacli' => [OK] (jobs: 1)
2018-09-24 12:12:58: python.d ERROR: megacli: megacli: failed to parse "/usr/bin/sudo -n /sbin/megacli -LDPDInfo -aAll -NoLog" output
2018-09-24 12:12:58: python.d INFO: megacli: megacli: check() => [FAILED]
2018-09-24 12:12:58: python.d INFO: plugin: main: FINISHED

and:

netdata@server:/home/stefan$ /usr/bin/sudo -n /sbin/megacli -LDPDInfo -aAll -NoLog

Adapter #0

Number of Virtual Disks: 1
Virtual Disk: 0 (Target Id: 0)
Name:
RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0
Size:893.75 GB
State: Optimal
Stripe Size: 256 KB
Number Of Drives:2
Span Depth:1
Default Cache Policy: WriteThrough, ReadAhead, Direct, No Write Cache if Bad BBU
Current Cache Policy: WriteThrough, ReadAhead, Direct, No Write Cache if Bad BBU
Access Policy: Read/Write
Disk Cache Policy: Enabled
Encryption Type: None
Number of Spans: 1
Span: 0 - Number of PDs: 2
PD: 0 Information
Enclosure Device ID: 252
Slot Number: 0
Device Id: 5
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 894.252 GB [0x6fc81ab0 Sectors]
Non Coerced Size: 893.752 GB [0x6fb81ab0 Sectors]
Coerced Size: 893.75 GB [0x6fb80000 Sectors]
Firmware state: Online
SAS Address(0): 0x4433221103000000
Connected Port Number: 2(path0)
Inquiry Data: S2TZNX0J902464      SAMSUNG MZ7LM960HMJP-00005              GXT5204Q
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Foreign State: None
Device Speed: Unknown
Link Speed: Unknown
Media Type: Solid State Device

PD: 1 Information
Enclosure Device ID: 252
Slot Number: 1
Device Id: 6
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
PD Type: SATA
Raw Size: 894.252 GB [0x6fc81ab0 Sectors]
Non Coerced Size: 893.752 GB [0x6fb81ab0 Sectors]
Coerced Size: 893.75 GB [0x6fb80000 Sectors]
Firmware state: Online
SAS Address(0): 0x4433221102000000
Connected Port Number: 1(path0)
Inquiry Data: S2TZNX0J900856      SAMSUNG MZ7LM960HMJP-00005              GXT5204Q
FDE Capable: Not Capable
FDE Enable: Disable
Secured: Unsecured
Locked: Unlocked
Foreign State: None
Device Speed: Unknown
Link Speed: Unknown
Media Type: Solid State Device


Exit Code: 0x00
@ilyam8 ilyam8 self-assigned this Sep 24, 2018
@ilyam8
Copy link
Member

ilyam8 commented Sep 24, 2018

Hi @stefnats

Please replace

r'Adapter #([0-9]+) State\s+: ([a-zA-Z]+)'

with

r'Adapter #([0-9]+) State(?:\s+)?: ([a-zA-Z]+)' 

and check if it works

@stefnats
Copy link
Author

Hi @l2isbad - Works! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/collectors Everything related to data collection bug collectors/python.d
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants