{"id":19402364,"url":"https://github.com/robertdebock/ansible-role-zabbix","last_synced_at":"2026-04-18T10:34:31.106Z","repository":{"id":90625996,"uuid":"118034177","full_name":"robertdebock/ansible-role-zabbix","owner":"robertdebock","description":"Install and configure Zabbix on your system.","archived":false,"fork":false,"pushed_at":"2019-12-12T05:37:21.000Z","size":255,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-02T08:31:27.345Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","zabbix","zabbix-agent","zabbix-frontend","zabbix-proxy","zabbix-sender","zabbix-server","zabbix-web"],"latest_commit_sha":null,"homepage":"https://robertdebock.nl/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robertdebock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-18T20:26:05.000Z","updated_at":"2022-06-18T05:55:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"b0a2d8f1-b600-4076-a73a-1a9541d5ad44","html_url":"https://github.com/robertdebock/ansible-role-zabbix","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/robertdebock/ansible-role-zabbix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-zabbix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-zabbix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-zabbix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-zabbix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdebock","download_url":"https://codeload.github.com/robertdebock/ansible-role-zabbix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdebock%2Fansible-role-zabbix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","zabbix","zabbix-agent","zabbix-frontend","zabbix-proxy","zabbix-sender","zabbix-server","zabbix-web"],"created_at":"2024-11-10T11:23:21.821Z","updated_at":"2026-04-18T10:34:31.090Z","avatar_url":"https://github.com/robertdebock.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"zabbix\n=========\n\n\u003cimg src=\"https://docs.ansible.com/ansible-tower/3.2.4/html_ja/installandreference/_static/images/logo_invert.png\" width=\"10%\" height=\"10%\" alt=\"Ansible logo\" align=\"right\"/\u003e\n\u003ca href=\"https://travis-ci.org/robertdebock/ansible-role-zabbix\"\u003e \u003cimg src=\"https://travis-ci.org/robertdebock/ansible-role-zabbix.svg?branch=master\" alt=\"Build status\"/\u003e\u003c/a\u003e \u003cimg src=\"https://img.shields.io/ansible/role/d/23321\"/\u003e \u003cimg src=\"https://img.shields.io/ansible/quality/23321\"/\u003e\n\nInstall and configure Zabbix on your system.\n\nExample Playbook\n----------------\n\nThis example is taken from `molecule/resources/playbook.yml` and is tested on each push, pull request and release.\n```yaml\n---\n- name: Converge\n  hosts: all\n  become: yes\n  gather_facts: yes\n\n  vars:\n    zabbix_server: present\n    zabbix_web: present\n\n  roles:\n    - robertdebock.httpd\n    - robertdebock.mysql\n    - robertdebock.zabbix\n```\n\nThe machine you are running this on, may need to be prepared, I use this playbook to ensure everything is in place to let the role work.\n```yaml\n---\n- name: Prepare\n  hosts: all\n  become: yes\n  gather_facts: no\n\n\n  roles:\n    - role: robertdebock.bootstrap\n    - role: robertdebock.epel\n    - role: robertdebock.python_pip\n    - role: robertdebock.remi\n      remi_enabled_repositories:\n        - php73\n    - role: robertdebock.php\n    - role: robertdebock.mysql\n      mysql_databases:\n        - name: zabbix\n          encoding: utf8\n          collation: utf8_bin\n      mysql_users:\n        - name: zabbix\n          password: zabbix\n          priv: \"zabbix.*:ALL\"\n    - role: robertdebock.httpd\n```\n\n\nAlso see a [full explanation and example](https://robertdebock.nl/how-to-use-these-roles.html) on how to use these roles.\n\nRole Variables\n--------------\n\nThese variables are set in `defaults/main.yml`:\n```yaml\n---\n# defaults file for zabbix\n\n# The \"zabbix_version_major\" are two numerical values, sparated by a period.\nzabbix_version_major: 4.4\n\nzabbix_version_minor: 1\n# The \"zabbix_version\" is the whole version of Zabbix.\nzabbix_version: \"{{ zabbix_version_major }}.{{ zabbix_version_minor }}-1\"\n\n# Zabbix Agent settings.\n# \"zabbix_agent\" can be \"present\", \"absent\" or unset. (unset defaults to \"present\")\nzabbix_agent: present\n# Values used in the zabbix_agentd.conf template.\nzabbix_agent_server_address: 127.0.0.1\nzabbix_agent_listen_port: 10050\nzabbix_agent_server_active_address: 127.0.0.1\n\n# \"zabbix_get\" can be \"present\", \"absent\" or unset. (unset defaults to \"absent\")\nzabbix_get: absent\n\n# \"zabbix_java_gateway\" can be \"present\", \"absent\" or unset. (unset defaults to \"absent\")\nzabbix_java_gateway: absent\n\n# \"zabbix_server\" can be \"present\", \"absent\" or unset. (unset defaults to \"absent\")\nzabbix_server: absent\n# \"zabbix_server_type\" can be \"mysql\" \"pgsql\" or unset. (unset defaults to \"mysql\")\nzabbix_server_type: mysql\n# The connection to MySQL or PostgreSQL must be specified.\nzabbix_server_database_host: localhost\nzabbix_server_database_port: 3306\nzabbix_server_database_name: zabbix\nzabbix_server_database_user: zabbix\nzabbix_server_database_pass: zabbix\n\n# \"zabbix_server\" can be \"present\", \"absent\" or unset. (unset defaults to \"absent\")\nzabbix_sender: absent\n\n# \"zabbix_proxy\" can be \"present\", \"absent\" or unset. (unset defaults to \"absent\")\nzabbix_proxy: absent\n# \"zabbix_proxy_type\" can be \"mysql\" \"pgsql\" or unset. (unset defaults to \"mysql\")\nzabbix_proxy_type: mysql\n\n# \"zabbix_proxy\" can be \"present\", \"absent\" or unset. (unset defaults to \"absent\")\nzabbix_web: absent\n# \"zabbix_web_type\" can be \"mysql\" \"pgsql\" or unset. (unset defaults to \"mysql\")\nzabbix_web_type: mysql\n\n# The Zabbix server to connect to.\nzabbix_web_server: \"https://localhost/zabbix\"\nzabbix_web_server_port: 10051\nzabbix_web_server_name: zabbix\n\nzabbix_web_username: Admin\nzabbix_web_password: zabbix\nzabbix_validate_certs: no\n\n# You can provision Zabbix groups.\n# Most options map directly to the documentation:\n# https://docs.ansible.com/ansible/latest/modules/zabbix_group_module.html\nzabbix_web_groups:\n  - name: Linux servers\n\n# Add hosts to Zabbix.\n# Most options map directly to the documentation:\n# https://docs.ansible.com/ansible/latest/modules/zabbix_host_module.html\nzabbix_web_hosts:\n  - name: Example server 1\n    interface_ip: 192.168.127.127\n    interface_dns: server1.example.com\n    visible_name: Example server 1 name\n    description: Example server 1 description\n    groups:\n      - Linux servers\n    link_templates:\n      - Template OS Linux\n```\n\nRequirements\n------------\n\n- Access to a repository containing packages, likely on the internet.\n- A recent version of Ansible. (Tests run on the current, previous and next release of Ansible.)\n\nThe following roles can be installed to ensure all requirements are met, using `ansible-galaxy install -r requirements.yml`:\n\n```yaml\n---\n- robertdebock.bootstrap\n- robertdebock.epel\n- robertdebock.mysql\n- robertdebock.php\n- robertdebock.python_pip\n- robertdebock.httpd\n- robertdebock.remi\n\n```\n\nContext\n-------\n\nThis role is a part of many compatible roles. Have a look at [the documentation of these roles](https://robertdebock.nl/) for further information.\n\nHere is an overview of related roles:\n![dependencies](https://raw.githubusercontent.com/robertdebock/drawings/artifacts/zabbix.png \"Dependency\")\n\n\nCompatibility\n-------------\n\nThis role has been tested on these [container images](https://hub.docker.com/):\n\n|container|tags|\n|---------|----|\n|el|7|\n|ubuntu|trusty, xenial, artful|\n\nThe minimum version of Ansible required is 2.8 but tests have been done to:\n\n- The previous version, on version lower.\n- The current version.\n- The development version.\n\nExceptions\n----------\n\nSome variarations of the build matrix do not work. These are the variations and reasons why the build won't work:\n\n| variation                 | reason                 |\n|---------------------------|------------------------|\n| Alpine | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| amazonlinux | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| Archlinux | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| CentOS 8 | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| Debian | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| Fedora | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| openSUSE | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n| Ubuntu rolling | Zabbix has [limited OS support](https://www.zabbix.com/download). |\n\nIncluded version(s)\n-------------------\n\nThis role [refers to a version](https://github.com/robertdebock/ansible-role-zabbix/blob/master/defaults/main.yml) released by Zabbix. Check the released version(s) here:\n- [Zabbix](https://www.zabbix.com/download).\n\nThis version reference means a role may get outdated. Monthly tests occur to see if [bit-rot](https://en.wikipedia.org/wiki/Software_rot) occured. If you however find a problem, please create an issue, I'll get on it as soon as possible.\nTesting\n-------\n\n[Unit tests](https://travis-ci.org/robertdebock/ansible-role-zabbix) are done on every commit, pull request, release and periodically.\n\nIf you find issues, please register them in [GitHub](https://github.com/robertdebock/ansible-role-zabbix/issues)\n\nTesting is done using [Tox](https://tox.readthedocs.io/en/latest/) and [Molecule](https://github.com/ansible/molecule):\n\n[Tox](https://tox.readthedocs.io/en/latest/) tests multiple ansible versions.\n[Molecule](https://github.com/ansible/molecule) tests multiple distributions.\n\nTo test using the defaults (any installed ansible version, namespace: `robertdebock`, image: `fedora`, tag: `latest`):\n\n```\nmolecule test\n\n# Or select a specific image:\nimage=ubuntu molecule test\n# Or select a specific image and a specific tag:\nimage=\"debian\" tag=\"stable\" tox\n```\n\nOr you can test multiple versions of Ansible, and select images:\nTox allows multiple versions of Ansible to be tested. To run the default (namespace: `robertdebock`, image: `fedora`, tag: `latest`) tests:\n\n```\ntox\n\n# To run CentOS (namespace: `robertdebock`, tag: `latest`)\nimage=\"centos\" tox\n# Or customize more:\nimage=\"debian\" tag=\"stable\" tox\n```\n\nLicense\n-------\n\nApache-2.0\n\n\nAuthor Information\n------------------\n\n[Robert de Bock](https://robertdebock.nl/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-zabbix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdebock%2Fansible-role-zabbix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdebock%2Fansible-role-zabbix/lists"}