scripts/mysql-status
author Tomas Zeman <tomas@functionals.cz>
Thu, 15 Apr 2021 15:27:45 +0200
changeset 39 a0015fe2009a
permissions -rwxr-xr-x
mysql-slave,status (Zabbix trapper)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
39
a0015fe2009a mysql-slave,status (Zabbix trapper)
Tomas Zeman <tomas@functionals.cz>
parents:
diff changeset
     1
#!/bin/sh -e
a0015fe2009a mysql-slave,status (Zabbix trapper)
Tomas Zeman <tomas@functionals.cz>
parents:
diff changeset
     2
mysqladmin -ureader status | tr ' ' '_' | sed -e 's/__/ /g' | tr -s ' ' '\012' | sed -e 's/:_/ /' | tr '[A-Z]' '[a-z]' | sed -e 's/^/- mysql./'