On Linux this can be done with one of the following:
-
Call the checkmk agent manually (as root) with the option
-p
(for profiling). -
Create the file
/etc/check_mk/profiling.cfg
with the following content:
LOG_SECTION_TIME=true
The agent will then create profiling data below /var/log/check_mk_agent/profiling/$date
.
Make sure you undo the changes after your analysis because the profiling data will grow rapidly.