首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Nagios显示“未找到”错误

Nagios显示“未找到”错误
EN

Ask Ubuntu用户
提问于 2013-06-13 12:50:50
回答 3查看 16.5K关注 0票数 4

我已经在我的Ubuntu系统中安装了nagios软件包。在打开配置页localhost/nagios3之后,我成功地登录了。之后,当我从左侧菜单中选择任意选项时,它将显示以下错误之一

代码语言:javascript
复制
The requested URL /cgi-bin/nagios3/extinfo.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/showlog.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/notifications.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/history.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/status.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/outages.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/statuswrl.cgi was not found on this server.
The requested URL /cgi-bin/nagios3/trends.cgi was not found on this server.

Apache/2.2.14 (Ubuntu) Server at 192.168.1.7 Port 80

如何解决这个问题?

EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2014-03-05 21:55:56

请检查Apache配置文件/etc/apache2/sites-available/nagios3.conf

/etc/apache2/conf.d/nagios3.conf or similar有类似于"ScriptAlias“的条目

下面(请确保您有正确的文件系统路径):

代码语言:javascript
复制
  ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
  ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
票数 3
EN

Ask Ubuntu用户

发布于 2017-05-09 02:33:45

还可以检查启用了哪些apache模块--您可以在ls -la /etc/apache2/mods-enabled中看到它们。您需要启用php和cgi模块。您需要安装php,并且可能需要更改已启用的mpm模块。在Ubuntu16.04上,我必须运行以下命令才能通过这个错误:

代码语言:javascript
复制
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo a2enmod cgi
sudo apt-get install libapache2-mod-php
sudo a2enmod php7.0
sudo service apache2 restart

可用模块在/etc/apache2/mods-available中列出。

票数 0
EN

Ask Ubuntu用户

发布于 2015-12-05 22:50:43

我发现,在同样的情况下,我缺少了一些依赖项,因为教程没有包含它们。我找到了一个解决了我的问题。你应该检查一下是否安装的比你多-

代码语言:javascript
复制
apt-get install build-essential php5-gd wget libgd2-xpm-dev libapache2-mod-php5 apache2-utils daemon unzip
票数 -2
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/307722

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档