Monitoraggio ZFS in Zabbix: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 20: | Line 20: | ||
* Importare il template ZFSonLinux_template.xml suls erver ed assegnare il template all'host | * Importare il template ZFSonLinux_template.xml suls erver ed assegnare il template all'host | ||
ZFSonLinux | ZFSonLinux | ||
* Definire la Regex in | |||
Administration / General/ Regular Expression | |||
ZFS Fileset | |||
Character string included / | |||
Revision as of 17:28, 12 December 2018
- Sul client, scaricare il file e scompattarlo
cd /tmp && \ wget "https://share.zabbix.com/index.php?option=com_mtree&task=att_download&link_id=350&cf_id=38" -O ZFSonLinux.zip && \ unzip ZFSonLinux.zip && \ cd ZFSonLinux
- Installare i files
mv ZFSonLinux_sudo_rules /etc/sudoers.d/ mv ZFSonLinux_userparameters.conf /etc/zabbix/zabbix_agentd.d/
- Verificare se i comandi funzionano (DATA è il nome di un pool zfs presente):
sudo -u zabbix /usr/bin/sudo /sbin/zpool list -H -o health DATA
- Riavviare zabbix_agent
systemctl restart zabbix-agent.service
- Dal server o dal prozy zabbix, verificare che le keys siano supportate:
zabbix_get -s 192.168.1.10 -k zfs.zpool.health[DATA]
- Importare il template ZFSonLinux_template.xml suls erver ed assegnare il template all'host
ZFSonLinux
- Definire la Regex in
Administration / General/ Regular Expression
ZFS Fileset Character string included /