summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-06-19 16:56:02 +0300
committerGitHub <noreply@github.com>2024-06-19 16:56:02 +0300
commit9e2c27e805a57ac6f16aff4907c0b580a10ce387 (patch)
tree2295d346dda993594d035c444e81376b8148f3fc
parent7fc605b7f1066179bc42634d36bf7b68dc0d006d (diff)
fix apcupsd status "slave" (#17961)
-rw-r--r--src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh b/src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh
index 0eba816745..58132024bd 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;