-
Notifications
You must be signed in to change notification settings - Fork 95
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
fix: adding quiet mode for smartctl command #153
Conversation
Signed-off-by: Steven Kreitzer <[email protected]>
@NiceGuyIT or @SuperQ one for you when you have a moment :) |
I'll have time this weekend 👍 |
The exit-code is needed for smartctl_device * on (instance, device) group_left()
(smartctl_device_smartctl_exit_status > 0) != 64 This means ignore exit-code 6. Exit-code 6 is "ata error log have log entries" This option will exclude metric value for |
@k0ste those bits are not mutually exclusive I believe (see https://www.smartmontools.org/browser/trunk/smartmontools/smartctl.8.in#lbAI) ... so comparing them to their decimal values does only work if a single bit is set. |
Yes, you can define multiple variants for your environment |
What does any of that have to do with this pull request? You are stating promql. Adding |
Because it is not clear what problem it solves. If you brought specific conclusions where this command blocks the work, it would be more obvious. Yes, working with hardware is sometimes unpredictable, you can never encounter specific problems in your life 🙂 |
Did you read the issue #152? |
Yes, and only compared with your previous message I can figure out that with current command json output was blocked for your case. Unclear:
|
I'm using My device doesn't have bad firmware, but it probably doesn't support all the things other NVMe devices use. It's just using the default NVMe storage device inside a 2018 Mac mini. It was previously working on
|
@buroa I agree with @k0ste. Adding If I run "messages": [
{
"string": "Smartctl open device: /dev/sdd failed: Permission denied",
"severity": "error"
}
],
"exit_status": 2 If I add "exit_status": 2
I started a troubleshooting document (#157) and will work with you to identify what #152 introduced to cause a change in your environment. |
Fixes #152