Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Enable profiling in Checkmk

    Info

    WATO - CONFIGURATION → Global Settings → USER INTERFACE

    Don't use 'Enable profiling by request'. This option will profile a Multisite request randomly and you and at the most of the time it will be the slowest one.



  2. Install Python module

    Code Block
    languagebash
    root@cmk-VirtualBox:~# pip install snakeviz


  3. Modify the URL to profile by adding '&_profile=1'

    Code Block
    languagebash
    http://localhost/nagnis_master/check_mk/view.py?view_name=allhosts&_profile=1


  4. Now two files are created in ~/var/check_mk/

    Code Block
    root@klappanas:/opt/omd/sites/nagnis_master/var/check_mk# ll |grep multisite
    -rw-rw---- 1 nagnis_master nagnis_master 100246 Nov 6 13:35 multisite.profile
    -rwxr-xr-x 1 nagnis_master nagnis_master 155 Nov 6 13:35 multisite.profile.py*


  5. Move the file to another directory (e.g. /tmp)

    Code Block
    languagebash



Info


Verwandte Artikel

Filter by label (Content by label)
showLabelsfalse
max5
spaces~anastasios.thomaidis
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "~anastasios.thomaidis"
labelskb-how-to-article

...