Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-16761

mysql template does not work

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 4.4.0
    • Templates (T)
    • None
    • Centos7

      The MySQL template does not work by creating a .my.cnf conf in /var/lib/Zabbix.

      It only works if you add in userparameter_mysql.conf paramters -u"user" -p"password"

      For example:

      UserParameter=mysql.ping[*], mysqladmin -u"root" -p"mypassword"  -h"$1" -P"$2" ping
      

       In server logs I see:

      noname.xml:1: parser error : Start tag expected, '<' not found
      noname.xml:1: parser error : Start tag expected, '<' not found
      ERROR 1045 (28000): Access denied for user 'zabbix'@'localhost' (using password:
      ^
      ERROR 1045 (28000): Access denied for user 'zabbix'@'localhost' (using password:
      ^
      noname.xml:1: parser error : Start tag expected, '<' not found
      ERROR 1045 (28000): Access denied for user 'zabbix'@'localhost' (using password:
      

       

      Frankly I have no ideea from where he takes username zabbix

            mchudinov Maxim Chudinov (Inactive)
            quantic Nelu Tand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: