This bash script creates checksum files for each subdirectory and the files within.
If the script is run, and there are no changes, then there is no output. This makes it safe to put into a cronjob without fear of getting spammed.
Output can be forced with a “-d” flag.
Requires “md5sum” package to compute checksums.
md5-all-dir.sh [-d] <directory>
md5-all-dir.sh (4.1 KiB, 1,669 hits)
Following on from the zabbix status script, I have put togethor another script to list any unsupported items on agents.
For an item to go unsupported, it usually means something is wrong with the agent, so I add this script to /etc/cron.hourly.
The SQL query to get the list of unsupported items is,
hosts.host AS hostname,
items.description AS item,
items.key_ AS "key"
hosts ON items.hostid=hosts.hostid
items.status = 3;
zabbix-unsupported-status.sh (1.3 KiB, 2,037 hits)
With quite a few flapping triggers on Zabbix I wanted to have a daily summary of active triggers. Following a few posts on the Zabbix forums I made a quick and dirty bash script.
zabbix-status.sh (2.1 KiB, 2,191 hits)