The simple thing to do is to avoid extensive resource usage by your script by placing the script on the agent side. Zabbix provides this alternative method, and the script should instead be on server side and load the Zabbix server; it can be offloaded to the agent side with
UserParameter are defined on the agent configuration file. Once they are configured, they are treated like all the other Zabbix agent items by simply using the key specified in the parameter option. To define a user parameter, you need to add on the agent configuration file something like the following:
key must be unique and the
shell command represents the command to execute. The command can be specified ...