Skip to content
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

[dev.icinga.com #9964] icinga2 node update should not write config for blacklisted zones/host #3300

Closed
icinga-migration opened this issue Aug 19, 2015 · 5 comments
Labels
area/cli Command line helpers bug Something isn't working wontfix Deprecated, not supported or not worth any effort

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/9964

Created by henti on 2015-08-19 08:23:22 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2017-01-14 13:05:55 +00:00 (in Redmine)

Icinga Version: 2.3.8
Backport?: Not yet backported
Include in Changelog: 1

This looks like a possible regression of #8211 or at least an edge case.

I've blacklist two hosts on my setup while users do testing which involve changing dates on the hosts which causes issue on monitoring.

icinga2 node blacklist add --zone "*" --host "dev-qua-za-ff03.domain.com"
icinga2 node blacklist add --zone "*" --host "dev-qua-za-ff05.domain.com"

Check the blacklist is in place.

root@prd-qua-za-mon:/etc/icinga2# icinga2 node blacklist list
Listing all blacklist entries:
blacklist filter for Node: '*' Host: '*' Service: 'apt'.
blacklist filter for Node: '*' Host: '*' Service: 'ping6'.
blacklist filter for Node: '*' Host: '*' Service: 'ping4'.
blacklist filter for Node: '*' Host: '*' Service: 'cpu'.
blacklist filter for Node: '*' Host: 'dev-qua-za-ff03.domain.com' Service: ''.
blacklist filter for Node: '*' Host: 'dev-qua-za-ff05.domain.com' Service: ''.

Noticed the services addition. Not sure if this is correct.

icinga2 node update-config creates the host, endpoint and zone files

Adding host 'dev-qua-za-ff03.domain.com'
    check_command = "cluster-zone"
    import = [ "satellite-host" ]
Adding endpoint 'dev-qua-za-ff03.domain.com'
Adding zone 'dev-qua-za-ff03.domain.com'
    endpoints = [ "dev-qua-za-ff03.domain.com" ]
    parent = "master"
Adding host 'dev-qua-za-ff05.domain.com'
    check_command = "cluster-zone"
    import = [ "satellite-host" ]
Adding endpoint 'dev-qua-za-ff05.domain.com'
Adding zone 'dev-qua-za-ff05.domain.com'
    endpoints = [ "dev-qua-za-ff05.domain.com" ]
    parent = "master"

Parent Task: #13257

Relations:

@icinga-migration
Copy link
Author

Updated by henti on 2015-08-19 09:02:42 +00:00

Switching to below command works :

icinga2 node blacklist add --zone "dev-qua-za-ff05.domain.com" --host '*'

henti wrote:

This looks like a possible regression of #8211 or at least an edge case.

I've blacklist two hosts on my setup while users do testing which involve changing dates on the hosts which causes issue on monitoring.

[...]

Check the blacklist is in place.

[...]

Noticed the services addition. Not sure if this is correct.

icinga2 node update-config creates the host, endpoint and zone files

[...]

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-18 14:12:03 +00:00

  • Category set to CLI

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2016-11-18 17:11:24 +00:00

  • Relates set to 13255

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2017-01-14 13:05:55 +00:00

  • Parent Id set to 13257

@icinga-migration icinga-migration added bug Something isn't working area/cli Command line helpers labels Jan 17, 2017
@dnsmichi dnsmichi added the wontfix Deprecated, not supported or not worth any effort label Feb 2, 2017
@dnsmichi
Copy link
Contributor

dnsmichi commented Feb 2, 2017

Closing in favour of #4799.

@dnsmichi dnsmichi closed this as completed Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers bug Something isn't working wontfix Deprecated, not supported or not worth any effort
Projects
None yet
Development

No branches or pull requests

2 participants