From 3fa6c082a1a68860da4a493cc290c53149127289 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Mon, 3 Jan 2022 09:34:30 +0100 Subject: [PATCH] check_mysqlmunin : Complain if munin plugin mysql_commands returns an error This is important to catch incompatibilities between the munin plugin and the mysql output --- CHANGELOG | 2 ++ evocheck.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 2ecba16..478c6a9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp ### Added +check_mysqlmunin : Complain if munin plugin mysql_commands returns an error + ### Changed ### Deprecated diff --git a/evocheck.sh b/evocheck.sh index b7cd83d..4589c26 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -1006,6 +1006,8 @@ check_mysqlmunin() { test "${VERBOSE}" = 1 || break fi done + munin-run mysql_commands 2> /dev/null > /dev/null + test $? -eq 0 || failed "IS_MYSQLMUNIN" "Munin plugin mysql_commands returned an error" fi fi }