Icinga2 | add Fritzbox 7490 (FRITZ!OS: 06.84)
the Steps i went...
0 on the Fritzbox | Heimnetz -> Netzwerk , switch to the tab Netzwerkeinstellungen . |
Zugriff für Anwendungen zulassen | and reboot the Fritbox |
0 on the Fritzbox | add a new Fritzbox user | System -> Fritz!Box-Benutzer | Name Password No email needed FRITZ!Box Einstellungen_ Sprachnachrichten Smart Home |
0 Icinga | path of the plugins | Icinga2 | Plugins | define path | - |
2 | Need curl and bc | # apt install -y curl # apt install -y bc |
|
go to the path where 3part Plugins are | # cd /usr/lib/nagios/pluginsCustom | ||
download the Plugin | # git clone https://github.com/mcktr/check_tr64_fritz check_tr64_fritz | ||
chmod -R +x check_tr64_fritz | |||
# cd check_tr64_fritz | |||
check the open port | # ./getSecurityPort 10.147.42.1 Your Fritz!Box Security Port (for TR-064 over SSL) is: 49443 |
||
# icinga2 daemon -C | |||
# vi /etc/icinga2/conf.d/check_tlsr64_fritz/check_tlsr64_fritz-status.conf cp to copy |
object CheckCommand "check_tr64_fritz-status" { command = [ PluginCustomDir + "/check_tr64_fritz/check_tr64_fritz" ] arguments = { "-h" = "$fritz_host$" "-p" = "$fritz_port$" "-u" = "$fritz_username$" "-P" = "$fritz_password$" "-f" = "$fritz_function$" "-w" = "$fritz_warning$" "-c" = "$fritz_critical$" } vars.fritz_host = "$address$" vars.fritz_port = "49443" vars.fritz_username = "dslf-config" vars.fritz_password ="password" vars.fritz_function = "status" } |
||
# vi /etc/icinga2/zones.d/master/router.conf |
1 object Host "router.domain" { 2 check_command = "hostalive" //check is executed on the master 3 display_name = "Fritzbox 7490" 4 address = "10.147.42.1" 5 6 vars.client_endpoint = name //follows the convention that host name == endpoint name 7 } 8 9 object Service "check_tr64_fritz" { 10 host_name = "router.domain" // check_interval = 15 11 check_command = "check_tr64_fritz-status" 12 } 13 |
||
# icinga2 daemon -C | |||
# systemctl restart icinga2 | |||
Information: | // check_interval = 15 if you remove // then the check will be all 15 seconds, think about if it makes sense (default is 5 Minutes) in my case for the downstreamrate upstreamrate it did make sense |
||
ERROR on GUI |
Plugin Outputexecvpe(/usr/lib/nagios/pluginsCustom/check_tr64_fritz) failed: Permission denied |
Quellen/Source:
- (2016) Fritz!Box 7490 check | nagios
- (2018) mcktr - Github | check_tr64_fritz
-
-
-
-
-
-
-
-
- 02 Digi-Bee Stand01 Gewicht
- 01 Digi-Bee Stand01 Wetter
- 04 Digi-Bee Stand02 Gewicht
- 03 Digi-Bee Stand02 Wetter
- 00 Digi-Bee übersicht
- SparkFun LoRa Gateway - 1-Channel (ESP32) | WRL-15006
- Solar - TTGO - LORA
- 2 Stück LILYGO® TTGO LORA32 868 Mhz ESP32 LoRa OLED 0,96 Zoll Blaues Display Bluetooth WIFI ESP-32 Entwicklungsboard Modul Mit Antenne
- Budget Solar Set 2W mit Laderegler für Lipo Akku
- SparkFun LiPo Battery Manager - Battery Babysitter
- ESP8266 Universal Raw e-Paper Driver Board WiFi
- Batterie Shield 5V 3A / 3V 1A (2 x 18650 Lithium)
- linux scripts
- Chip Sensoren List
- 4-ch Current/Voltage/Power Monitor HAT for Raspberry Pi, I2C/SMBus
- Raspberry | Raspberry Pi Zero W - Full Kit
- telegraf influxdb grafana on raspberrypi from scratch
- load wifi-credentials file with
- Luxxus Starter Pack - 3 bulbs - Model NCL302E27
- Raspberry | Raspberry Pi 4 Model B 4GB RAM
- Raspberry | Raspberry Pi 4 Model B 4GB RAM
- Raspberry | Raspberry Pi 4 Model B 4GB RAM | IoT05
- my IoT zoo - Software part
- Phoscon deConz - Raspbee II, ZigBee-Aufsatzmodul für Raspberry Pi
- Audio-Technica | AT-LP120XUSB - Plattenspieler