I'd like to be able to run a curl command from a local agent (web server running Zabbix agent), and have it alert if the curl returns an error. I want it to work similar to a web check.
I don't want to use a web check, unless it can be configured to run from the agent, instead of from the Zabbix server.
The reason is that each customer will have a different URL, and I want to define the URL in the Zabbix template, so that all servers with the template applied will check for:
curl https://${customer_name}.mydomain.com/myapplication
...where $customer_name is defined as an environment variable on each webserver.
Otherwise, I have to create a different web check for each customer, and that just sounds laborious and tedious.
Is there a way to do this in Zabbix?
I don't want to use a web check, unless it can be configured to run from the agent, instead of from the Zabbix server.
The reason is that each customer will have a different URL, and I want to define the URL in the Zabbix template, so that all servers with the template applied will check for:
curl https://${customer_name}.mydomain.com/myapplication
...where $customer_name is defined as an environment variable on each webserver.
Otherwise, I have to create a different web check for each customer, and that just sounds laborious and tedious.
Is there a way to do this in Zabbix?
Comment