ClusterLabs / ha_cluster_exporter

Prometheus exporter for Pacemaker based Linux HA clusters
Apache License 2.0
79 stars 35 forks source link

sbd data is not exported if devices in SBD_DEVICE have an space after ; #197

Closed arbulu89 closed 1 year ago

arbulu89 commented 3 years ago

sbd data is not exported if devices in SBD_DEVICE have an space after ;.

This setup works for sbd.

Here an example (check the space after the ;):

SBD_DEVICE="/dev/disk/by-id/scsi-SLIO-ORG_IBLOCK_8071fac5-f560-4c78-b1fb-77ca7c86ebd5; /dev/disk/by-id/scsi-SLIO-ORG_IBLOCK_7eab20b6-1755-400a-8a41-d191dfe2e09b"

We would need to change the regular expression in https://github.com/ClusterLabs/ha_cluster_exporter/blob/master/collector/sbd/sbd.go#L116 to catch this scenario too, as it is allowed by sbd