prometheus-community / ipmi_exporter

Remote IPMI exporter for Prometheus
MIT License
459 stars 131 forks source link

fix: parse time error #198

Closed alexandrovas closed 2 months ago

alexandrovas commented 2 months ago

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.

bitfehler commented 2 months ago

IPMI :shrug: Thanks!