|
|
| |
Documentation / ZABBIX Manual v1.0 (old) / Configuration / Advanced / |
|
|
|
|
|
Extending ZABBIX |
Extending ZABBIX agents
Using configuration parameter UserParameter can easily extend ZABBIX agents. For example, number of emails waiting for delivery may be defined as:
UserParameter: mailq,echo /var/spool/mail/* | wc -w
See misc/conf/zabbix_agentd.conf for already predefined (but commented) parameters. The used command must return one line. This line is sent back to the ZABBIX server unchanged.
Scripts used for user parameters must have exit status '0' and must not return empty result, otherwise parameters will be treated as unsupported.
Also, the scripts must be as quick as possible. The scripts must not run longer than 0.5 second, otherwise ZABBIX server will block on retrieval on the parameter, thus reducing overall performance. After three consequitive timeouts status of the parameter will be set to unsupported.
|
|
|
|
| | © 2001-2008 by ZABBIX SIA. All rights reserved. Hosting is kindly provided by Clearcut Networks. | |