[rhel6.5]配置nagios过程中的几个错误
2018-03-07 11:05
281 查看
1.点击拓扑图,不会出现图形信息,这个错误是因为缺少gd-devel安装宝造成的;
使用命令检测
需要创建默认的软件发布目录
在配置好
大多数是因为
这里还有一个没有结局的问题
提示无法解释来自
网上提示说是因为没有
还有一种说法是因为权限问题,执行
对于这个问题,反其道而行之,将编译的选项
这里给出我的编译选项
问题就解决了
浏览器访问显示
[root@server20 nagios-cn-3.2.3]# yum install /mnt/nagios/gd-devel-2.0.35-11.el6.x86_64.rpm -y
使用命令检测
httpd服务状态出现
403的错误,这个是由于请求的页面不存在导致的
[root@server20 nagios]# ./libexec/check_http -H 172.25.23.20 -p 80 HTTP WARNING: HTTP/1.1 403 Forbidden - 4184 bytes in 0.000 second response time |time=0.000434s;;;0.000000 size=4184B;;;0
需要创建默认的软件发布目录
[root@server20 nagios]# touch /var/www/html/index.html [root@server20 nagios]# chown apache.apache /var/www/html/index.html [root@server20 nagios]# ./libexec/check_http -H 172.25.23.20 -p 80 HTTP OK: HTTP/1.1 200 OK - 266 bytes in 0.001 second response time |time=0.000536s;;;0.000000 size=266B;;;0
在配置好
nagios之后启动服务
httpd,
nagios,使用浏览器访问,提示
URL/nagios不存在
大多数是因为
apache用户没有访问
nagios目录的权限
[root@server20 nagios]# id apache uid=48(apache) gid=48(apache) groups=48(apache) [root@server20 nagios]# usermod -G nagios apache
这里还有一个没有结局的问题
[root@server20 nagios]# ./libexec/check_ping -H 172.25.23.21 -w 100,20% -c 200,50% -p 5 /bin/ping CRITICAL - Could not interpret output from ping command
提示无法解释来自
ping命令的输出,
check_ping命令是
nagios-plugins插件提供的,在编译这个插件时的选项如下
(reverse-i-search)`./co': ./configure --with-nagios-user=nagios --enable-extra-opts --enable-libtap --enable-perl-modules --with-cgiurl --with-perl --with-ping-command=/bin/ping --with-trusted-path --with-nagios-group=nagios
网上提示说是因为没有
指定--with-ping-command=/bin/ping,这个选项,在我指定了之后,并且重新进行编译安装之后,错误还是存在;
还有一种说法是因为权限问题,执行
chmod u+s /bin/ping
对于这个问题,反其道而行之,将编译的选项
--with-ping-command=/bin/ping去掉,这里使用的软件是
nagios-plugins-2.1.1.tar.gz
这里给出我的编译选项
[root@server20 nagios-plugins-2.1.1]# ./configure --with-nagios-user=nagios --enable-extra-opts --enable-libtap --enable-perl-modules --with-cgiurl --with-perl --with-trusted-path --with-nagios-group=nagios
问题就解决了
[root@server20 libexec]# ./check_ping -H 172.25.23.21 -w 100,20% -c 200,50% -p 5 PING OK - Packet loss = 0%, RTA = 0.31 ms|rta=0.310000ms;100.000000;200.000000;0.000000 pl=0%;20;50;0
浏览器访问显示
ping状态正常
相关文章推荐
- kamailio服务器负载均衡配置过程中,将几个sip服务器同时指向同一个mysql,出现的错误解决
- [rhel6.5]安装配置nagios本机监控,以及远程监控其他主机
- [rhel6.5]ISCSI配置过程详解
- [rhel6.5]配置luci和ricci + Apache+iscsi || gfs2 + 遇到的错误以及解决办法
- linux下系统启动时,几个配置文件 /etc/profile、~/.bash_profile 等几个文件的执行过程,先后顺序
- 如何解决sql server 2000安装过程中出现 安装程序配置服务器失败 错误
- 运维笔记41 zabbix3.2监控搭建(rhel6.5+nginx0.7+mysql5.7+php5.6+rpm安装的zabbix3.2带详细排错过程)
- Linux(RHEL 5)中Apache服务的安装与配置全过程
- 我在写博客过程中犯过的几个错误
- rhel6.5网卡初始化错误解决
- 【原型设计】手机应用加载过程中常见的几个错误
- 对haproxy配置学习过程中几个点进行总结
- nagios安装配置 nagios监控利器部署详细过程
- RHEL6.5 安装 DB2 10.5 错误 The host name is invalid
- Linux(Centos)Apache安装配置过程中可能出现的错误
- 安装joomla过程中phpmyadmin几个错误的解决
- 通过阿里云的网络yum源来配置 RHEL6.5 或Centos6.5网络yum源
- nagios监控配置错误汇总
- Android Studio开发环境配置过程中的几个问题
- playsms+kannel 配置过程中常见错误总结(1)