diff options
Diffstat (limited to 'health/health.d/mysql.conf')
-rw-r--r-- | health/health.d/mysql.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/health/health.d/mysql.conf b/health/health.d/mysql.conf index ce7b98a87..2bec56387 100644 --- a/health/health.d/mysql.conf +++ b/health/health.d/mysql.conf @@ -132,3 +132,15 @@ template: mysql_galera_cluster_state delay: up 30s down 5m multiplier 1.5 max 1h info: node state (0: undefined, 1: joining, 2: donor/desynced, 3: joined, 4: synced) to: dba + + +# galera node status + +template: mysql_galera_cluster_status + on: mysql.galera_cluster_status + calc: $wsrep_cluster_status + every: 10s + crit: $mysql_galera_cluster_state != nan AND $this != 0 + delay: up 30s down 5m multiplier 1.5 max 1h + info: node and cluster status (-1: unknown, 0: primary/quorum present, 1: non-primary/quorum lost, 2: disconnected) + to: dba |