Scripts and template to monitor samba mount points in Zabbix.
This project is composed by two shell scripts, a Zabbix template and a zabbix-agent configuration file:
cifs
typemount
command, and checks if every mount point in fstab is mountedDownload the necessary files or clone this project anywhere zabbix user can access.
Put zabbix-agentd.d/sambaMounts.conf
in zabbix agent directory, normally /etc/zabbix/zabbix-agentd.d/
. Edit this file if you don’t use the default /var/lib/zabbix
folder for shell scripts.
Put smb_check.sh
and discover_smb.sh
in /var/lib/zabbix
folder (or the one you defined in the previous file).
Now restart the Zabbix agent service.
Import template/samba_mount_template.xml
in Zabbix and assign it to your desired hosts.
Feel free to send bug reports and feature requests. If you are using this solution in production, please tell me to know it’s being useful.