Ad Widget

Collapse

mysqladmin error in MySQL Templaet zabbix agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nmz
    Member
    • Jan 2016
    • 69

    #1

    mysqladmin error in MySQL Templaet zabbix agent

    I'm using zabbix server 2.2 and database and zabbix_agent was installed in other host. When I try to monitor mysql database with zabbix agent I got such as error
    mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)'
    Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!

    Privileges already set on user. It's work like charm when I try it in my localhost.

    PS : MySQL service is running, Zabbix Server and agent are running.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    Zabbix agent executes the checks as "zabbix" user. Please double check if that user has the privileges.

    Maybe SELinux is in your way. If possible, try temporary disabling it and see if that helps.

    Best Regards,
    Ingus

    Comment

    Working...