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 #8862] wrong 'dns_lookup' custom attribute default in command-plugins.conf #2823

Closed
icinga-migration opened this issue Mar 25, 2015 · 3 comments
Labels
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented Mar 25, 2015

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

Created by henti on 2015-03-25 10:34:48 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2015-03-25 10:46:45 +00:00)
Target Version: 2.3.3
Last Update: 2015-03-25 10:46:45 +00:00 (in Redmine)

Icinga Version: 2.3.2-1
Backport?: Already backported
Include in Changelog: 1

I posted a problem to the user list and Tobias pointed out a bug in the plugin check command definitions.

object CheckCommand "dns" {
    import "plugin-check-command"
    import "ipv4-or-ipv6"

    command = [ PluginDir + "/check_dns" ]

    arguments = {
        "-H" = "$dns_lookup$"
        "-s" = "$dns_server$"
        "-a" = "$dns_expected_answers$"
        "-a_old" = {
            key = "-a"
            value ="$dns_expected_answer$"
        }
        "-A" = {
            set_if = "$dns_authoritative$"
        }
    }

    vars.dns_lookup = "$host_name$"
    vars.dns_expected_answer = "$check_address$"
}

vars.dns_lookup must be "$host.name$", see http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc\#!/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#host-runtime-macros ... same as the cluster-zone check (http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc\#!/icinga2/latest/doc/module/icinga2/chapter/icinga-template-library#itl-icinga-cluster-zone)

Changesets

2015-03-25 10:44:54 +00:00 by (unknown) aaafbcb

Fix wrong 'dns_lookup' custom attribute default

fixes #8862

2015-03-25 10:46:24 +00:00 by (unknown) 9c1ddbf

Fix wrong 'dns_lookup' custom attribute default

fixes #8862
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Mar 25, 2015

Updated by mfriedrich on 2015-03-25 10:44:57 +00:00

  • Subject changed from _vars.dns_lookup must be "$host.name$" in command-plugins.conf _ to _wrong 'dns_lookup' custom attribute default in command-plugins.conf _
  • Description updated
  • Category set to ITL
  • Status changed from New to Assigned
  • Assigned to set to mfriedrich
  • Target Version set to 2.3.4
  • Estimated Hours set to 0.5
  • Icinga Version changed from icinga2 - The Icinga 2 network monitoring daemon (version: r2.3.2-1) to 2
  • Backport? changed from TBD to Yes
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Mar 25, 2015

Updated by mfriedrich on 2015-03-25 10:45:23 +00:00

  • Target Version changed from 2.3.4 to 2.3.3
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Mar 25, 2015

Updated by Anonymous on 2015-03-25 10:46:45 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset aaafbcb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.