blind-oracle / zabbix-zfs

Zabbix template & script to monitor ZFS on Linux
Mozilla Public License 2.0
30 stars 7 forks source link

Make zfs.py executable #6

Open kocio-pl opened 2 years ago

kocio-pl commented 2 years ago

Hi, Igor, thanks a lot for this tool!

My only problem is with Python script not being executable by default, which made monitoring not active until I made simple:

chmod +x /etc/zabbix/scripts/zfs.py

Could you fix it in the repo?

maufimauf commented 2 years ago

Out of security concern you should go with this:

chmod 750 -R /etc/zabbix/scripts/ && \
chown root:zabbix -R /etc/zabbix/scripts/ && \
chmod 640 /etc/zabbix/zabbix_agentd.d/zfs.conf && \
chown root:zabbix /etc/zabbix/zabbix_agentd.d/zfs.conf