我已经在我的Ubuntu系统中安装了nagios软件包。在打开配置页localhost/nagios3之后,我成功地登录了。之后,当我从左侧菜单中选择任意选项时,它将显示以下错误之一
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
如何解决这个问题?
发布于 2014-03-05 21:55:56
请检查Apache配置文件/etc/apache2/sites-available/nagios3.conf,
/etc/apache2/conf.d/nagios3.conf or similar有类似于"ScriptAlias“的条目
下面(请确保您有正确的文件系统路径):
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3发布于 2017-05-09 02:33:45
还可以检查启用了哪些apache模块--您可以在ls -la /etc/apache2/mods-enabled中看到它们。您需要启用php和cgi模块。您需要安装php,并且可能需要更改已启用的mpm模块。在Ubuntu16.04上,我必须运行以下命令才能通过这个错误:
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中列出。
发布于 2015-12-05 22:50:43
我发现,在同样的情况下,我缺少了一些依赖项,因为教程没有包含它们。我找到了一个解决了我的问题。你应该检查一下是否安装的比你多-
apt-get install build-essential php5-gd wget libgd2-xpm-dev libapache2-mod-php5 apache2-utils daemon unziphttps://askubuntu.com/questions/307722
复制相似问题