Missing Service Check ( Vanished )

Server: 2.0.0p20 (CEE)
Agent: check-mk-agent-2.0.0p3-1
Centos 7

Recently a internet service (ntp) died for some reason which is being monitored by check_mk and instead of sending a CRIT notification the service vanished from the host monitored services.

Is there a log that will show me what happened?

You can check the Hosts and service event history. From the command line do a recursive grep for ‘NTP’ under ~/var/check_mk/core/

This is what I saw in the history file:

[December 10, 2022 2:10:33 AM] CURRENT SERVICE STATE: server01;NTP Time;OK;HARD;1;Offset: -0.3120 ms, Time since last sync: 12 minutes 22 seconds
[December 10, 2022 7:12:18 AM] CURRENT SERVICE STATE: server01;NTP Time;OK;HARD;1;Offset: -0.4060 ms, Time since last sync: 13 minutes 30 seconds

[December 10, 2022 9:08:47 AM] CURRENT SERVICE STATE: server01;NTP Time;OK;HARD;1;Offset: -0.8400 ms, Time since last sync: 6 minutes 29 seconds
[December 10, 2022 10:24:24 AM] INITIAL SERVICE STATE: server01;NTP Time;OK;HARD;1;Offset: -0.0330 ms, Time since last sync: 8 minutes 24 seconds
[December 10, 2022 11:40:23 AM] SERVICE ALERT: server01;Check_MK;OK;HARD;1;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec
[December 10, 2022 11:40:23 AM] SERVICE NOTIFICATION: check-mk-notify;server01;Check_MK;OK;check-mk-notify;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec ;;
[December 10, 2022 11:40:28 AM] EXTERNAL COMMAND: LOG;SERVICE NOTIFICATION: event_console;server01;Check_MK;OK;mkeventd;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec
[December 10, 2022 11:40:28 AM] SERVICE NOTIFICATION: event_console;server01;Check_MK;OK;mkeventd;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec
[December 10, 2022 11:40:29 AM] EXTERNAL COMMAND: LOG;SERVICE NOTIFICATION: event_console;server01;Check_MK;OK;subscription-wrapper.sh;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec
[December 10, 2022 11:40:29 AM] SERVICE NOTIFICATION: event_console;server01;Check_MK;OK;subscription-wrapper.sh;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec
[December 10, 2022 11:40:29 AM] EXTERNAL COMMAND: LOG;SERVICE NOTIFICATION: sb1automate,systems_team;server01;Check_MK;OK;mail;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec
[December 10, 2022 11:40:29 AM] SERVICE NOTIFICATION: sb1automate,systems_team;server01;Check_MK;OK;mail;[agent] Version: 2.0.0p3, OS: linux, Missing monitoring data for check plugins: ntp_time, execution time 4.3 sec

** What does it mean when it says INITIAL SERVICE STATE
** Also after the “SERVICE ALERT” Missing monitoring data… what does that mean?

What actually happened on the server01 – server rebooted and it took the HW clock which is 1 hour in advance. The NTP daemon tried to start but failed i was hoping check_mk will trigger a CRIT message saying NTP daemon is dead…

or process checking for NTP is not part of NTP_Time service?

This will happen if you have a look at the systemd service summary check. This check should show you that one service is faile (ntp daemon).

exactly the NTP check only tries to connect to the locally NTP service (ntpd or chrony) and outputs the result.

In your case the service check is not missing only the data for the NTP service is missing inside the agent output.

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.