Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

elasix

Zabbix Agent - Elasticsearch

Dependencies

Packages

  • ksh
  • jq
  • curl

Debian/Ubuntu

#~ sudo apt install ksh jq curl
#~

Red Hat

#~ sudo yum install ksh jq curl
#~

Deploy

Default variables:

NAME VALUE
ELASTIC_URL http://localhost:9022
ELASTIC_USER monitor
ELASTIC_PASS xxxxxxx
CACHE_DIR
CACHE_TTL

Note: this variables has to be saved in the config file (elasix.conf) in the same directory than the script.

Zabbix

Then you can run the deploy_zabbix script

#~ git clone https://github.com/sergiotocalini/elasix.git
#~ sudo ./elasix/deploy_zabbix.sh "<ELASTIC_URL>" \
        "<ELASTIC_USER>" "<ELASTIC_PASS>" "<CACHE_DIR>" "<CACHE_TTL>"
#~ sudo systemctl restart zabbix-agent

Note: the installation has to be executed on the zabbix agent host and you have to import the template on the zabbix web. The default installation directory is /etc/zabbix/scripts/agentd/elasix