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