Skip to content

fiberbit/yoda-zabbix

 
 

Repository files navigation

yoda-zabbix

Zabbix monitoring scripts for Yoda

Deploying the monitoring scripts

The default method for deploying the monitoring scripts is the zabbix.yml playbook in the main Yoda repository.

Basic configuration

Use the zabbix_server parameter to configure the name of the Zabbix server, and zabbix_version to configure the branch of the yoda-zabbix scripts repository to use.

Authentication to Zabbix server

The Zabbix agent uses a pre-shared key (PSK) to authenticate to the Zabbix server. This key, along with its identity (i.e. its name) is generated when the Ansible playbook runs. The PSK and its identity have to be retrieved from the Zabbix agent configuration file and configured on the Zabbix server manually.

For additional information about using pre-shared keys, please refer to:

https://www.zabbix.com/documentation/3.4/manual/encryption/using_pre_shared_keys

Implementing additional checks

The monitoring scripts are currently organized by role.

A new item needs to be added to the user parameter file of its role: yoda_role.userparams.conf, where role should be one of system, portal, irodscommon, icat or resource.

Example from yoda_icat.userparams.conf:

UserParameter=yoda.delayedrules.count,sudo /etc/zabbix/zabbix_agentd.d/monitorDelayedRules.sh

Use sudo if the zabbix agent requires sudo permissions to execute the command, and add the command to the yoda-zabbix-role-sudoers file of the role.

Example:

zabbix ALL=NOPASSWD: /etc/zabbix/zabbix_agentd.d/monitorDelayedRules.sh

Ensure the yoda-zabbix-role-sudoers file has no syntax errors and has been tested. A syntax error can only be corrected with a re-install! Duplicate lines are not allowed.

Change log

See Change log.

License

This project is licensed under the GPLv3 license.

The full license can be found in LICENSE.

Releases

No releases published

Packages

No packages published

Languages

  • Shell 56.0%
  • Python 22.7%
  • R 21.3%