在安装nagios完,后打开web界面,出现了  The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server  这样错误提示。

最初想到的是,是不是我安装的顺序错了我是最后才安装nagios的插件的,然后我重新安装了一遍,把nagios的插件放在第二位安装;搞定后,发现,解决了部分问题,但是还有两个选项无法显示,一按都有错误提示。后来我就上网找了一下,我用的是如下方法

解决方案,确定安装下面的包。libgd 
libgd-devel 
libpng 
libpng-devel 
libjpeg 
libjpeg-devel 
zlib 
zlib-devel 回到nagios安装时解压开的目录

#make devclean

./configure --with-gd-lib=/usr/lib   --with-gd-inc=/usr/include

#make all

#make install

#make install-init

#make install-config

#make install-commandmode

上面提到的安装包我没有全部用到,我只是安装了yum install gd-devel,但我觉得最关键的是 ./configure --with-gd-lib=/usr/lib   --with-gd-inc=/usr/include   ,这个,因为一开始我是没有设置这些参数的。

假如有CGI文件生成,还报以上错误,检查httpd的配置文件是否增加有如下语句:

ScriptAlias /nagios/cgi-bin “/usr/local/nagios/sbin”

Alias /nagios "/usr/local/nagios/share"

The requested URL /nagios/cgi-bin/statusmap.cgi was not found on this server相关推荐

  1. error: The requested URL returned error: 401 Unauthorized while accessing

    在使用git pull.git push.git clone会报类似如下的错误:  error: The requested URL returned error: 401 Unauthorized ...

  2. Object not found! The requested URL was not found on this server.... 报错解决方案

    Object not found! The requested URL was not found on this server.... 报错解决方案 参考文章: (1)Object not foun ...

  3. git 提交失败 HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    为什么80%的码农都做不了架构师?>>>    关于git提交失败报错POST git-receive-pack (chunked)或者HTTP 413 curl 22 The re ...

  4. 解决github push错误The requested URL returned error: 403 Forbidden while accessing(转)

    github push错误: git push error: The requested URL returned error: 403 Forbidden while accessing https ...

  5. fatal: unable to access : The requested URL returned error: 403

    错误提示如下 C:\Users\AllenIverson\Desktop\gitbook-test>git push -u gitbook master remote: Forbidden fa ...

  6. Jenkins中连接Git仓库时提示:error: The requested URL returned error: 401 Unauthorized while accessing

    场景 在Jenkins中新建任务后,在源码管理中选择Git,并且通过用户名和密码的 凭证方式连接到Git仓库时提示: error: The requested URL returned error: ...

  7. CentOS6在使用yum install 时提示镜像源路径不存在:PYCURL ERROR 22 - “The requested URL returned error: 404 Not Found

    场景 CentOS6.9的版本在使用 yum install gcc-c++ 安装C和C++的插件时提示: PYCURL ERROR 22 - "The requested URL retu ...

  8. 使用squid代理时出现“The requested URL could not be retrieved”

    问题: 当使用代理访问网站时出现以下错误: ======================================== The requested URL could not be retrie ...

  9. The requested URL /**** was not found on this server

    当ubuntu使用Apache搭建web服务器是,访问网页失败,出现: The requested URL /"文件名" was not found on this server ...

最新文章

  1. 在装有Ubuntu16.04的VMware虚拟机下安装OpenCV3.2.0
  2. 如何解决notefirst的闪退问题?
  3. 微课竞赛系统的设计与实现所需工作条件_工作室文化建设展示(3)
  4. 【图文并茂】RNN、LSTM、GRU、ConvLSTM、ConvGRU、ST-LSTM的总结
  5. wxWidgets:wxRichTextFieldTypeStandard类用法
  6. 1134:合法C标识符查
  7. Linux下备份cisco路由配置
  8. httpclient封装获取响应实体_Httpclient 接口自动化
  9. 流媒体服务器性能测试
  10. react 脚手架配置代理
  11. 基于机器视觉技术的表面缺陷检测技术综述
  12. php publish,Laravel执行php artisan vendor:publish卡住问题解决方法
  13. Android应用性能剖析全攻略
  14. Arthas——热替换
  15. 2022年深圳市科技型中小微企业贷款贴息资助标准及申报条件,补贴100万
  16. 以下是一些常用的上位机开发工具:
  17. java项目小组项目总结报告_项目总结报告
  18. 7.30 正睿暑期集训营 A班训练赛
  19. java redis驱动包下载
  20. JDBCamp;amp;c3p0、事务、批处理、多线程 于一体的经典秘方QueryRunner (common-dbutils)

热门文章

  1. 复制集配置文件linux,mongodb的复制集实现
  2. 深度学习:tensorflow层次结构,朴素NN代码实现tensorflow
  3. 入坑-DM导论-第一章绪论笔记
  4. String类型的学习
  5. Sql Group by 使用
  6. 极大似然估计(Maximum Likelihood)与无监督
  7. java线索二叉树的实现_JAVA递归实现线索化二叉树
  8. python归一化处理_详解python实现数据归一化处理的方式:(0,1)标准化
  9. python 真多线程_Python之路200个小例子,在线网页版来了,从此学习更方便!
  10. 问题 C: PK没有女朋友(判断是否存在1个三元环,dfs)