3 ms·
I've written custom bash scripts that Zabbix runs and alerts based on their output. For example, domain expiry - I have a script that Zabbix runs once a day th
by corobo 8y ago
I've written custom bash scripts that Zabbix runs and alerts based on their output.
For example, domain expiry - I have a script that Zabbix runs once a day that does a whois and grabs the expiry date for the domain in question. Convert that to a unix string and subtract the current date on it. Echo that from the script.
In Zabbix we can now alert if that item's value is <30d. Similar for SSL certificates and the web monitoring stuff is built in
Edit: Oh actually on the whois, I remember it was a huge pain in the butt getting the expiry for a variety of different domains - I now use https://jsonwhoisapi.com/ https://jsonwhoisapi.com/ to get the whois info