I recently upgraded from 1.6 to 2.0. For most of my hosts, the “Check_MK Discovery” service is now reporting something like:
1 unmonitored services (kernel_performance:1)WARN, 3 vanished services (kernel:3), 1 new host labels
I noticed that if I run “cmk -II hostname” that the service definition for that host appears to be “fixed”, but the “Check_MK Discovery” service is still in warning state until I reschedule the check via the GUI.
I don’t want to have to do that for dozens of hosts; how do I force the reschedule from the command line? Trying to use “Check_MK Discovery” as the name of the detect plugin does not work:
cmk --detect-plugins="Check_MK Discovery" hostname
[... python trace removed ...]
ValueError: Invalid characters in 'Check_MK Discovery' for CheckPluginName: ' '