This tutorial provides step-by-step instructions on how to extend the functionality of Áú»¢¶Ä²© agent with the use of a user parameter.
Write a script or command line to retrieve required parameter.
For example, we may write the following command in order to get total number of queries executed by a MySQL server:
When executed, the command returns total number of SQL queries.
Add this command to agent's configuration file.
Add the command to zabbix_agentd.conf:
mysql.questions is an unique identifier. It can be any string, for example, queries.
Test this parameter by using zabbix_get utility.
Restart Áú»¢¶Ä²© agent.
Agent will reload configuration file.
Add new item for monitoring.
Add new item with Key=mysql.questions to the monitored host. Type of the item must be either Áú»¢¶Ä²© Agent or Áú»¢¶Ä²© Agent (active).
Be aware that type of returned values must be set correctly on Áú»¢¶Ä²© server. Otherwise Áú»¢¶Ä²© won't accept them.