Get social


Search Exchange


Recently updated


Most downloaded


check_tr64_fritz

0
1 total
5
4
3
2
1

Description

check_tr64_fritz

check_tr64_fritz

This is a Check Plugin for Icinga 2 to monitor a Fritz!Box

Requirements

You need the following packages installed to use this check Plugin

  • curl
  • bc

Please use your favorite package manager to install them.

Installation

  1. Clone this Repository to an empty folder
  2. Execute the getSecurityPort script, to find out your TR-064 SSL Port
  3. Copy the check_tr64_fritz script to your Icinga 2 Check Plugin Directory
  4. Write a CheckCommand Definition
  5. Create a new service in Icinga 2 for your Fritz!Box

Usage

getSecurityPort

getSecurityPort  = IP-Adress of your Fritz!Box

The returned value is your SSL port for the TR-064 protocol of your Fritz!Box

check_tr64_fritz

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

  downstreamrate = current downstream rate
                   output in Mbit/s

  upstreamrate = current 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 use the login method with username and password you can leave the username empty.

Security

Since there are credentials transmitted over the network, this script use SSL to communicate with the Fritz!Box. Therefore you need to find out your SSL port for the TR-064 protocol of your Fritz!Box. For finding out the port you can use the getSecurityPort script.

Make sure you are hiding password variables in Icinga Web 2.

  1. Log In to your Icinga Web 2
  2. Go to Configuration -> Modules -> monitoring -> Security
  3. Make sure your custom password variable is protected (defaults are *pw*,*pass*,community). If you named your custom variable frtiz_password it will be protected by the default entry *pass*.
  4. Double check it, go to one of your Fritz!Box service an check if the password is display with ***.

Thanks

Latest release

Release 2.0

2.0 Release

Files

Name Description Size Type Last Changed
getSecurityPort Get the HTTPS port for TR-064 interface 890.00 B text/x-shellscript Download
check_tr64_fritz Check Pugin for AVM FritzBox, used the TR-064 protocol 7.50 kB text/x-shellscript Download

Comments

G3rb3r
Can not download "getSecurityPort" 404

Review

Pleae rate the project