Icinga2 | add NAS-Qnap vor my old QNAP TS-212
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path
working on Icinga2 (version: r2.9.1-1)
for the spez Plugin path --> Icinga2 | (spez)Plugins | define path
working on Icinga2 (version: r2.9.1-1)
steps | on Icinga2 | ||
1 | # cd /usr/lib/nagios/pluginsCustom | ||
2 | # mkdir check_qnap3 | ||
3 | # cd check_qnap3 # cd /usr/lib/nagios/pluginsCustom/check_qnap3 |
||
4 | # wget https://raw.githubusercontent.com/nikband/check_qnap3.sh/master/check_qnap3.sh | ||
5 | # chmod +x check_qnap3.sh | ||
6 | # ./check_qnap3.sh 10.147.42.70 public systemuptime 0 0 | ||
7 | # cd /etc/icinga2/conf.d/nas-01 | ||
8 | # vi check_qnap3-sysinfo.conf |
||
object CheckCommand "check_qnap3-sysinfo" { command = [ PluginCustomDir + "/check_qnap3/check_qnap3.sh" ] arguments = { "$ARG1$" = { value = "$qnap_host$" skip_key = true } "$ARG2$" = { value = "$qnap_community$" skip_key = true } "$ARG3$" = { value = "$qnap_check$" skip_key = true } "$ARG4$" = { value = "$qnap_warning$" skip_key = true } "$ARG5$" = { value = "$qnap_critical$" skip_key = true } } vars.qnap_host = "$host.address$" vars.qnap_community = "public" vars.qnap_check = "sysinfo" vars.qnap_warning = "0" vars.qnap_critical = "0" } |
|||
9 | # cd /etc/icinga2/zones.d/ | ||
10 | # mkdir nas-01 | ||
11 | # cd nas # cd /etc/icinga2/zones.d/nas-01 |
||
12 | # vi check_qnap3-sysinfo.conf | ||
apply Service "check_qnap3-sysinfo" { import "generic-service" display_name = "QNAP - Sysinfo" check_command = "check_qnap3-sysinfo" assign where host.address && host.vars.os == "QNAP" } |
|||
13 | # icinga2 daemon -C | ||
14 | # systemctl reload icinga2 | ||
15 | # systemctl status icinga2 | ||
16 | # multitail /var/log/icinga2/icinga2.log | ||
if it works | |||
# cd /etc/icinga2/conf.d/nas-01 | |||
# cp workingfile.conf newfile.conf "and edit the new file" | |||
# cd /etc/icinga2/zones.d/nas-01 | |||
# cp workingfile.conf newfile.conf "and edit the new file" |
Error
./check_qnap3.sh 10.147.42.70 public sysinfo 0 0
./check_qnap3.sh 10.147.42.70 public systemuptime 0 0
./check_qnap3.sh 10.147.42.70 public volstatus 0 0
./check_qnap3.sh 10.147.42.70 public temp 0 0
./check_qnap3.sh 10.147.42.70 public cpu 0 0
./check_qnap3.sh 10.147.42.70 public freeram 0 0
./check_qnap3.sh 10.147.42.70 public diskused 0 0
./check_qnap3.sh 10.147.42.70 public hdstatus 0 0
./check_qnap3.sh 10.147.42.70 public fans 0 0
Source/Quellen:
- Githup check_qnap3
-
-
-
-
-
-
-
-
-
-
modul-icinga-articlelist
- ✔ Icinga2 | (spez)Plugins | define path
- ✔ Icinga2 | add NAS-Qnap (check_qnap3)
- ✔ icinga2 | check_ssl_cert
- 01 ✔ Install graphite for incibaweb2 on Debian 9
- 02 Icinga2 Modul Director on Debian9
- 90_(Solved) Icinga error: icinga2: Can't send external Icinga command to the local command file "/var/run/icinga2/cmd/icinga2.cmd": Permission denied.
- 99_(solved) error after enter token
- add a client to Icinga / or Remove the client save
- critical/icinga-app: Another instance of Icinga already running with PID
- first Install check_nwc_health
- Icinga config
- Icinga2 | add a Windows Client to Icinga2 Master
- Icinga2 | add Cisco Switch 3560 Familie
- Icinga2 | add FreeNAS
- Icinga2 | add Fritzbox 7490
- Icinga2 | add Icinga2 Client (CentOS 7) to a Master (r2.10.3-1)
- Icinga2 | add Icinga2 Client to a Master (r2.9.0-1)
- Icinga2 | add NAS-Drobo
- Icinga2 | add OpnSense Check (check_opnsense)
- Icinga2 | add Proxmox
- Icinga2 | add Raspberry Pi (Debian9)
- Icinga2 | add service to a hostgroup
- Icinga2 | add Supermicro IPMI
- Icinga2 | add USV/UPS
- Icinga2 | check_logfiles
- Icinga2 | ClamAV ¦ check_clamav
- icinga2 | dashing test
- Icinga2 | define (setup) the Master
- Icinga2 | define Hostgroup & add Host to a Hostgroup
- Icinga2 | dependencies
- Icinga2 | Gude Expert Power Control 8220 Serie
- Icinga2 | notification telegram & Email
- Icinga2 | send email notification only once (on time)
- Icinga2 | snmp
- Icinga2 | SNMP Unifi Pro AP
- Icinga2 | Upgrade Information
- icinga2 |apt wrapper |-NOK 24.08.2018
- icinga2 |check_log
- icinga2 Problems
- Muster
- Path and Links to the documentation
- plugin - Servie - Host
- show Version & Check's & nice icinga2 commands
- tmpl-24x7-host-mail
- 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