@cryptotaxi247 / netdata-1 / commits / ed9b12d32

Fix issue #11434 regarding inconsistent status check on component. (#11435)

Tercio Filho committed Aug 16, 2021 at 03:37 UTC ed9b12d32e6e0923779c4050e60fd485b54abd8b
1 file changed +1 -1
collectors/charts.d.plugin/apcupsd/apcupsd.chart.sh
+1 -1
@@ -154,7 +154,7 @@ BEGIN {
154 /^LOADPCT.*/ { load = \$3 * 100 };
155 /^ITEMP.*/ { temp = \$3 * 100 };
156 /^TIMELEFT.*/ { time = \$3 * 100 };
157 -/^STATUS.*/ { online=(\$3 == \"ONLINE\" || \$3 == \"ONBATT\")?1:0 };
157 +/^STATUS.*/ { online=(\$3 != \"COMMLOST\" && !(\$3 == \"SHUTTING\" && \$4 == \"DOWN\"))?1:0 };
158 END {
159 print \"BEGIN apcupsd_${host}.online $1\";
160 print \"SET online = \" online;