On Fri, 24 Feb 2023 11:30:10 +0100 Florian Schlichting <schlicht...@zib.de> wrote:

> The hotfix is a
> /etc/systemd/system/prometheus-node-exporter-ipmitool-sensor.service.d/override.conf
> file setting
>
> [Service]
> Environment=LC_NUMERIC=C
>
> but this should preferably be set in
> /lib/systemd/system/prometheus-node-exporter-ipmitool-sensor.service or
> even fixed in the ipmitools awk script upstream..

Setting LC_NUMERIC in the upstream awk script is not viable, since the awk script does not actually _execute_ the ipmitool command. It merely expects the output of the ipmitool command to be piped to the awk script.

So, setting the environment in the systemd service file is the best that we can do.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to