Sehr geehrte Damen und Herren, in der Zeit vom 14.09.2017 bis einschließlich 03.10.2017 befinde ich mich nicht im Büro.
Beachten Sie bitte, dass Ihre E-Mail nicht automatisch weitergeleitet wird. In dringenden Fällen wenden Sie sich bitte an unsere Hotline, 0203-378530, oder an Herrn Hesselmann (hesselm...@opm-computer.de). Mit freundlichen Grüßen Ronny Bär OPM IT Service GmbH Send icinga-users mailing list submissions to icinga-users@lists.icinga.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.icinga.org/mailman/listinfo/icinga-users or, via email, send a message with subject or body 'help' to icinga-users-requ...@lists.icinga.org You can reach the person managing the list at icinga-users-ow...@lists.icinga.org When replying, please edit your Subject line so it is more specific than "Re: Contents of icinga-users digest..." Today's Topics: 1. Problems with check_address not populating out on service (Eric Schultz) ---------------------------------------------------------------------- Message: 1 Date: Thu, 14 Sep 2017 13:25:34 -0500 From: Eric Schultz <eric.schu...@cyvon.com> To: icinga-users@lists.icinga.org Subject: [icinga-users] Problems with check_address not populating out on service Message-ID: <23129fdb-9e45-41c3-4988-953cfb7cb...@cyvon.com> Content-Type: text/plain; charset=utf-8; format=flowed I'm having an issue with a custom service where the -H <address> is not getting populated. From all my inspections everything seems to be right. Can someone give me a hint as to why this is not working. I've included the config Structure, object definition dump, and last check result for ibm_bladecenter (the one not working) and pop (a pre-defined one that is working). (yes I removed comments/description for ease of reading) Everything seems to match except the last check result. What would cause that not to appear on the check command line? As always, I greatly appreciate any help! ############################################### object CheckCommand "ibm_bladecenter" { import "plugin-check-command" command = [ PluginDir + "/check_snmp_IBM_Bladecenter.pl" ] arguments += { "-C" = "$bladecenter_community$" "-H" = "$bladecenter_address$" "-c" = "$bladecenter_crit$" "-n" = "$bladecenter_elements$" "-t" = "$bladecenter_test$" "-w" = "$bladecenter_warn$" } vars.bladecenter_address = "$check_address$" vars.bladecenter_community = "public" } Object 'ibm_bladecenter' of type 'CheckCommand': * __name = "ibm_bladecenter" * arguments * -C = "$bladecenter_community$" * -H = "$bladecenter_address$" * -c = "$bladecenter_crit$" * -n = "$bladecenter_elements$" * -t = "$bladecenter_test$" * -w = "$bladecenter_warn$" * command = [ "/usr/lib64/nagios/plugins/check_snmp_IBM_Bladecenter.pl" ] * env = null * execute * type = "Function" * name = "ibm_bladecenter" * package = "director" * templates = [ "ibm_bladecenter", "plugin-check-command", "plugin-check-command" ] * timeout = 60 * type = "CheckCommand" * vars * bladecenter_address = "$check_address$" * bladecenter_community = "public" * zone = "director-global" # when run: last_check_result: { active: true, check_source: "admin2.blahXX.com", command: [ "/usr/lib64/nagios/plugins/check_snmp_IBM_Bladecenter.pl", "-C", "public", "-c", "3500", "-t", "System-Temp-Ambient", "-w", "2600" ], ############################################### object CheckCommand "pop" { import "plugin-check-command" command = [ PluginDir + "/check_pop" ] timeout = 1m arguments += { "-4" = { set_if = "$pop_ipv4$" } "-6" = { set_if = "$pop_ipv6$" } "-A" = { set_if = "$pop_all$" } "-D" = "$pop_certificate_age$" "-E" = "$pop_escape$" "-H" = "$pop_address$" "-M" = "$pop_mismatch$" "-S" = { set_if = "$pop_ssl$" } "-c" = "$pop_critical$" "-d" = "$pop_delay$" "-e" = "$pop_expect$" "-j" = { set_if = "$pop_jail$" } "-m" = "$pop_maxbytes$" "-p" = "$pop_port$" "-q" = "$pop_quit$" "-r" = "$pop_refuse$" "-s" = "$pop_send$" "-t" = "$pop_timeout$" "-w" = "$pop_warning$" } vars.check_address = { type = "Function" } vars.check_ipv4 = "$pop_ipv4$" vars.check_ipv6 = "$pop_ipv6$" vars.pop_address = "$check_address$" } Object 'pop' of type 'CheckCommand': * __name = "pop" * arguments * -4 * set_if = "$pop_ipv4$" * -6 * set_if = "$pop_ipv6$" * -A * set_if = "$pop_all$" * -D = "$pop_certificate_age$" * -E = "$pop_escape$" * -H = "$pop_address$" * -M = "$pop_mismatch$" * -S * set_if = "$pop_ssl$" * -c = "$pop_critical$" * -d = "$pop_delay$" * -e = "$pop_expect$" * -j * set_if = "$pop_jail$" * -m = "$pop_maxbytes$" * -p = "$pop_port$" * -q = "$pop_quit$" * -r = "$pop_refuse$" * -s = "$pop_send$" * -t = "$pop_timeout$" * -w = "$pop_warning$" * command = [ "/usr/lib64/nagios/plugins/check_pop" ] * env = null * execute * type = "Function" * name = "pop" * package = "_etc" * templates = [ "pop", "plugin-check-command", "ipv4-or-ipv6" ] * timeout = 60 * type = "CheckCommand" * vars * check_address * type = "Function" * check_ipv4 = "$pop_ipv4$" * check_ipv6 = "$pop_ipv6$" * pop_address = "$check_address$" * zone = "" # when run: last_check_result: { active: true, check_source: "admin2.blahXX.com", command: [ "/usr/lib64/nagios/plugins/check_pop", "-H", "mail.blahXX.com" ], -- Cheers, Eric Schultz ------------------------------ Subject: Digest Footer _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users ------------------------------ End of icinga-users Digest, Vol 45, Issue 7 ******************************************* _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users