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
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users