All of the hosts that I am monitoring have both IPv4 and IPv6 Addresses and proper DNS records. As an example, this is my current setup to monitor http:
apply Service "http_ipv4" { import "generic-service" check_command = "http" vars.http_address = "$address$" assign where match("*http_*", host.vars.services) ignore where host.address == "" } apply Service "http_ipv6" { import "generic-service" check_command = "http" vars.http_address = "$address6$" assign where match("*http_*", host.vars.services) ignore where host.address6 == "" } object Host "www.duenndns.org" { import "generic-host" address = "213.183.56.244" address6 = "2a02:150:7:213:183:56:244:80" vars.services = "http_" } This works really nicely, as long as IPs are static. Now I want to monitor a few hundred DSL-Routers, where neither the IPv4 nor the IPv6 addresses are static. What is the suggested way to solve this problem? I think adding a -4 or -6 flag to all icinga predefined checks would help, then I could do the following: apply Service "http_ipv4" { import "generic-service" check_command = "http" vars.http_protocol = "ipv4" vars.http_address = "$host_name$" assign where match("*http4_*", host.vars.services) } apply Service "http_ipv6" { import "generic-service" check_command = "http" vars.http_protocol = "ipv6" vars.http_address = "$host_name$" assign where match("*http6_*", host.vars.services) } object Host "dynamic-ip.duenndns.org" { import "generic-host" vars.services = "http4_ http6_" } I know that some checks already support -4 and -6, but is it planned to add this to other checks as well? Regards Thomas Herrmann
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users