Perfect
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
-
-
-
-
-
-
-
- > Add a comment >
Icinga2 | add Cisco Switch 3560 Familie
Switch Configuration | Cisco SNMPv3 Setup 1. conf t 2. snmp-server group Snmpv3groupname v3 auth 3. snmp-server user Snmpv3user Snmpv3groupname v3 auth sha Snmpv3passwort |
||
needed Software | apt install -y libnet-snmp-perl libcrypt-hcesha-perl libcrypt-des-perl libdigest-hmac-perl libcrypt-rijndael-perl | ||
70 object HostGroup "3560cg8p" { 71 display_name = "Cisco 3560CG 8 Port" 72 73 assign where host.vars.HW.cisco == "3560cg8p" 74 } 75 76 object HostGroup "3560-8p" { 77 display_name = "Cisco 3560 8 Port" 78 assign where host.vars.HW.cisco == "3560-8p" 79 } |
|||
Icinga Plugin | |||
cd /etc/icinga2/zones.d/master/03_SWT/ | |||
vi check_cisco-c.conf vi check_cisco-s_alg.conf vi check_cisco-t.conf |
|||
# time icinga2 daemon -C | |||
# time systemctl reload icinga2 | |||
# time systemctl restart icinga2 | |||
Quellen(Source:
- consol labs | check_nwc_health
- Cisco Switch mit Icinga 2 und check_nwc_health mittels SNMPv3 abfragen
-
-
-
-
-
-
-
- > Add a comment >
Show Version of tools
Icinga2 Version | # icinga2 --version | # icinga2 --version icinga2 - The Icinga 2 network monitoring daemon (version: r2.6.0-1) Copyright (c) 2012-2016 Icinga Development Team (https://www.icinga.org/) License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl2.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Application information: Installation root: /usr Sysconf directory: /etc Run directory: /run Local state directory: /var Package data directory: /usr/share/icinga2 State path: /var/lib/icinga2/icinga2.state Modified attributes path: /var/lib/icinga2/modified-attributes.conf Objects path: /var/cache/icinga2/icinga2.debug Vars path: /var/cache/icinga2/icinga2.vars PID path: /run/icinga2/icinga2.pid System information: Platform: Debian GNU/Linux Platform version: 9 (stretch) Kernel: Linux Kernel version: 4.9.0-6-amd64 Architecture: x86_64 Build information: Compiler: GNU 6.2.1 Build host: amalia |
# dpkg -l icinga*|grep ii | ||
# dpkg -l | grep icinga | ||
# icinga2 feature disable debuglog | to be sure to have switched off debuglog | |
# apt-cache policy icinga2 | ||
php | # php -v | PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies |
MariaDB | # mariadb --version | mariadb Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2 |
Apache2 | # apache2 -v | Server version: Apache/2.4.25 (Debian) Server built: 2018-03-31T08:47:16 |
carbon Whisper graphite-web |
# pip list | |
show Java Zulu | # dpkg --list | grep zulu | |
show java Version | # java --version |
icinga2 Problems
---
icinga2 feature enable debuglog | icinga2 feature disable debuglog | |
multitail /var/log/icinga2/debug.log | ||
service icinga2 restart | ||
https://10.147.42.36:5665/v1/objects/services?service=NAS-01.kozo.ch!check_qnap3-sysinfo | ||
to makr it more readable | jsonformatter.curiousconcept.com | |
use ``` at the start and end to show it on the forum | ||
Quelle/Source:
-
-
-
-
- > Add a comment >
Subcategories
Monitoring Article Count: 69
Roundcube Article Count: 1
Roundcube ist eine freie Software für Webmail über IMAP, die in den Programmiersprachen PHP und JavaScript entwickelt wird. Roundcubes prominenteste Features sind die schlanke und moderne Benutzeroberfläche und die ausgeprägte Nutzung der Ajax-Technologie, die einen ähnlichen Bedien-Komfort wie bei einer lokal installierten Anwendung ermöglicht.
Kolab News Article Count: 33
soho Net Article Count: 4
Perfect NAS Article Count: 28
Perfect Server Article Count: 80
Perfect Router/FW/Switch Article Count: 4
- Anker 575 USB-C Docking Station (13-in-1), 85W für Laptops
- Perfect Server Hardware for Virtualization | Proxmox | pve-05
- Pioneer Blu-Ray/BD/DVD/CD Reader/writer USB 3.0 BDR-XD07TB | WORKS OK with Debian 11
- NOT WORKING WITH DEBIAN 11 | Dockingstation | IcyBox 14-in-1 USB Type-C | IB-DK2262AC
- How to remove systemd services
- Laptop | Lenovo | Thinkpad E15 Gen3 AMD
- Laptop | Lenovo | LENOVO-IDEA IdeaPad 3 15IGL05 Notebook (15.6 ", 128 GB SSD, Business Black)
- D. Klimo | Kent monoblocks
- TTN Mapper
- LILYGO TTGO T-Beam V1.1 ESP32 LoRa 868Mhz GPS 18650 Board
- LILYGO® TTGO T-Beam 868MHz -> The Things Network (TTN/TTS) -> Karte | Infos und Video bei Alex (www.aeq-web.com)
- Kabelfarben 3.3V, 5V, 12V, 230V | Durchmesser
- 01 Digi-Bee Stand01 Wetter
- Solar Panel | 6V 3W Solar Panel JY D145x145
- TTGO LoRa32 V2.1_1.6 version 433/868/915Mhz ESP32 LoRa OLED 0.96 Inch SD Card Bluetooth WIFI wireless Module ESP-32 SMA
- -pve-04 | Disk SSD and HDD
- DISK SSD | 1 TB | Samsung SSD 870 EVO 1TB - 1TB
- NanoVNA V2
- CubeSat | antennas |
- KoZo_GS3_433MHz
- tinyGS - shortcut what it means
- TinyGS Telegram community | published Links
- Wolfgang W. Osterhage (Springer Verlag Sachbuch 2021): Die Geschichte der Raumfahrt | (gefundene Fehler)
- ucs Univention some commands
- SMA-Stecker / SMA-Buchse