-
Book Overview & Buying
-
Table Of Contents
Mastering Zabbix (Second Edition)
By :
The simple thing to do is to avoid extensive resource usage by your script by placing the script on the agent side. Zabbix provides an alternative method, and the script should instead be on the server side and load the Zabbix server; it can be offloaded to the agent side with UserParameter.
UserParameter is defined on the agent configuration file. Once it is configured, it is treated in the same way as 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 something similar to the following to the agent configuration file:
UserParameter=<key>,<shell command>
Here, key must be unique and the shell command represents the command to execute. The command can be specified here inline and doesn't need to be a script, as shown in the following example:
UserParameter=process.number, ps -e |wc -l
In this example, the process.number key will retrieve the total number of processes on your server...
Change the font size
Change margin width
Change background colour