前文已经太长,当时出现了两个错误,经过搜索,发现是apache2的问题,内部默认使用了apaceh2-mpm-worker,check_mk的网站应该在多线程处理上有些问题,因此老出错。
在Ubuntu下解决这个问题很简单,就是安装apache2-mpm-prefork,这是每个请求独立用一个进程的方式。
- ot@icinga:/etc/check_mk# apt-get install apache2-mpm-prefork
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages will be REMOVED:
- apache2-mpm-worker
- The following NEW packages will be installed:
- apache2-mpm-prefork
- 0 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]? y
- Get: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
现在打开网页,问题解决。