Ad Widget

Collapse

report the mysql monitor

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lman
    Junior Member
    • Aug 2016
    • 1

    #1

    report the mysql monitor

    the userparameter_mysql.conf is use mysql ping
    but if mysql shutdown , zabbix just the nosupport it in backend.

    UserParameter=mysql.ping,HOME=/var/lib/zabbix mysqladmin ping | grep -c alive

    can cahnge to

    UserParameter=mysql.ping,HOME=/var/lib/zabbix mysqladmin ping 1> /dev/null 2> /dev/null ;state=$? ; if [ $state == 1 ] ; then echo 0; else echo 1; fi
Working...