Coming back to this after taking a while working on other stuff. I'm running into an issue. The issue is that get_host().state is returning "1" for every host, including those that are UP. See below for the config I am working with. Just for testing I am using my "vagrant-minion" box which is running Icinga2. It's UP and has been UP for a long time, but vars.cluster_data contains "1".
It seems the get_host() is not returning the correct host state. Any thoughts? object CheckCommand "check_cluster" { import "plugin-check-command" command = [ PluginDir + "/check_cluster", "-h", "", "-l", "$cluster_label$", "-w", "$cluster_warning$", "-c", "$cluster_critical$", "-d", "$cluster_data$", ] vars.cluster_warning = "0" vars.cluster_critical = "1" } apply Service "clusterX" { import "generic-service" check_command = "check_cluster" vars.cluster_label = get_host("vagrant-minion").state vars.cluster_data = get_host("vagrant-minion").state assign where host.name == "x ['us-east-1a', 'us-east-1d', 'us-east-1e']" } _______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users