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.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder