// -*- mode: icinga -*- // # CheckCommand # object CheckCommand "check_watchguard" { import "plugin-check-command" command = [ ConfigDir + "/scripts/check_watchguard.sh" ] arguments += { "-C" = "$wgsnmp_community$" "-H" = "$address$" "-t" = { required = true value = "$wgsnmp_types$" } } vars.wgsnmp_community = "pal-ro" } // # Template # template Host "WatchGuard" { address = "172.16.254.240" check_command = "hostalive" } template Service "WatchGuard - check_watchguard" { check_command = "check_watchguard" check_interval = 5m retry_interval = 3m command_endpoint = null vars.wgsnmp_types = "InfoGav" } // # Host # object Host "WatchGuard - Host" { import "WG" } // # Service # // # basic # object Service "ping4" { display_name = "Ping4" host_name = "WatchGuard" check_command = "ping4" } object Service "http" { display_name = "Http" host_name = "WatchGuard" check_command = "http" } // # snmp # apply Service "WatchGuard - Cpu" { import "DELL Switch - check_switch" vars.wgsnmp_types = "Cpu" }