Napsty / check_mysql_write

A simple monitoring plugin to check if MySQL/MariaDB host can do write operations. Supports Galera Cluster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MySQL Warnings shown

Napsty opened this issue · comments

# /usr/lib/nagios/plugins/check_mysql_write.sh -H mysqlhost -u monitoring -p supersecret -d monitoring
mysql: [Warning] Using a password on the command line interface can be insecure.
mysql: [Warning] Using a password on the command line interface can be insecure.
OK: Write query successful (UPDATE monitoring SET mytime=1566392156 WHERE host='icinga')

Fixed using PR #2

# /usr/lib/nagios/plugins/check_mysql_write_ck.sh -H mysqlhost -u monitoring -p supersecret -d monitoring
OK: Write query successful (UPDATE monitoring.monitoring SET mytime=1566392616 WHERE host='icinga')