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

fix: parse time error #198

Merged

Conversation

alexandrovas
Copy link

@alexandrovas alexandrovas commented Jul 1, 2024

In some cases ipmi-sel can return PostInit in Date and Time fields

Example:

$ ipmi-sel --comma-separated-output --output-event-state --interpret-oem-data --output-oem-event-strings
ID,Date,Time,Name,Type,State,Event
1,PostInit,PostInit,PSU1 AC Lost,Power Supply,Critical,Power Supply input lost (AC/DC)
2,PostInit,PostInit,PSU1 AC Lost,Power Supply,Warning,Power Supply input lost (AC/DC)
3,PostInit,PostInit,Sensor #211,Memory,Warning,Correctable memory error ; Event Data3 = 34h
4,PostInit,PostInit,Sensor #211,Memory,Warning,Correctable memory error ; Event Data3 = 3Ch
5,PostInit,PostInit,Sensor #211,Memory,Warning,Correctable memory error ; Event Data3 = 34h

We need ignore such errors.

Signed-off-by: Aleksandr Aleksandrov <aleks.aleksandrov@corp.mail.ru>
@bitfehler
Copy link
Contributor

IPMI 🤷 Thanks!

@bitfehler bitfehler merged commit 6cbd5c9 into prometheus-community:master Jul 9, 2024
2 checks passed
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.

2 participants