pthoelken / fritzbox-zabbix-monitoring

Zabbix Monitoring for AVM FritzBox devices
9 stars 3 forks source link

Zabbix Monitoring for your AVM Fritz!Box Devices

Requirements and successfully tested

This template is in development with Zabbix Server version 7. To get it working under Zabbix Server Version 6 just change the version key at the beginning. However they may not work properly.

Setup

  1. Create a user for monitoring (with settings permissions) in your FritzBox
  2. Copy the content from the docker-compose.yml file to your local `docker-compose.yaml`` file and fillout the environment variables. You can leave some blank to use defaults (see below).
  3. Download the Zabbix template file from template_fritz.box.xml and import it to your Zabbix Monitoring system (if you update, delete the old tempalte first)
  4. Create a host in zabbix with the same hostname from docker-compose.yml (FRITZBOX_HOSTNAME)
  5. Start your docker-compose file with docker-compose up -d
  6. You can check the container with docker-compose logs into the same directory

Environment Variables

Key Default Comment
ZABBIX_SERVER - IP address of your Zabbix server
ZABBIX_SERVER_PORT 10050 Custom port of your Zabbix server
TLS_PSK_IDENTITY (not used) ID of the pre-shared-key to be used
TLSPSK (not used) Secret of the pre-shared-key
INTERVAL - Check intervall
FRITZBOX_HOSTNAME - Hostname of your FritzBox at the Zabbix Server
FRITZBOX_IP - IP address of your FritzBox where it could be reached from this check service
FRITZBOX_USER - User in your FritzBox for this check service
FRITZBOX_PASSWD - Password in your FritzBox for this check service
ZABBIX_SENDER_DEBUG False Switch to enable verbose logging

For builders and developers only

  1. git clone XX
  2. cd container
  3. docker build --no-cache -t fritzbox-zabbix-monitoring

For more information checkout the build file in this repo.

Feature Requests and Bugs or Questions

Known Errors

'Hostname' required

fritzbox-zabbix-monitoring-fritzbox-zabbix-monitoring-1  | zabbix_sender [8]: ERROR: [line 1] 'Hostname' required
fritzbox-zabbix-monitoring-fritzbox-zabbix-monitoring-1  | Sending failed.

Values are 0 in my Zabbix Server Host

DockerHub

https://hub.docker.com/r/pthoelken/fritzbox-zabbix-monitoring