New version of check_mysql_slavestatus released: Bugfix when using both -H and -S (socket) parameters

Written by - 0 comments

Published on - Listed in Monitoring MySQL MariaDB Databases


A new version of check_mysql_slavestatus, a monitoring plugin to check MySQL/MariaDB replications, is available.

Version 2023010300 fixes a minor bug when both -H (Host) and -S (Socket) parameters were used. The plugin is only intended to either connect to an IP or DNS Host using -H OR connect using a local socket using -S /run/mysqld/mysqld.sock

The plugin however didn't catch this wrong usage and should alert with an UNKNOWN error, mentioning what's wrong.

The new version now shows the relevant output, which should be helpful enough:

$ ./check_mysql_slavestatus.sh -H localhost -u monitoring -p secret -S /run/mysqld/mysqld.sock
Either use -H Host or -S /path/to/mysql.sock but NOT both

$ echo $?
3

This bug was reported in issue 14 by Hector Valencia. Thanks for creating the issue!


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.