Hello,
I have developed a little script to integrate (mainly) crontab scripts into Zabbix.
It basically helps detecting scripts that fail silently and could potentially allow you to remove hundreds of emails from your mailbox
This is an example of how it can be used.
The script will report on the exit status and output back to Zabbix, and raise a trigger if the exit is non 0.
Obviuosly you can add more triggers attached to exit status and output.
You will find the script here
It is written in python and uses zabbix_api and zbxsend.
Should work in Python > 2.6
Please feel free to give me your feedback/suggestions.
I have developed a little script to integrate (mainly) crontab scripts into Zabbix.
It basically helps detecting scripts that fail silently and could potentially allow you to remove hundreds of emails from your mailbox

This is an example of how it can be used.
Code:
crontab -l 00 05 * * * zabbify "/usr/bin/mysqldump --databases zabbix --single-transaction | /bin/gzip > /opt/backups/mysql/zabbix/zabbix.sql.gz"
Obviuosly you can add more triggers attached to exit status and output.
You will find the script here
It is written in python and uses zabbix_api and zbxsend.
Should work in Python > 2.6
Please feel free to give me your feedback/suggestions.
, I wanted to let you know that I have improved the zabbify script.
Comment