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

storcli.py: don't error out on unsupported features #201

Merged

Conversation

jcpunk
Copy link
Contributor

@jcpunk jcpunk commented Jan 29, 2024

Tested hardware: LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)

This integrated RAID chip doesn't emit stats for these features.

@jcpunk jcpunk force-pushed the storcli-limited-features branch from 54f0a84 to 96a708a Compare January 29, 2024 17:49
@LuminatiHD
Copy link

While you're at it, could you do a similar thing for the drive temperature? We had a similar problem there with our drive.

@jcpunk
Copy link
Contributor Author

jcpunk commented Feb 6, 2024

I'm not sure which elements you need tweaked...

@LuminatiHD
Copy link

state["Drive Temperature"] returns "N/A" for some of our drives (Line 393). I have a merge request up on this as well, but it might be neater to have everything part of the same Pull request.

@jcpunk jcpunk force-pushed the storcli-limited-features branch from 96a708a to c8d6251 Compare February 7, 2024 15:06
@jcpunk
Copy link
Contributor Author

jcpunk commented Feb 7, 2024

Updated, can you check it for sanity?. Do you know who might have merge rights on this repo?

@LuminatiHD
Copy link

Code looks good to me. For merge rights, I know dswarbrick has, but probably also all contributors that list prometheus as their workplace.

@jcpunk
Copy link
Contributor Author

jcpunk commented Feb 12, 2024

@dswarbrick Could you review this PR (and others for storcli.py)?

@dswarbrick
Copy link
Member

@jcpunk Are these "N/A" and "Unknown" values being emitted by storcli for actual online and spun-up drives? This seems like a pretty big oversight by LSI to omit these data, considering that most of them are mandatory SMART items. Are you sure it's not just a case of a spun-down / offline / power-save / standby disk?

@jcpunk
Copy link
Contributor Author

jcpunk commented Feb 13, 2024

I can confirm these drives are spun up and serving data. In this instance the OS is on these drives.

@dswarbrick dswarbrick self-assigned this Feb 13, 2024
storcli.py Outdated Show resolved Hide resolved
@jcpunk jcpunk force-pushed the storcli-limited-features branch from c8d6251 to 13de14c Compare February 13, 2024 18:18
@dswarbrick
Copy link
Member

Since storcli is closed source, we don't have any way to dig deeper into why a spun-up drive is not reporting basic info like this. I'm okay with merging this, but we might want to consider a helper function in future to reduce some of the if-statement boilerplate code.

@dswarbrick dswarbrick merged commit ef8c077 into prometheus-community:master Feb 13, 2024
4 checks passed
@jcpunk jcpunk deleted the storcli-limited-features branch February 13, 2024 18:41
allamiro pushed a commit to allamiro/node-exporter-textfile-collector-scripts that referenced this pull request Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants