diff --git a/prometheus_hardware_exporter/collectors/ipmi_sel.py b/prometheus_hardware_exporter/collectors/ipmi_sel.py index b492985..ac43299 100644 --- a/prometheus_hardware_exporter/collectors/ipmi_sel.py +++ b/prometheus_hardware_exporter/collectors/ipmi_sel.py @@ -23,7 +23,9 @@ def get_sel_entries(self, time_range: int) -> Optional[List[Dict[str, str]]]: Returns: sel_entries: a list of dictionaries containing sel_sentries, or [] """ - result = self("--output-event-state --interpret-oem-data --entity-sensor-names") + result = self( + "--sdr-cache-recreate --output-event-state --interpret-oem-data --entity-sensor-names" + ) if result.error: logger.error(result.error) return None diff --git a/prometheus_hardware_exporter/collectors/ipmimonitoring.py b/prometheus_hardware_exporter/collectors/ipmimonitoring.py index 8ddb605..8f82010 100644 --- a/prometheus_hardware_exporter/collectors/ipmimonitoring.py +++ b/prometheus_hardware_exporter/collectors/ipmimonitoring.py @@ -20,7 +20,7 @@ def get_sensor_data(self) -> List[Dict[str, str]]: Returns: sensor_data: a list of dictionaries containing sensor data, or [] """ - result = self() + result = self("--sdr-cache-recreate") if result.error: logger.error(result.error) return []