This module enables a Drupal website to send statistics remote Zabbix server using a locally installed Zabbix client. For more information on Zabbix, see http://www.zabbix.org
The Zabbix server can then be configured to monitor the incoming statistics and trigger alerts according to your own specific requirements.
Gain a deeper understanding of your Drupal performance and find those transient problems before they become major issues.
An example Zabbix XML Drupal items is included for your Zabbix server. Refer to the zabbix_items.xml
in the example_zabbix_server_configuration
directory. This is an export of example_items from Zabbix Server 1.8.2.
Sending custom Zabbix statistics from other Drupal modules
If you have other Drupal modules that need to send statistics to a Zabbix server then you can accomplish this one of two ways:
1. Calling zabbix_send()
directly:
if (module_exists('zabbix')) {
$key='drupal.customstatistic';
$value='100';
zabbix_send($key, $value);
}
2. Or implementing a zabbix_items function in your module, eg. function mymodule_zabbix_items()
. See the existing zabbix_zabbix_items()
function as an example.
Installation
See the included README.txt
for installation, Zabbix items and Zabbix server configuration instructions.