>> object CheckCommand "check-openvpn" { >> import "plugin-check-command" >> import "ipv4-or-ipv6" >> >> vars.ip_port = "" >> vars.ip_ports = "" >> vars.ip_protocol = {{ >> var tcp = macro("$openvpn_tcp_port$") >> var udp = macro("$openvpn_udp_port$") >> >> if (tcp) { >> vars.ip_protocol = "-sP" >> vars.ip_port = "-p" >> vars.ip_ports = [ "T:" + tcp ] >> return >> } else { >> vars.ip_protocol = "-sU" >> vars.ip_port = "-p" >> vars.ip_ports = [ "U:" + udp ] >> return >> } >> }} >> command = [ PluginDir + "/check_openvpn" ] > # would really love to echo $ip_protocol $ip_port etc right about here > or even higher - *somehow* >> arguments = { >> "-h" = "$check_address$" >> "-p" = "$vars.ip_protocol$" >> "-z" = "$vars.ip.port$" >> "-x" = "$vars.ip.ports$" >> } >> >> }
Well, the debug log explains actually, it does most certainly show you what you are running. Read the docs on params, if the value is not there you have not forced out to error. ip_ports != ip.ports Hth, jlc _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users