Select Git revision
check_snmp_includes
-
Hahn Axel (hahn) authoredHahn Axel (hahn) authored
detect-mysql 569 B
# ----------------------------------------------------------------------------
#
# EOL - End of life detection - Warn before reaching end of life
#
# detect version of MARIADB
#
# ----------------------------------------------------------------------------
# 2020-02-25 v1.0 <axel.hahn@iml.unibe.ch>
# ----------------------------------------------------------------------------
# ----- example output
# mysql --version
# mysql Ver 14.14 Distrib 5.5.62, for debian-linux-gnu (x86_64) using readline 6.3
mysql --version | awk '{ print $5 }' | cut -f 1,2 -d '.'