This is a monitoring plugin for Icinga 2 to check the status of a Fritz!Box
- clone this Repository to an empty folder
- execute the
getSecurityPortscript, to find out your TR-064 SSL port
- copy the
check_tr64_fritzscript to your Icinga 2 PluginDir
- write a CheckCommand Definition
- create a new service in Icinga for your Fritz!Box and have fun :)
getSecurityPort = IP of your Fritz!Box
The return value is your SSL port for TR-064.
usage: check_tr64_fritz -h -p -u -P -f -w -c -h: IP-Adress or hostname from the Fritz!Box default = fritz.box -p: SSL-Port from the Fritz!Box default = 49443 -u: Login Username for the Fritz!Box default = dslf-config -P: Login Password for the Fritz!Box -f: Function to check default = status -w: value where the warning state come into effect default = -1 / returns every time an OK state -c: value where the critical state come into effect default = -1 / return every time an OK state Functions: status = Connection Status linkuptime = WAN link uptime uptime = device uptime downstream = useable downstream rate output in Mbit/s upstream = useable upstream rate output in Mbit/s update = get the update state DEBUG: -d: prints debug information
The username and password are the same as for the web interface of your Fritz!Box. If you don't need a username for the login to your Fritz!Box leave the argument blank.
In fact that a pasword is transmitted over the network, this Script use SSL to communicate with the Fritz!Box.
To find out the port which is used for SSL TR-064, please use the script
Make sure you are hiding password variables in Icinga Web 2.
- login to your Icinga Web 2
- go to
- make sure your custom password varibale is protected (defaults are
*pw*,*pass*,community, if you named your custom variable
fritzbox_passwordit will be protected with the defaults
Hats off to
|check_tr64_fritz||First release||6.08 kB||text/x-shellscript||Download|