安装nagios出现的错误
最近安装nagios时,检查的的状态都没有什么问题,就是监控系统的状态显示不出来
检测的结果如下:
[root@lb02 ~]# /etc/init.d/httpd start
Starting httpd:
You have new mail in /var/spool/mail/root
[root@lb02 ~]#
[root@lb02 ~]#
[root@lb02 ~]# /etc/init.d/nagios checkconfig
Running configuration check...
Nagios Core 3.5.
Copyright (c) - Nagios Core Development Team and Community Contributors
Copyright (c) - Ethan Galstad
Last Modified: --
License: GPL Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/hosts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/services.cfg'...
Processing object config directory '/usr/local/nagios/etc/objects/services'...
Read object config files okay... Running pre-flight check on configuration data... Checking services...
Checked services.
Checking hosts...
Checked hosts.
Checking host groups...
Checked host groups.
Checking service groups...
Checked service groups.
Checking contacts...
Checked contacts.
Checking contact groups...
Checked contact groups.
Checking service escalations...
Checked service escalations.
Checking service dependencies...
Checked service dependencies.
Checking host escalations...
Checked host escalations.
Checking host dependencies...
Checked host dependencies.
Checking commands...
Checked commands.
Checking time periods...
Checked time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings... Total Warnings:
Total Errors: Things look okay - No serious problems were detected during the pre-flight check
查看nagios日志的内容:
[root@lb02 var]# tail nagios.log
[] LOG VERSION: 2.0
[] Finished daemonizing... (New PID=)
[] Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd' as named pipe: () -> No such file or directory. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.
[] Bailing out due to errors encountered while trying to initialize the external command file... (PID=)
[] Nagios 3.5. starting... (PID=)
[] Local time is Sat Sep :: CST
[] LOG VERSION: 2.0
[] Finished daemonizing... (New PID=)
错误原因:大致是我不能创建nagios.cmd,到/usr/local/nagios/var目录下竟然发现没有rw目录,创建之后重新加载nagios
[root@lb02 var]# mkdir rw
[root@lb02 var]# chown -R nagios.nagios rw
[root@lb02 var]# ll
total
drwxrwxr-x nagios nagios Sep : archives
-rw-r--r-- nagios nagios Sep : nagios.lock
-rw-rw-r-- nagios nagios Sep : nagios.log
-rw-r--r-- nagios nagios Sep : objects.cache
-rw-rw-r-- nagios nagios Sep : retention.dat
drwxr-xr-x nagios nagios Sep : rw
drwxr-xr-x root root Sep : spool
此时才加载到正确的监控效果。
安装nagios出现的错误的更多相关文章
- 安装nagios出现的两个错误记录
最近在安装nagios,出现几个错误记录: 一 检查nagios配置的时候出现错误如下: Warning: Duplicate definition found for host 'kelly' (c ...
- CentOS 安装nagios
Nagios的介绍: 1.Nagios是一个监控系统运行状态和网络信息的监控系统.它能监控所指定的本地或远程主机的系统状态以及运行的服务,同时提供异常通知的功能. 2. Nagios可运行在Linux ...
- ubuntu下安装nagios
第一步安装apache root@root01-virtual-machine:/etc/apache2/conf-available# vi charset.conf 可修改apache服务器的编码 ...
- centos7安装nagios步骤
一.Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报 ...
- centos7上安装nagios
前言:Nagios是一款开源的免费网络监视工具,可以监控Windows.Linux和Unix的主机状态,交换机路由器等网络设备,在系统或服务状态异常时发出邮件或短信报警,第一时间通知网站运维人员.流量 ...
- 安装nagios检测hadoop
Nagios是常用的系统监控工具,提供了很多基本服务的监控脚本,如HTTP,MYSQL等,同时具有不错的可扩展性,自己可定制针对特定参数的监控脚本以及报警的方式. 我现在有三台机器:192.168.0 ...
- 6.5安装nagios
最近因为,科研需要,接触上了Nagios,这里,我将安装笔记做个详解.为自己后续需要和博友们学习! VMware workstation 11 的下载 VMWare Workstation 11的安装 ...
- Centos 6.x 安装Nagios及WEB管理nagiosql实现windows及linux监控指南
一.Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报 ...
- Nagios监控平台之一:在Centos上安装Nagios服务
1.安装依赖包 #yum install httpd httpd-devel php openssl-devel #yum install gcc glibc glibc-common #yum in ...
随机推荐
- kubernetes多节点的pod挂载同一个cephfs目录
一.安装cephfs 方法一: 直接进入deploy目录,执行: ceph-deploy --overwrite-conf mds create ceph01:mds-daemon- 上面的ceph0 ...
- jquery中prop()和attr()的区别
相比attr,prop是1.6.1才新出来的,两者从中文意思理解,都是获取/设置属性的方法(attributes和properties).只是,window或document中使用.attr()方法在 ...
- 递归,回溯和DFS的区别
递归是一种算法结构,回溯是一种算法思想一个递归就是在函数中调用函数本身来解决问题回溯就是通过不同的尝试来生成问题的解,有点类似于穷举,但是和穷举不同的是回溯会“剪枝”,意思就是对已经知道错误的结果没必 ...
- thinkphp ajax分页加载更多最简单的实现方法
<div class="li_list"> <volist name="list" id="vo"> <div ...
- Appium之打开应用时提示框处理
当打开一个应用时,会有一个无关紧要的提示框,如果要继续操作,需要先关闭提示框,如下图(如新用户福利提示): 此时,如果你直接用Appium inspector或者Android uiautomator ...
- POJ1751 Highways 2017-04-14 15:46 70人阅读 评论(0) 收藏
Highways Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 14819 Accepted: 4278 Speci ...
- GPS模块输出的NMEA数据ddmm.mmmm转换成dd.ddddd并在google Earth Pro中描点
GPS模块输出的数据是NMEA格式,其中GPGGA字段包含我们需要的经纬度信息. 例:$GPGGA,092204.999,4250.5589,S,14718.5084,E,1,04,24.4,12 ...
- GBK还是UTF-8? Eclipse连接TFS的编码之痛!encoding, encoding, encoding…
在中文Windows操作系统上安装Eclipse或MyEclipse,默认会将Eclipse的编码设置为GBK,与操作系统的默认编码保存一致. 在这种默认设置下,在Eclipse新增的文件不会自动被团 ...
- C#读取MP3文件的专辑图片和ID3V2Tag信息(带代码)
第二次更新,后面的代码有问题,有些专辑图片读取不到.发现是PNG图片的问题.在读取的过程中调试发现,图片帧前10个字节包含了图片的格式,在有些歌曲写着JPEG的格式,数据却是PNG的.先说下思路. j ...
- 知识记录——CSS规范(文章内容为转载)
原作者信息 作者:词晖 链接:http://www.zhihu.com/question/19586885/answer/48933504 来源:知乎 著作权归原作者所有,转载请联系原作者获得授权. ...