batica memo

【Zabbix】zabbixのホームディレクトリ

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/db/mysql_agent?at=refs/heads/release/5.0

「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

batica@初心者はここからわかりません。
batica memo
所有者限定モードのためこのボードには投稿できません
コメント
batica memo