New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error with match and type matchany #6496
Labels
Milestone
Comments
This should return false, but drops out of the loop. |
It is a regression from 80b72cf |
dnsmichi
added
bug
Something isn't working
area/configuration
DSL, parser, compiler, error handling
labels
Jul 27, 2018
dnsmichi
pushed a commit
that referenced
this issue
Jul 27, 2018
dnsmichi
pushed a commit
that referenced
this issue
Jul 30, 2018
For users who cannot upgrade to 2.9.2: a possible workaround is to use
one may write
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I have Troubel with a strange behavior of the assign match function. After a update of the new icinga2 version 2.9.1 i get services with assign rules on host that shouldn´t get this services. I guess the reason is the showing behavior.
I would expect a false, but the matchany give me a true.
My Environment
icinga2 --version
):icinga2 --version
icinga2 - The Icinga 2 network monitoring daemon (version: r2.9.1-1)
Copyright (c) 2012-2018 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.5 LTS (Xenial Xerus)
Kernel: Linux
Kernel version: 4.4.0-116-generic
Architecture: x86_64
Build information:
Compiler: GNU 5.3.1
Build host: 1b4c52bdc470
Ubuntu 16.04.5 LTS
Linux smon01 4.4.0-116-generic [dev.icinga.com #2728] Config: Clean up ObjectSet/ObjectMap classes #140-Ubuntu SMP Mon Feb 12 21:23:04 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
icinga2 feature list
):icinga2 feature list
Disabled features: compatlog debuglog elasticsearch gelf influxdb livestatus opentsdb perfdata statusdata syslog
Enabled features: api checker command graphite ido-mysql mainlog notification
IcingaWeb2 2.6
graphite 1.0.1
monitoring 2.6.0
unicorn 1.0.2 [;-)]
icinga2 daemon -C
):icinga2 daemon -C
[2018-07-27 16:06:38 +0200] information/cli: Icinga application loader (version: r2.9.1-1)
[2018-07-27 16:06:38 +0200] information/cli: Loading configuration file(s).
[2018-07-27 16:06:38 +0200] information/ConfigItem: Committing config item(s).
[2018-07-27 16:06:38 +0200] information/ApiListener: My API identity: smon01.***
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule '' (in /etc/icinga2/zones.d/global-templates/services/agent.conf: 1:0-1:64) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule '' (in /etc/icinga2/zones.d/global-templates/services/http.conf: 30:1-30:52) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'HTTP Proxy .70 ' (in /etc/icinga2/zones.d/global-templates/services/http.conf: 46:1-46:65) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'HTTP Proxy .71 ' (in /etc/icinga2/zones.d/global-templates/services/http.conf: 62:1-62:65) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'HTTP Access ' (in /etc/icinga2/zones.d/global-templates/services/http.conf: 78:1-78:63) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'SSH MySQL Connection Time' (in /etc/icinga2/zones.d/global-templates/services/ssh_mysql_health.conf: 1:0-1:40) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'SSH MySQL Index Usage' (in /etc/icinga2/zones.d/global-templates/services/ssh_mysql_health.conf: 11:1-11:37) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'SSH MySQL InnoDB Bufferpool Hitrate' (in /etc/icinga2/zones.d/global-templates/services/ssh_mysql_health.conf: 21:1-21:51) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'SSH MySQL QCache Hitrate' (in /etc/icinga2/zones.d/global-templates/services/ssh_mysql_health.conf: 31:1-31:40) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] warning/ApplyRule: Apply rule 'SSH MySQL Threadcache Hitrate' (in /etc/icinga2/zones.d/global-templates/services/ssh_mysql_health.conf: 41:1-41:45) for type 'Service' does not match anywhere!
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 5452 Services.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 17 ServiceGroups.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 23 ScheduledDowntimes.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 29 HostGroups.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 2 EventCommands.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 FileLogger.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 NotificationComponent.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 2 NotificationCommands.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 6088 Notifications.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 IcingaApplication.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 327 Hosts.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 ApiListener.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 46 Downtimes.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1325 Dependencies.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 GraphiteWriter.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 184 Comments.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 CheckerComponent.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 3 Zones.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 2 Endpoints.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 3 ApiUsers.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 3 UserGroups.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 263 CheckCommands.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 4 TimePeriods.
[2018-07-27 16:06:45 +0200] information/ConfigItem: Instantiated 7 Users.
[2018-07-27 16:06:45 +0200] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
[2018-07-27 16:06:45 +0200] information/cli: Finished validating the configuration file(s).
zones.conf
file (oricinga2 object list --type Endpoint
andicinga2 object list --type Zone
) from all affected nodes.icinga2 object list --type Endpoint
Object 'smon01.***' of type 'Endpoint':
% declared in '/etc/icinga2/zones.conf', lines 1:0-1:45
% = modified in '/etc/icinga2/zones.conf', lines 2:3-2:39
% = modified in '/etc/icinga2/zones.conf', lines 1:0-1:45
Object 'smon02.***' of type 'Endpoint':
% declared in '/etc/icinga2/zones.conf', lines 5:1-5:46
% = modified in '/etc/icinga2/zones.conf', lines 6:3-6:39
% = modified in '/etc/icinga2/zones.conf', lines 5:1-5:46
icinga2 object list --type Zone
Object 'director-global' of type 'Zone':
% declared in '/etc/icinga2/zones.conf', lines 18:1-18:29
% = modified in '/etc/icinga2/zones.conf', lines 19:3-19:15
% = modified in '/etc/icinga2/zones.conf', lines 18:1-18:29
Object 'global-templates' of type 'Zone':
% declared in '/etc/icinga2/zones.conf', lines 14:1-14:30
% = modified in '/etc/icinga2/zones.conf', lines 15:3-15:15
% = modified in '/etc/icinga2/zones.conf', lines 14:1-14:30
Object 'master' of type 'Zone':
% declared in '/etc/icinga2/zones.conf', lines 9:1-9:20
% = modified in '/etc/icinga2/zones.conf', lines 10:3-10:80
% = modified in '/etc/icinga2/zones.conf', lines 9:1-9:20
Is this a bug or a failure on my site?
The text was updated successfully, but these errors were encountered: