health/mysql: match 0 in mysql.slave_status (#10513)
Ilya Mashchenko committed
Jan 18, 2021 at 19:07 UTC
d5df9215ae1ae2eaaf4a79b6dd92d2bf3561a06d
1 file changed
+1
-1
health/health.d/mysql.conf
+1
-1
@@ -79,7 +79,7 @@ template: mysql_connections
79
80
template: mysql_replication
81
on: mysql.slave_status
82
- calc: ($sql_running == -1 OR $io_running == -1)?0:1
82
+ calc: ($sql_running <= 0 OR $io_running <= 0)?0:1
83
units: ok/failed
84
every: 10s
85
crit: $this == 0