Host check ping passes - Smart ping fails

CMK version: Checkmk Enterprise Edition 2.2.0p16
OS version: OEL8

We monitor an external SAAS application. Nothing complicated - just monitor that it’s up (via ping) and a certificate check.

In Checkmk the host is up, and the connection test shows that it can ping the host’s IP successfully.

But for our internal SLAs, we need availability data for the ping. Which I don’t believe you can get with just the host check. So for other services we add a PING service via Settings > HTTP, TCP, Email,… > Check hosts with PING (ICMP Echo Request).

However, this ping fails. Host continues to be up and connection test is fine:

But the service ping fails:

No doubt it’s something quirky on the service provider’s end (as this smart ping check passes on other hosts/services). But I’m not really sure how to figure out what may be the issue.

not sure if it’s gonna match your problem but, we had a similar thing for a customer site in the past and my notes were:

I dug into the tcpdump and the only thing I could see differently between the smart pings (that worked) and the check_icmp pings (that didn’t work) was the data length.

Luckily, check_icmp lets us manipulate the data length, using the “-b” switch. So we can build pings that match the smart pings packet size exactly:

OMD[site]:~$ ~/lib/nagios/plugins/check_icmp -n 3 -l 137 -b 64 -w 2000.00,75% -c 5000.00,90% 10.10.10.10

CRITICAL - 10.10.10.10: rta nan, lost 100%|rta=0.000ms;2000.000;5000.000;0; pl=100%;75;90;; rtmax=0.000ms;;;; rtmin=0.000ms;;;;

# !! so using "-b 56" (plus 8 bit header) to get the 64 bit of the smart ping:

OMD[site]:~$ ~/lib/nagios/plugins/check_icmp -n 3 -l 137 -b 56 -w 2000.00,75% -c 5000.00,90% 10.10.10.10

OK - 10.10.10.10: rta 34.947ms, lost 0%|rta=34.947ms;2000.000;5000.000;0; pl=0%;75;90;; rtmax=34.981ms;;;; rtmin=34.928ms;;;;
3 Likes

I think you’re on to something there!

Dumb question (sorry, new to Checkmk) - is there a guide somewhere on creating a custom service with these parameters?

not a complete guide, but i think the rule “Integrate Nagios plugins” is fairly simple :slight_smile: sorry, forgot to mention that in my previous post.

1 Like

Aha! Perfect, thank you!

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.