前文已經太長,當時出現了兩個錯誤,經過搜尋,發現是apache2的問題,內部預設使用了apaceh2-mpm-worker,check_mk的網站應該在多執行緒上有些問題,因此老出錯。
在Ubuntu下解決這個問題很簡單,就是安裝apache2-mpm-prefork,這是每個請求獨立用一個進程的方式。
root@icinga:/etc/check_mk# apt-get install apache2-mpm-prefork Reading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages will be REMOVED: apache2-mpm-workerThe following NEW packages will be installed: apache2-mpm-prefork0 upgraded, 1 newly installed, 1 to remove and 2 not upgraded.Need to get 2,352 B of archives.After this operation, 0 B of additional disk space will be used.Do you want to continue [Y/n]? yGet:1 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main apache2-mpm-prefork amd64 2.2.22-6ubuntu2.2 [2,352 B]Fetched 2,352 B in 2s (1,071 B/s) dpkg: apache2-mpm-worker: dependency problems, but removing anyway as you requested: apache2 depends on apache2-mpm-worker (= 2.2.22-6ubuntu2.2) | apache2-mpm-prefork (= 2.2.22-6ubuntu2.2) | apache2-mpm-event (= 2.2.22-6ubuntu2.2) | apache2-mpm-itk (= 2.2.22-6ubuntu2.2); however: Package apache2-mpm-worker is to be removed. Package apache2-mpm-prefork is not installed. Package apache2-mpm-event is not installed. Package apache2-mpm-itk is not installed.(Reading database ... 65483 files and directories currently installed.)Removing apache2-mpm-worker ... * Stopping web server apache2 ... waiting . [ OK ]Selecting previously unselected package apache2-mpm-prefork.(Reading database ... 65478 files and directories currently installed.)Unpacking apache2-mpm-prefork (from .../apache2-mpm-prefork_2.2.22-6ubuntu2.2_amd64.deb) ...Setting up apache2-mpm-prefork (2.2.22-6ubuntu2.2) ... * Starting web server apache2
現在開啟網頁,問題解決。