最近安装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. Linux服务器上日志报com.mysql.jdbc.PacketTooBigException: Packet for query is too large (1783 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.

    在做查询数据库操作时,报了以上错误,还有out of memery heap hacp ,原因是MySQL的max_allowed_packet设置过小引起的,我一开始设置的是1M,后来改为了20M ...

  2. 数据结构(c语言版)文摘

    第一章  绪论 数据结构:是一门研究非数值计算的程序设计问题中计算机的操作对象以及它们之间的关系和操作等的学科. 数据:是对客观事物的符号表示,在计算机科学中是指所有能输入到计算机中并被计算机程序处理 ...

  3. 检查路径是否存在与创建指定路径(mfc)

    检查路径是否存在 if (access("D:\\Work\\Encryption\\DES", 0)) 为真,则路径不存在 创建指定路径 system("md D:\\ ...

  4. eclipse 高效快捷键大全

    一个Eclipse骨灰级开发者总结了他认为最有用但又不太为人所知的快捷键组合.通过这些组合可以更加容易的浏览源代码,使得整体的开发效率和质量得到提升. 1. ctrl+shift+r:打开资源 这可能 ...

  5. IntentService介绍

    1.IntentService 是什么 一个封装了HandlerThread和Handler的异步框架. 是一种特殊Service,继承自Service,是抽象类,必须创建子类才可以使用. 可用于执行 ...

  6. [leetcode] 7. Binary Tree Level Order Traversal II

    这次相对来讲复杂点,题目如下: Given a binary tree, return the bottom-up level order traversal of its nodes' values ...

  7. AndroidStudio-Error Loading Project: Cannot load 3 facets

    Error Loading Project: Cannot load 3 facets 解决方法,在 File-->Settings-->Plugins-----> 勾选 Andro ...

  8. Objective-C 学习笔记(一) 语言程序结构

    Objective-C语言程序结构 “Hello World”简单示例 #import <Foundation/Foundation.h> //预处理命令,它告诉Objective-C语言 ...

  9. c# 前后日期设置

    List<string> list = new List<string>(); //根据当月 显示前6个月 for(int i=0;i<6;i++) { list.add ...

  10. Devexpress Winform初学笔记

    作为一个软件开发人员来说,得有自己的博客,可以用来ZB,哈哈!玩笑话..... 写博客并不仅仅是用来ZB的,他可以用来记录你在技术道路上探索遇到的坎,当然也有提高逼格的次然因素啦!小弟刚入博客园不久, ...