{"id":18717113,"url":"https://github.com/nicerath/zabbix-linuxha","last_synced_at":"2025-11-10T12:30:15.325Z","repository":{"id":239937445,"uuid":"801002706","full_name":"NiceRath/zabbix-linuxha","owner":"NiceRath","description":"Zabbix Template and Script to Monitor LinuxHA (CoroSync, Pacemaker, CRM)","archived":false,"fork":false,"pushed_at":"2024-05-15T14:54:22.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T10:36:20.801Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NiceRath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-15T12:12:51.000Z","updated_at":"2024-05-15T14:54:25.000Z","dependencies_parsed_at":"2024-05-16T02:46:54.464Z","dependency_job_id":"99140608-643a-4668-8383-e4bb9a691614","html_url":"https://github.com/NiceRath/zabbix-linuxha","commit_stats":null,"previous_names":["nicerath/zabbix-linuxha"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceRath%2Fzabbix-linuxha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceRath%2Fzabbix-linuxha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceRath%2Fzabbix-linuxha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NiceRath%2Fzabbix-linuxha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NiceRath","download_url":"https://codeload.github.com/NiceRath/zabbix-linuxha/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239581796,"owners_count":19662958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-07T13:14:59.671Z","updated_at":"2025-11-10T12:30:15.236Z","avatar_url":"https://github.com/NiceRath.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zabbix LinuxHA Monitoring\n\nTested on Debian.\n\n## Install\n\n* Copy the script `linuxha.py` to the target system (*executable by the zabbix user*)\n* Copy the userparameter to the target system\n* Add the `sudoers` privileges via `visudo -f /etc/sudoers.d/zabbix_linuxha`\n* Restart the Zabbix Agent service\n* Import the Template on your Zabbix Server\n\n----\n\n## Testing\n\nOn the target system:\n\n```bash\nroot@SRV1:~$ su zabbix --login --shell /bin/bash\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py discover\n\u003e {\"data\": [{\"{#LINHA_RES}\": \"resIP\"}, {\"{#LINHA_RES}\": \"resService\"}]}\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py members\n\u003e 2\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py members_active\n\u003e 2\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py votes\n\u003e 1\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py quorum\n\u003e 1\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py resource resIP\n\u003e 1\n\nzabbix@SRV1:~$ python3 /usr/local/bin/zabbix/linuxha.py resource_active resIP\n\u003e 1\n```\n\n----\n\n## Usage\n\nThe script expects all resources to have a name that starts with a prefix. By default `res`. You can change it in the script.\n\n----\n\n## Items\n\n* Count of Members in the Cluster\n* Count of active Members\n* Got all expected quorum votes\n* Has quorum\n* Resource Discovery\n  * Resource is active on any node\n  * Resource is active on the current node\n\n### Triggers\n\n* Not all Members online (*avg*)\n* No quorum (*high*)\n* Missing quorum votes (*avg*)\n* Resource Discovery\n  * Resource offline (inactive on all nodes) (*disaster*)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicerath%2Fzabbix-linuxha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicerath%2Fzabbix-linuxha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicerath%2Fzabbix-linuxha/lists"}