{"id":16615664,"url":"https://github.com/pschmitt/zabbix-template-speedtest","last_synced_at":"2025-03-21T14:31:23.228Z","repository":{"id":55502774,"uuid":"71254936","full_name":"pschmitt/zabbix-template-speedtest","owner":"pschmitt","description":"Speedtest template for zabbix","archived":false,"fork":false,"pushed_at":"2020-12-26T15:45:10.000Z","size":7114,"stargazers_count":32,"open_issues_count":6,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-01T07:06:33.306Z","etag":null,"topics":["bandwidth","bandwidth-monitor","monitoring","speedtest","speedtest-template","zabbix","zabbix-speedtest"],"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}},"created_at":"2016-10-18T14:08:38.000Z","updated_at":"2025-01-20T21:04:05.000Z","dependencies_parsed_at":"2022-08-15T01:51:02.345Z","dependency_job_id":null,"html_url":"https://github.com/pschmitt/zabbix-template-speedtest","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/pschmitt%2Fzabbix-template-speedtest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-speedtest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-speedtest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschmitt%2Fzabbix-template-speedtest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschmitt","download_url":"https://codeload.github.com/pschmitt/zabbix-template-speedtest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244141468,"owners_count":20404837,"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":["bandwidth","bandwidth-monitor","monitoring","speedtest","speedtest-template","zabbix","zabbix-speedtest"],"created_at":"2024-10-12T02:10:17.120Z","updated_at":"2025-03-21T14:31:22.946Z","avatar_url":"https://github.com/pschmitt.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zabbix Speedtest template\n\n## Dependencies\n\n- [bc](https://www.gnu.org/software/bc/manual/html_mono/bc.html)\n- [jq](https://stedolan.github.io/jq/)\n- [speedtest-cli](https://www.speedtest.net/apps/cli)\n\n## ⚠️ Warning\n\nYou need to install [Ookla's version of speedtest-cli](https://www.speedtest.net/apps/cli) and *NOT* the unofficial python tool.\n\n## Installation (Generic x86_64)\n\n- Install [speedtest-cli](https://www.speedtest.net/apps/cli)\n- Create `/etc/zabbix/bin`: `mkdir -p /etc/zabbix/bin`\n- Copy `zbx-speedtest.sh` to `/etc/zabbix/bin`\n- Make it executable: `chmod +x /etc/zabbix/bin/zbx-speedtest.sh`\n- Install the systemd service and timer: `cp systemd/{zabbix-speedtest.service,zabbix-speedtest.timer} /etc/systemd/system`\n- Start and enable the timer: `systemctl enable --now zabbix-speedtest.timer`\n- Import the zabbix-agent config: `cp zabbix_agentd.d/speedtest.conf /etc/zabbix/zabbix_agentd.conf.d`\n- Restart zabbix-agent: `systemctl restart zabbix-agent`\n- Import `template_speedtest.xml` on your Zabbix server\n\n## Installation (Debian/Ubuntu)\n\n- Install [speedtest-cli](https://www.speedtest.net/apps/cli)\n- Create `/etc/zabbix/bin`: `mkdir -p /etc/zabbix/bin`\n- Copy `zbx-speedtest-debian.sh` to `/etc/zabbix/bin/zbx-speedtest.sh`\n- Make it executable: `chmod +x /etc/zabbix/bin/zbx-speedtest.sh`\n- Install the systemd service and timer: `cp systemd/{zabbix-speedtest-debian.service,zabbix-speedtest.timer} /etc/systemd/system; mv /etc/systemd/system/zabbix-speedtest{-debian,}.service`\n- Start and enable the timer: `systemctl enable --now zabbix-speedtest.timer`\n- Import the zabbix-agent config: `cp zabbix_agentd.d/speedtest.conf /etc/zabbix/zabbix_agentd.conf.d`\n- Restart zabbix-agent: `systemctl restart zabbix-agent`\n- Import `template_speedtest.xml` on your Zabbix server\n\n## Installation (OpenWRT)\n\n- Install [speedtest-cli](https://www.speedtest.net/apps/cli) by placing the binary in your `$PATH`\n- Copy `zbx-speedtest.sh` to `/etc/zabbix_agentd.conf.d/bin`\n- Make it executable: `chmod +x /etc/zabbix_agentd.conf.d/bin/zbx-speedtest.sh`\n- Import the zabbix-agent config: `cp zabbix_agentd.d/speedtest.openwrt.conf /etc/zabbix_agentd.conf.d`\n- Restart zabbix-agent: `/etc/init.d/zabbix-agentd restart`\n- Install the cron job: `crontab -e` -\u003e Add the content of `systemd/speedtest.crontab`\n- Import `template_speedtest.xml` on your Zabbix server\n\n## Installation (Docker)\n\n###  Speedtest in a container\n\nCheck out pschmitt/speedtest:cron on [Docker Hub](https://hub.docker.com/repository/docker/pschmitt/speedtest/general)\n\n### Zabbix-agent \n\n- You must mount `zbx-speedtest.sh` inside your zabbix-agent container\n- It also needs to have access to speedtest data volume\n\nBelow is an example `docker-compose.yaml`.\n\n**NOTE:** pschmitt/zabbix-agent2 contains jq which is required by `zbx-speedtest.sh`.\n\n```yaml\n---\nversion: \"3.7\"\nservices:\n  speedtest:\n    image: pschmitt/speedtest:cron\n    volumes:\n      - \"./data/speedtest:/data\"\n    environment:\n      - INTERVAL=300\n\n  zabbix-agent:\n    image: pschmitt/zabbix-agent2:latest\n    restart: unless-stopped\n    hostname: ${HOSTNAME}\n    privileged: true\n    network_mode: host\n    pid: host\n    volumes:\n      - \"./config/bin:/zabbix/bin:ro\"\n      - \"./config/zabbix_agentd.d:/etc/zabbix/zabbix_agentd.d:ro\"\n      - \"./data/speedtest:/data/speedtest:ro\"\n    environment:\n      - ZBX_HOSTNAMEITEM=system.hostname\n      - ZBX_SERVER_HOST=zabbix.example.com\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fzabbix-template-speedtest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschmitt%2Fzabbix-template-speedtest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschmitt%2Fzabbix-template-speedtest/lists"}