I have a web server that is running the Zabbix Agent (3.4.x), reporting the normal stuff back to a Zabbix Server. The web server runs a number of websites based on common software (Drupal, Magento etc). I'd like to track their update status and version number in Zabbix.
I've created a bash script that checks the numbers, then pushes it to Zabbix using zabbix_sender
. However, I'm not sure of the best way to structure the host settings.
I was considering setting up each website as a "host" with a template with 2 items (version number, update status), then creating a bash script to push data into these keys.
The downside is I have to manually setup each new website as a host into Zabbix, then adjust my bash script to find the data on the webserver.
Is there a way to control the list of sites from Zabbix server, adding a new website, setting it's path somehow, then letting a script on the web server grab the data?