{"id":18302327,"url":"https://github.com/outscale/zabbix-manual-housekeeper","last_synced_at":"2025-08-13T05:17:04.472Z","repository":{"id":94912769,"uuid":"598134354","full_name":"outscale/zabbix-manual-housekeeper","owner":"outscale","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-23T14:18:23.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-15T04:24:07.652Z","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/outscale.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":"2023-02-06T13:28:15.000Z","updated_at":"2023-02-20T13:49:33.000Z","dependencies_parsed_at":"2024-12-23T02:41:06.828Z","dependency_job_id":"ce1792a3-9500-45f7-a90d-2b52ede4448a","html_url":"https://github.com/outscale/zabbix-manual-housekeeper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fzabbix-manual-housekeeper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fzabbix-manual-housekeeper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fzabbix-manual-housekeeper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscale%2Fzabbix-manual-housekeeper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outscale","download_url":"https://codeload.github.com/outscale/zabbix-manual-housekeeper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018061,"owners_count":21034048,"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-05T15:19:21.118Z","updated_at":"2025-08-13T05:17:04.457Z","avatar_url":"https://github.com/outscale.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zabbix Manual Housekeeper :put_litter_in_its_place:\n[![Project Archived](https://docs.outscale.com/fr/userguide/_images/Project-Archived-red.svg)](https://docs.outscale.com/en/userguide/Open-Source-Projects.html)\n\n## Description\nZabbix Housekeeper delete old entries without a lines limits and can block others requests for huge monitoring platforms.\n\nZabbix Manual Housekeeper can delete old entries by batch of X lines.\n\nTested for Zabbix 4.4.10\n\n## Installation\nYou will need [Python 3.6+](https://www.python.org/) or later.\nIt is a good practice to create a dedicated virtualenv first. Even if it usually won't harm to install Python libraries directly on the system, better to contain dependencies in a virtual environment.\n\n- Clone this repository\n- Change directory\n```\ncd zabbix-manual-housekeeper\n```\n- Create a virtualenv\n```\npython3 -m venv .venv\nsource .venv/bin/activate\n```\n**You may need to install the MySQL development headers and libraries.**\n\n- Install Python packages\n```\npip3 install -r requirements.txt\n```\n\n## Usage\n\nFill the settings.py file with your informations about Zabbix database.\n\n```\npython3 manual_housekeeper.py --help\nUsage: manual_housekeeper.py [options]\n\nOptions:\n  -h, --help     show this help message and exit\n  --node=NODE    SQL node\n  --batch=BATCH  How many events to delete by request\n  --limit=LIMIT  SQL request limit\n  --month=MONTH  How many month to keep\n  --only-trends  Delete only trends/trends_uint.\n```\n\n| Option | Example |\n| ------ | ------ |\n| node | 127.0.0.1:3306 |\n| batch | 100 |\n| limit | 1000 |\n| month | 3 |\n| only-trends | N/A |\n\n## Contributing\n- If you think you've found a bug in the code or you have a question regarding the usage of this software, please reach out to us by opening an issue in this GitHub repository.\n- Contributions to this project are welcome: if you want to add a feature or a fix a bug, please do so by opening a Pull Request in this GitHub repository. In case of feature contribution, we kindly ask you to open an issue to discuss it beforehand.\n\n## License\n\u003e Copyright Outscale SAS\n\u003e\n\u003e BSD-3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscale%2Fzabbix-manual-housekeeper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutscale%2Fzabbix-manual-housekeeper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscale%2Fzabbix-manual-housekeeper/lists"}