最近安装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出现的错误的更多相关文章

  1. 安装nagios出现的两个错误记录

    最近在安装nagios,出现几个错误记录: 一 检查nagios配置的时候出现错误如下: Warning: Duplicate definition found for host 'kelly' (c ...

  2. CentOS 安装nagios

    Nagios的介绍: 1.Nagios是一个监控系统运行状态和网络信息的监控系统.它能监控所指定的本地或远程主机的系统状态以及运行的服务,同时提供异常通知的功能. 2. Nagios可运行在Linux ...

  3. ubuntu下安装nagios

    第一步安装apache root@root01-virtual-machine:/etc/apache2/conf-available# vi charset.conf 可修改apache服务器的编码 ...

  4. centos7安装nagios步骤

    一.Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报 ...

  5. centos7上安装nagios

    前言:Nagios是一款开源的免费网络监视工具,可以监控Windows.Linux和Unix的主机状态,交换机路由器等网络设备,在系统或服务状态异常时发出邮件或短信报警,第一时间通知网站运维人员.流量 ...

  6. 安装nagios检测hadoop

    Nagios是常用的系统监控工具,提供了很多基本服务的监控脚本,如HTTP,MYSQL等,同时具有不错的可扩展性,自己可定制针对特定参数的监控脚本以及报警的方式. 我现在有三台机器:192.168.0 ...

  7. 6.5安装nagios

    最近因为,科研需要,接触上了Nagios,这里,我将安装笔记做个详解.为自己后续需要和博友们学习! VMware workstation 11 的下载 VMWare Workstation 11的安装 ...

  8. Centos 6.x 安装Nagios及WEB管理nagiosql实现windows及linux监控指南

    一.Nagios简介 Nagios是一款开源的电脑系统和网络监视工具,能有效监控Windows.Linux和Unix的主机状态,交换机路由器等网络设置,打印机等.在系统或服务状态异常时发出邮件或短信报 ...

  9. Nagios监控平台之一:在Centos上安装Nagios服务

    1.安装依赖包 #yum install httpd httpd-devel php openssl-devel #yum install gcc glibc glibc-common #yum in ...

随机推荐

  1. 前端福利之HTML5 UTF-8 中文乱码(转)

    <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> ...

  2. C++中static修饰的静态成员函数、静态数据成员

    1.静态成员函数.静态数据成员 在类中,用static修饰的成员函数被称为静态成员函数,而用static修饰的数据成员就称为静态数据成员:与普通的成员函数和数据成员不同, 静态成员函数和静态数据成员有 ...

  3. 如何使用Office Word 2007以上在写51CTO博客

    目前大部分的博客作者在用Word写博客这件事情上都会遇到以下3个痛点: 1.所有博客平台关闭了文档发布接口,用户无法使用Word,Windows Live Writer等工具来发布博客.使用Word写 ...

  4. 使用VMWare12.0安装Ubuntu系统

    使用VMWare12.0安装Ubuntu系统 Vmware12的虚拟机的文档说明: http://pubs.vmware.com/workstation-12/index.jsp#com.vmware ...

  5. B-spline Curves 学习之B样条曲线定义(4)

    B-spline Curves: Definition 本博客转自前人的博客的翻译版本,前几章节是原来博主的翻译内容,但是后续章节博主不在提供翻译,后续章节我在完成相关的翻译学习. (原来博客网址:h ...

  6. Jmeter-Ant 生成测试报告

    一.安装jmeter 配置环境变量 JMETER_HOME D:\SProgram\jmeter CLASSPATH %JMETER_HOME\lib\ext\ApacheJMeter_core.ja ...

  7. 自我介绍及如何注册GITHUB

    自我介绍 我是来自南通大学网络工程141班的周楠,我的学号是1413042014,我的兴趣是喜欢玩游戏(如果这算是一个兴趣爱好的话),喜欢尝试各种游戏. 如何注册一个GitHub账号? 1.首先我们需 ...

  8. TestNG(一)——起步

    你可以从 http://testng.org/doc/documentation-main.html 获取信息. 一.简介 TestNG是test next generation的缩写,即下一代测试技 ...

  9. linux下文件打包、压缩详解

    Linux平台下,有如下几种常见的压缩工具: ========================================================================= 工 具 ...

  10. 【转】如何避免OOM总结

    原文地址:http://www.csdn.net/article/2015-09-18/2825737/3 减小对象的内存占用 避免OOM的第一步就是要尽量减少新分配出来的对象占用内存的大小,尽量使用 ...