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,

SELECT
hosts.host AS hostname,
items.description AS item,
items.key_ AS "key"
FROM
items
RIGHT JOIN
hosts ON items.hostid=hosts.hostid
WHERE
items.status = 3;

Download

  zabbix-unsupported-status.sh (1.3 KiB, 76 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.

email example

Download

  zabbix-status.sh (2.1 KiB, 48 hits)