Table of Contents

Zabbix

rights to check free space

active check "vfs.fs.inode[/root/.cache/duplicity,pfree]" is not supported: Cannot obtain filesystem information: [13] Permission denied
active check "vfs.fs.size[/home/git-data/repositories/+gitaly/PackObjectsCache,pused]" is not supported: Cannot obtain filesystem information: [13] Permission denied

Investigate access right:

sudo -u zabbix /bin/bash

Solution:

apt install acl
setfacl -m u:zabbix:x /root
setfacl -m u:zabbix:x /root/.cache
 
setfacl -m u:zabbix:x /home/git-data
setfacl -m u:zabbix:x /home/git-data/repositories
setfacl -m u:zabbix:x /home/git-data/repositories/+gitaly

NOTE: gitlab-ctl reconfigure will change permissions to default.

password recovery

USE zabbix;
UPDATE users SET passwd=md5('newpassword') WHERE alias='Admin';

Enable problem reporting

Enable autoregistration

Server=127.0.0.1
ServerActive=127.0.0.1
#Hostname=Zabbix Server
HostnameItem=system.hostname

OpenWRT template

https://openwrt.org/docs/guide-user/services/network_monitoring/zabbix

LXC/container

https://www.zabbix.com/integrations/lxc