1
0

LXC-configuration-CkeckMK 1.2 KB

123456789101112131415161718192021222324252627282930
  1. Intro:
  2. Even tho CMK itself advises against it, under some conditions this still is a viable option.
  3. So to show how, i’ve written this small tutorial.
  4. Assumptions:
  5. a running LXC-Container with a supported OS for CheckMK on Proxmox.
  6. basic setup of CheckMK (any edition) - with atleast one site configured.
  7. Issues (without further configuration)
  8. Temporary filesystem will give a warning - indicating performance is not optimal when doing a (re-)start.
  9. Creating temporary filesystem /omd/sites/testsite/tmp...mount: /opt/omd/sites/testsite/tmp: can't find in /etc/fstab.
  10. WARNING: You may continue without tmpfs, but the performance of Check_MK may be degraded.
  11. Solution:
  12. For every configured site on the box edit (even if it does not exist) with your favorite editor /etc/fstab and enter the following information (per-site):
  13. tmpfs /opt/omd/sites/<yoursitename>/tmp tmpfs noauto,user,mode=755,uid=<yoursitename>,gid=<yoursitename>2 0 0
  14. After having made these adjustment you will have to restart the box.
  15. Result:
  16. you now have a temporary filesystem in place for a/the sites you are running without OMD complaining about missing tmpfs.
  17. Happy monitoring !