{"id":16615659,"url":"https://github.com/pschmitt/zabbix-template-reboot-required","last_synced_at":"2025-10-26T01:38:05.199Z","repository":{"id":141970516,"uuid":"76019694","full_name":"pschmitt/zabbix-template-reboot-required","owner":"pschmitt","description":"Zabbix template to determine whether a host needs to be rebooted","archived":false,"fork":false,"pushed_at":"2020-03-10T21:00:08.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T15:36:36.770Z","etag":null,"topics":["kernel","reboot","restart","restart-server","services","update","updates","zabbix","zabbix-templates"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pschmitt.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["pschmitt"],"custom":["https://www.paypal.com/paypalme/pppschmitt"]}},"created_at":"2016-12-09T09:09:06.000Z","updated_at":"2021-07-21T23:24:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"d00b6642-a71e-4896-aac0-18995317d954","html_url":"https://github.com/pschmitt/zabbix-template-reboot-required","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pschmitt/zabbix-template-reboot-required","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-reboot-required","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-reboot-required/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-reboot-required/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-reboot-required/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschmitt","download_url":"https://codeload.github.com/pschmitt/zabbix-template-reboot-required/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-reboot-required/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281047794,"owners_count":26435124,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"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":["kernel","reboot","restart","restart-server","services","update","updates","zabbix","zabbix-templates"],"created_at":"2024-10-12T02:10:16.369Z","updated_at":"2025-10-26T01:38:05.194Z","avatar_url":"https://github.com/pschmitt.png","language":"Shell","funding_links":["https://github.com/sponsors/pschmitt","https://www.paypal.com/paypalme/pppschmitt"],"categories":[],"sub_categories":[],"readme":"# Installation\n\n## Agent setup\n\n### Docker\n\n1. sudo\n\nThis template requires `sudo` to be available inside the zabbix-agent container.\n\nYou can bind-mount the supplied sudoers config with:\n- `-v ./sudoers/alias-chroot.docker:/etc/sudoers.d/alias-chroot:ro`.\n- `-v ./sudoers/reboot-required.docker:/etc/sudoers.d/reboot-required:ro`.\n\nBear in mind that this file should be owned by root and its permissions set to `0600`.\n\n2. You obviously also need to make the script available as well: `-v ./zbx-reboot-required.sh:/zabbix/bin/zbx-reboot-required.sh`\n\n3. Don't forget the config: `-v ./zabbix_agentd.d/reboot-required.docker.conf:/etc/zabbix/zabbix_agentd.d/reboot-required.conf:ro`\n\n4. To be able to chroot inside the host you need mount the rootfs like so: `-v /:/rootfs:ro`.\n\n### OpenWRT\n\n1. You need to install `sudo`:\n\n```\nopkg update \u0026\u0026 opkg install sudo\n```\n\n2. Copy `sudoers.d/reboot-required.openwrt` to `/etc/sudoers.d/reboot-required`\n\n3. Copy `zbx-reboot-required.sh` to `/etc/zabbix_zabbix_agentd.d/bin/zbx-reboot-required.sh`\n\n4. Copy `zabbix_agentd.d/reboot-required.openwrt.conf` to `/etc/zabbix_zabbix_agentd.d/zbx-reboot-required.conf`\n\n5. Restart the agent: `/etc/init.d/zabbix_agentd restart`\n\n## Zabbix Server setup\n\n1. Import the template `zabbix_template_reboot_required.xml`\n\n2. Apply it to your hosts\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fzabbix-template-reboot-required","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschmitt%2Fzabbix-template-reboot-required","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fzabbix-template-reboot-required/lists"}