Skip to content

pthoelken/fritzbox-zabbix-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zabbix Monitoring for your AVM Fritz!Box Devices

Requirements and successfully tested

  • Zabbix Server Version: 7
  • Zabbix Sender Version: 6.4.7

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
TLS_PSK_ (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.
  • This error can be solved by removing the " chars in your environment section from docker-compose.yml

Values are 0 in my Zabbix Server Host

  • This error may comes up when you are using your AVM Device for a internal switch / access point instead for an normal internet router. I'm working on it to investigate this problem or create a fix.

DockerHub

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

About

Zabbix Monitoring for AVM FritzBox devices

Resources

Stars

Watchers

Forks