Skip to end of metadata
Go to start of metadata

Debug the smart ping in the cmc.log

  1. Increase the log to debug
    1. How to collect troubleshooting data for various issue types#Core → Smart ping
  2. Checkin the cmc.log (as site user)

    grep -e <IP> -e <HOSTNAME> ~/var/log/cmc.log | grep -e "smartping timeout" -e "received p"

Livestatus query

With this command you can check the check interval, retry interval, smart ping timeout and the max check attempts of the host:

Please replace host_name = Myhost with the affected Checkmk Hosts

OMD[mysite]:~$ lq "GET hosts\nColumns: host_name check_interval retry_interval smartping_timeout max_check_attempts state state_type\nFilter: host_name = <Myhost>"

Debugging the smart ping via cli

For using this command, you have to create (as site user) a file in ~/local/bin. The file should look like this: thecontentof./

OMD[workshop]:~/local/bin$ ~/lib/cmc/icmpreceiver |python3 ~/local/bin/ |grep --line-buffered  "" |perl -pe 'use POSIX strftime; print strftime "[%Y-%m-%d %H:%M:%S] ", localtime'

or you can use the command with the

 ~/lib/cmc/icmpreceiver |python3 /local/bin/ |grep --line-buffered  "" |ts -i

if perl is not possible, you will find here :

the content of ./

#!/usr/bin/env python3

import ipaddress
import sys

def main() -> None:
    while True:
        addr = ipaddress.ip_address(

if __name__ == "__main__":

you can use this online instead of the ./

 ~/lib/cmc/icmpreceiver | perl -ne 'map { CORE::say join "." => unpack "CCCC", pack "L", $_ } unpack "L*";'