scripts/mysql-status
author Tomas Zeman <tomas@functionals.cz>
Tue, 21 Feb 2023 13:03:45 +0100
changeset 40 8c421321123d
parent 39 a0015fe2009a
permissions -rwxr-xr-x
run-cron-zabbix
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./'