I am trying to enable or disable when there is a certain trigger. Can anyone give me a hint to do this? I know that I can use "action" to run certain command or script when there is a trigger triggered. I barely have an idea where to start to do this.
From the Action - Operations documentation:
With remote commands you can define that a certain pre-defined command is automatically executed on the monitored host upon some condition.
And:
Configuring an action for remote commands is similar to that for sending a message, the only difference being that Zabbix will execute a command instead of sending a message.
Remote commands can be executed by Zabbix server, proxy or agent. Remote commands on Zabbix agent can be executed directly by Zabbix server or through Zabbix proxy.
Also, there are examples in the page.