「Template DB MySQL by Zabbix agent」を使うために設定を行っている。
Create .my.cnf in the home directory of Zabbix agent for Linux (/var/lib/zabbix by default ) or my.cnf in c:\ for Windows. The file must have three strings:
デフォルトから変更した記憶が無いが、ホームディレクトリを確認する。
[root]
$ cat /etc/passwd | grep zabbix
zabbix:x:988:984:Zabbix Monitoring System:/var/lib/zabbix:/sbin/nologin
ホームディレクトリが無い。
[root]
$ ls -l /var/lib/zabbix
ls: '/var/lib/zabbix' にアクセスできません: そのようなファイルやディレクトリはありません
https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/403436-no-folder-var-lib-zabbix
Create the directory /var/lib/zabbix yourself. Permissions should be owned by the zabbix user and read/write by the zabbix user.
自分で作成すればよいらしい。
[root]
$ mkdir /var/lib/zabbix
$ chown zabbix:zabbix /var/lib/zabbix