Ad Widget

Collapse

Original config files for Zabbix 4.2.3 Server and Agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmmmay
    Junior Member
    • Jun 2019
    • 15

    #1

    Original config files for Zabbix 4.2.3 Server and Agent

    Hi!
    I'm new to zabbix and I have this error for mySQL db monitoring. My frontend also shows the same error.

    Code:
    [root@BUMPOCV1 ~]# zabbix_get -s 10.22.5.245 -k mysql.status[Com_begin]
    ERROR 1045 (28000): Access denied for user 'zabbix'@'localhost' (using password: NO)
    I have tried all the solutions online but the error still persists.
    So, I would like to restore all the zabbix config files to original and try again.

    Could anyone share me where I can get the original contents of all the Zabbix 4.2.3 config files? (zabbix_agentd.conf, zabbix_server.conf, userparameter_mysql.conf, zabbix.conf.php)

    Thank you in advance!

    May


  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    As described in the first line of userparameter_mysql.conf, did you create a .my.cnf file in the Zabbix user's home directory to register account information for accessing the MySQL server?

    ex. /var/lib/zabbix/.my.cnf
    Code:
    [client]
    user = zabbix
    password = password

    Comment


    • mmmmay
      mmmmay commented
      Editing a comment
      Yes, I did but it still shows the same error after I restarted my agent and server a few times.
  • vinceskahan
    Junior Member
    • May 2019
    • 5

    #3
    You can get them the same way you got them intiially - extract them from the distribution package you used to install the software (the rpm or .deb or tgz file or however you installed it)

    Comment

    Working...