Check_MK service alert with null summary

CMK version: CheckMK Raw 2.2.0p12
OS version (Core): Ubuntu / docker
OS version (Agent): freebsd (opnsense)

I’ve seen where there were problems with Check_MK service checks reporting null in 2.0 but I’m using 2.2.0p12. I’ve created a Host for an opnsense instance on which I’ve deployed the freebsd agent. I’ve deleted the host (confirmed it was gone with cmk -D) and re-added but the same alert comes back. The host is fairly new but the issue may have started when I changed its hostname. I’ve confirmed that the agent is returning the proper hostname, however.

cmk --debug -vvn redacted.somedomain.com
Checkmk version 2.2.0p12
+ FETCHING DATA
  Source: SourceInfo(hostname='redacted.somedomain.com', ipaddress='192.168.54.2', ident='agent', fetcher_type=<FetcherType.PROGRAM: 5>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f80f88a10d0]
Read from cache: AgentFileCache(redacted.somedomain.com, path_template=/omd/sites/somesite/tmp/check_mk/cache/{hostname}, max_age=MaxAge(checking=0, discovery=90.0, inventory=90.0), simulation=False, use_only_cache=False, file_cache_mode=6)
Not using cache (Too old. Age is 79 sec, allowed is 0 sec)
[ProgramFetcher] Execute data source
Calling: ssh -tt -p 22 -i /etc/check_mk/somesite-monitoring-key.pem -l monitoring-user-check_mk redacted.somedomain.com
Write data to cache file /omd/sites/somesite/tmp/check_mk/cache/redacted.somedomain.com
Trying to acquire lock on /omd/sites/somesite/tmp/check_mk/cache/redacted.somedomain.com
Got lock on /omd/sites/somesite/tmp/check_mk/cache/redacted.somedomain.com
Releasing lock on /omd/sites/somesite/tmp/check_mk/cache/redacted.somedomain.com
Released lock on /omd/sites/somesite/tmp/check_mk/cache/redacted.somedomain.com
[cpu_tracking] Stop [7f80f88a10d0 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.04, children_system=0.01, elapsed=0.48999999836087227))]
  Source: SourceInfo(hostname='redacted.somedomain.com', ipaddress='192.168.54.2', ident='piggyback', fetcher_type=<FetcherType.PIGGYBACK: 4>, source_type=<SourceType.HOST: 1>)
[cpu_tracking] Start [7f80f7df3410]
Read from cache: NoCache(redacted.somedomain.com, path_template=/dev/null, max_age=MaxAge(checking=0.0, discovery=0.0, inventory=0.0), simulation=False, use_only_cache=False, file_cache_mode=1)
[PiggybackFetcher] Execute data source
No piggyback files for 'redacted.somedomain.com'. Skip processing.
No piggyback files for '192.168.54.2'. Skip processing.
[cpu_tracking] Stop [7f80f7df3410 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
+ PARSE FETCHER RESULTS
<<<check_mk>>> / Transition NOOPParser -> HostSectionParser
<<<checkmk_agent_plugins_lnx:sep(0)>>> / Transition HostSectionParser -> HostSectionParser
<<<df>>> / Transition HostSectionParser -> HostSectionParser
<<<zfsget>>> / Transition HostSectionParser -> HostSectionParser
<<<zfs_arc_cache>>> / Transition HostSectionParser -> HostSectionParser
<<<mounts>>> / Transition HostSectionParser -> HostSectionParser
<<<ps>>> / Transition HostSectionParser -> HostSectionParser
<<<cpu>>> / Transition HostSectionParser -> HostSectionParser
<<<uptime>>> / Transition HostSectionParser -> HostSectionParser
<<<freebsd_geom_mirrors>>> / Transition HostSectionParser -> HostSectionParser
<<<kernel>>> / Transition HostSectionParser -> HostSectionParser
<<<netctr>>> / Transition HostSectionParser -> HostSectionParser
<<<ntp>>> / Transition HostSectionParser -> HostSectionParser
<<<tcp_conn_stats>>> / Transition HostSectionParser -> HostSectionParser
<<<zpool_status>>> / Transition HostSectionParser -> HostSectionParser
<<<statgrab_proc>>> / Transition HostSectionParser -> HostSectionParser
<<<statgrab_disk>>> / Transition HostSectionParser -> HostSectionParser
<<<statgrab_page>>> / Transition HostSectionParser -> HostSectionParser
<<<statgrab_net>>> / Transition HostSectionParser -> HostSectionParser
<<<statgrab_mem>>> / Transition HostSectionParser -> HostSectionParser
  HostKey(hostname='redacted.somedomain.com', source_type=<SourceType.HOST: 1>)  -> Add sections: ['check_mk', 'checkmk_agent_plugins_lnx', 'cpu', 'df', 'freebsd_geom_mirrors', 'kernel', 'mounts', 'netctr', 'ntp', 'ps', 'statgrab_disk', 'statgrab_mem', 'statgrab_net', 'statgrab_page', 'statgrab_proc', 'tcp_conn_stats', 'uptime', 'zfs_arc_cache', 'zfsget', 'zpool_status']
  HostKey(hostname='redacted.somedomain.com', source_type=<SourceType.HOST: 1>)  -> Add sections: []
Received no piggyback data
[cpu_tracking] Start [7f80f7df0950]
value store: synchronizing
Trying to acquire lock on /omd/sites/somesite/tmp/check_mk/counters/redacted.somedomain.com
Got lock on /omd/sites/somesite/tmp/check_mk/counters/redacted.somedomain.com
value store: loading from disk
Releasing lock on /omd/sites/somesite/tmp/check_mk/counters/redacted.somedomain.com
Released lock on /omd/sites/somesite/tmp/check_mk/counters/redacted.somedomain.com
No piggyback files for 'redacted.somedomain.com'. Skip processing.
No piggyback files for '192.168.54.2'. Skip processing.
[cpu_tracking] Stop [7f80f7df0950 - Snapshot(process=posix.times_result(user=0.0, system=0.0, children_user=0.0, children_system=0.0, elapsed=0.0))]
[agent] Success, [piggyback] Success (but no data found for this host), execution time 0.5 sec | execution_time=0.490 user_time=0.000 system_time=0.000 children_user_time=0.040 children_system_time=0.010 cmk_time_ds=0.440 cmk_time_agent=0.000

To answer my own question (and for posterity), I created a ‘TCP Port for connection’ rule for the corresponding hosts (I’m using label conditions). After setting the listening port to 22 for the appropriate hosts and applying, I re-ran the check and it cleared.

2 Likes