check_mk 页面错误处理方法

来源:互联网 发布:数据库 连不上 grant 编辑:程序博客网 时间:2024/05/16 07:50

前文已经太长,当时出现了两个错误,经过搜索,发现是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   

现在打开网页,问题解决。

原创粉丝点击