This directory contains a sample module, which extends functionality of Zabbix Agent.
This module is production ready.
$ git clone https://github.com/cnshawncao/zabbix-module-ipvs.git
$ cp -r zabbix-module-ipvs zabbix-x.x.x/src/modules/ # zabbix-x.x.x is zabbix version
-
run 'make' to build it. It should produce lvs.so.
-
copy lvs.so to the module directory, like LoadModulePath=/etc/zabbix/modules
-
change config file add line : LoadModule=lvs.so
-
restart zabbix_agent daemon
-
import the zabbix template zbx_template_ipvs_active.xml
key: ipvs.stats[cps]
key: ipvs.stats[inpps]
key: ipvs.stats[outpps]
key: ipvs.stats[inbps]
key: ipvs.stats[outbps]