https://github.com/sergiotocalini/glusix
Zabbix Agent - Gluster
https://github.com/sergiotocalini/glusix
gluster monitoring shell shell-script zabbix zabbix-templates
Last synced: 8 months ago
JSON representation
Zabbix Agent - Gluster
- Host: GitHub
- URL: https://github.com/sergiotocalini/glusix
- Owner: sergiotocalini
- License: gpl-3.0
- Created: 2018-03-22T09:24:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-28T19:46:31.000Z (over 6 years ago)
- Last Synced: 2025-10-14T06:39:53.366Z (8 months ago)
- Topics: gluster, monitoring, shell, shell-script, zabbix, zabbix-templates
- Language: Shell
- Size: 36.1 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# glusix
Zabbix Agent - Gluster
# Dependencies
## Packages
* ksh
* bc
* awk
### Debian/Ubuntu
```bash
~# sudo apt install ksh bc awk
~#
```
### Red Hat
```bash
~# 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
```bash
~# cat /etc/sudoers.d/user_zabbix
Defaults:zabbix !syslog
Defaults:zabbix !requiretty
zabbix ALL=(ALL) NOPASSWD:ALL
~#
```
2. Limited acccess to run command with sudo
```bash
~# 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.
```bash
~# 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.*