@cryptotaxi247 / netdata-1 / commits / 9e2c27e80

fix apcupsd status "slave" (#17961)

Ilya Mashchenko committed Jun 19, 2024 at 16:56 UTC 9e2c27e805a57ac6f16aff4907c0b580a10ce387
1 file changed +1 -1
src/collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh
+1 -1
@@ -213,7 +213,7 @@ BEGIN {
213 status_LOWBATT = (\$0 ~ \"LOWBATT\") ? 1 : 0;
214 status_REPLACEBATT = (\$0 ~ \"REPLACEBATT\") ? 1 : 0;
215 status_NOBATT = (\$0 ~ \"NOBATT\") ? 1 : 0;
216 - status_SLAVE = (\$0 ~ \"SLAVE\") ? 1 : 0;
216 + status_SLAVE = (\$0 ~ \"SLAVE( |$)\") ? 1 : 0;
217 status_SLAVEDOWN = (\$0 ~ \"SLAVEDOWN\") ? 1 : 0;
218 status_COMMLOST = (\$0 ~ \"COMMLOST\") ? 1 : 0;
219 status_SHUTTING_DOWN = (\$0 ~ \"SHUTTING\") ? 1 : 0;