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

Do not parse "Error Information Log" on NVMe devices #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stdietrich
Copy link

smartctl shows the error information log on an NVMe device:

Error Information (NVMe Log 0x01, max 63 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS  Message
  0       9503     0  0xb00b  0x421e  0x004            0     1     -  Feature Not Namespace Specific
  1       9502     0  0x001d  0x421e  0x004            0     1     -  Feature Not Namespace Specific

The regex matches the ErrCount and Message field, which results into false positive alerts and errors in the check output:

~ [#] ./check_smart_attributes -dbj check_smartdb.json -r '"/dev/(sd[a-z]|nvme[0-9]{1,}n[0-9]{1,})"'
Argument "Feature" isn't numeric in numeric lt (<) at /usr/lib64/nagios/plugins/check_smart_attributes line 599.
Critical (2 devices) [nvme0n1p1_Error_Information_Log_Entries = Critical][nvme0n1p1_3078 = Critical]

This will also solve the issue reported in #130

smartctl shows the error information log on an NVMe device:

```
Error Information (NVMe Log 0x01, max 63 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS  Message
  0       9503     0  0xb00b  0x421e  0x004            0     1     -  Feature Not Namespace Specific
  1       9502     0  0x001d  0x421e  0x004            0     1     -  Feature Not Namespace Specific
```

The regex matches the ErrCount and Message field, which results into
false positive alerts and errors in the check output:
~ [#] ./check_smart_attributes -dbj check_smartdb.json -r '"/dev/(sd[a-z]|nvme[0-9]{1,}n[0-9]{1,})"'
Argument "Feature" isn't numeric in numeric lt (<) at /usr/lib64/nagios/plugins/check_smart_attributes line 599.
Critical (2 devices) [nvme0n1p1_Error_Information_Log_Entries = Critical][nvme0n1p1_3078 = Critical]
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.

1 participant