From 9e2c27e805a57ac6f16aff4907c0b580a10ce387 Mon Sep 17 00:00:00 2001 From: Ilya Mashchenko Date: Wed, 19 Jun 2024 16:56:02 +0300 Subject: [PATCH] fix apcupsd status "slave" (#17961) --- src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh b/src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh index 0eba816745be45..58132024bd22da 100644 --- a/src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh +++ b/src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh @@ -213,7 +213,7 @@ BEGIN { status_LOWBATT = (\$0 ~ \"LOWBATT\") ? 1 : 0; status_REPLACEBATT = (\$0 ~ \"REPLACEBATT\") ? 1 : 0; status_NOBATT = (\$0 ~ \"NOBATT\") ? 1 : 0; - status_SLAVE = (\$0 ~ \"SLAVE\") ? 1 : 0; + status_SLAVE = (\$0 ~ \"SLAVE( |$)\") ? 1 : 0; status_SLAVEDOWN = (\$0 ~ \"SLAVEDOWN\") ? 1 : 0; status_COMMLOST = (\$0 ~ \"COMMLOST\") ? 1 : 0; status_SHUTTING_DOWN = (\$0 ~ \"SHUTTING\") ? 1 : 0;