Ping 'n Traceroute for IPv6 & IPv4

Hello community,

I have the following requirement but I’m not quite sure how to accomplish it. Maybe you can help me?

For each host I want to:

  • dependent on the “IP address family”: IPv4-only, IPv6-only, or dual-stack:
  • ping the host and show a graph for it (both Internet Protocols, if available, otherwise v4 or v6 only)
  • traceroute both IPs, again with graphs and so on

And to top it off, for some specific folders I want to do both of them (ping 'n traceroute) from multiple sites via distributed monitoring.

Is this feasible with only a few rules? I am a little bit confused about the rules for “Check current routing” vs. “Check hosts with PING (ICMP Echo Request)”. While the first one allows the “enforce xy” setting:
grafik

the second one shows some more options, but misses the “enforce xy” setting:
grafik

Thanks and kind regards
Johannes

I wonder whether the question was too difficult or too trivial… :man_shrugging:t2:
Or am I the only person with this requirement?

I am not sure if I understood what you are actually asking.

The rulesets “Check host with PING” and “Check current routing” are both active checks. In general, each active check rule generates one check item on each host it is applied to. So, if you want to apply the rule twice on the same host, you need to create two rules with different parameters.

An active check is always executed on the Checkmk site where the host is monitored. If you want to ping/traceroute the same host from different Checkmk sites, you need to create the host object multiple times on each Checkmk site.

I hope this helps.

Edit: it looks like the traceroute check has no option to alter the service description. So there can only one check per host, and the service description is always “Routing”. I sent a bug report to the feedback mail address. For now, you can create two host objects if you need both IPv4 and IPv6 traceroutes.

Hey @Heavy,
thanks for your reply. But I don’t get it.

Let’s start with ping. I want to generate ping graphs for each host, pinging the hostname via IPv4 and IPv6. My configured hostnames in checkmk are always real FQDNs with an A and an AAAA record.

  1. Using no parameters at all:


    simply pings the IPv4 address (while IPv6 should always be preferred, shouldn’t it? The folder for this host is “IPv4/IPv6 dual-stack”.)

  2. Using the “ping all IPvX addresses”:


    is not working:

  3. Same for “additional IPvX addresses”:


    Results in:

  4. Same for “IPvX address identified by its index”:


    Results in:

So how should I configure some rules to ping both Internet Protocols without setting the IP addresses for every single host manually? :thinking:

It looks like there was a bug in the check_icmp active check script that fixed just last week. See

I hope this fix will make it into the next 2.0.0 release.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.