When using a passive check via NSCA, 1st using the host name assigned within Icinga2, 2nd the IP address of the host instead, Icinga shows different behaviour:
With the host name the message is processed as expected, with the IP adress Icinga reports, that the service
is unknown.
Icinga log:
[2018-11-03 18:54:10 +0100] information/ExternalCommandListener: Executing external command: [1541267650] PROCESS_SERVICE_CHECK_RESULT;192.168.0.1;ping4;0;up
[2018-11-03 18:54:10 +0100] warning/ExternalCommandListener: External command failed: Error: Cannot process passive service check result for non-existent service 'ping4' on host '192.168.0.1'
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
1.
2.
3.
4.
Context
Your Environment
Version used (icinga2 --version):
icinga2 - The Icinga 2 network monitoring daemon (version: r2.8.4-1)
Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/)
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: Ubuntu
Platform version: 16.04.3 LTS (Xenial Xerus)
Kernel: Linux
Kernel version: 4.4.0-138-generic
Architecture: x86_64
Build information:
Compiler: GNU 5.3.1
Build host: 9c880c2f42f5
Operating System and version:
Linux UltraBlue 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Icinga Web 2 version and modules (System - About):
Config validation (icinga2 daemon -C):
If you run multiple Icinga 2 instances, the zones.conf file (or icinga2 object list --type Endpoint and icinga2 object list --type Zone) from all affected nodes.
When using a passive check via NSCA, 1st using the host name assigned within Icinga2, 2nd the IP address of the host instead, Icinga shows different behaviour: With the host name the message is processed as expected, with the IP adress Icinga reports, that the service is unknown.
Icinga log:
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
1. 2. 3. 4.
Context
Your Environment
icinga2 --version
): icinga2 - The Icinga 2 network monitoring daemon (version: r2.8.4-1)Copyright (c) 2012-2017 Icinga Development Team (https://www.icinga.com/) 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: Ubuntu Platform version: 16.04.3 LTS (Xenial Xerus) Kernel: Linux Kernel version: 4.4.0-138-generic Architecture: x86_64
Build information: Compiler: GNU 5.3.1 Build host: 9c880c2f42f5
Operating System and version: Linux UltraBlue 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Enabled features (
icinga2 feature list
): Disabled features: compatlog elasticsearch gelf graphite opentsdb statusdata syslog Enabled features: api checker command debuglog ido-mysql influxdb livestatus mainlog notification perfdataIcinga Web 2 version and modules (System - About):
Config validation (
icinga2 daemon -C
):If you run multiple Icinga 2 instances, the
zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.