Skip to content

sergiotocalini/glusix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glusix

Zabbix Agent - Gluster

Dependencies

Packages

  • ksh
  • bc
  • awk

Debian/Ubuntu

~# sudo apt install ksh bc awk
~#

Red Hat

~# sudo yum install ksh bc awk
~#

Deploy

The deploy script is not intended to advise which approach you should implemented nor deploy the sudoers configuration but the user that will run the script needs be running with sudo privileges.

There are two options to setting up sudoers for the user:

  1. Provided sudo all
~# cat /etc/sudoers.d/user_zabbix
Defaults:zabbix !syslog
Defaults:zabbix !requiretty

zabbix	ALL=(ALL)  NOPASSWD:ALL
~#
  1. Limited acccess to run command with sudo
~# cat /etc/sudoers.d/user_zabbix
Defaults:zabbix !syslog
Defaults:zabbix !requiretty

zabbix ALL=(ALL) NOPASSWD: /usr/sbin/glusterd *
zabbix ALL=(ALL) NOPASSWD: /usr/bin/gluster *
~#

Zabbix

Please ensure that the zabbix user has the right permissions before continue with the installation.

~# git clone https://github.com/sergiotocalini/glusix.git
~# sudo ./glusix/deploy_zabbix.sh
~# 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.