diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2024-06-19 16:56:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 16:56:02 +0300 |
commit | 9e2c27e805a57ac6f16aff4907c0b580a10ce387 (patch) | |
tree | 2295d346dda993594d035c444e81376b8148f3fc /src | |
parent | 7fc605b7f1066179bc42634d36bf7b68dc0d006d (diff) |
fix apcupsd status "slave" (#17961)
Diffstat (limited to 'src')
-rw-r--r-- | src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh | 2 |
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; |