Installing the Nagios Error

Source: Internet
Author: User

Tags: process start mis tar name ati this appears tween

Recently installed Nagios, check the status of no problem, that is, the status of the monitoring system is not displayed

The results of the test are as follows:

[Email protected] ~]#/etc/init.d/httpd startstarting httpd:you hasNewMailinch/var/spool/mail/Root[[email protected]~]# [[email protected]~]# [[email protected]~]#/etc/init.d/nagios checkconfigrunning Configuration check ... Nagios Core3.5.1Copyright (c) the- .Nagios Core Development Team and Community Contributorscopyright (c)1999- theEthan galstadlast Modified: ,- -- -License:GPLWebsite:http://www.nagios.orgReading Configuration data ... Read main config file okay ... ProcessingObjectConfig file'/usr/local/nagios/etc/objects/commands.cfg'... ProcessingObjectConfig file'/usr/local/nagios/etc/objects/contacts.cfg'... ProcessingObjectConfig file'/usr/local/nagios/etc/objects/timeperiods.cfg'... ProcessingObjectConfig file'/usr/local/nagios/etc/objects/templates.cfg'... ProcessingObjectConfig file'/usr/local/nagios/etc/objects/hosts.cfg'... ProcessingObjectConfig file'/usr/local/nagios/etc/objects/services.cfg'... ProcessingObjectConfig directory'/usr/local/nagios/etc/objects/services'... ReadObjectConfig files okay ... Running Pre-flight check on configuration data ...    Checking Services ... Checked AServices.    Checking hosts ... Checked2hosts.    Checking host groups ... Checked1host groups.    Checking Service groups ... Checked0service groups.    Checking contacts ... Checked1Contacts.    Checking Contact Groups ... Checked1Contact groups.    Checking Service escalations ... Checked0Service escalations.    Checking Service Dependencies ... Checked0service dependencies.    Checking Host escalations ... Checked0host escalations.    Checking Host Dependencies ... Checked0host dependencies.    Checking commands ... Checked -commands.    Checking time Periods ... Checked5Time periods. Checking forcircular paths between hosts ... Checking forCircular host and service dependencies ... CheckingGlobal Eventhandlers ... Checking Obsessive Compulsive Processor commands ... Checking Misc Settings ... Total Warnings:0Total Errors:0things look okay-No serious problems were detected during the pre-flight check

To view the contents of the Nagios log:

[[Email protected]var]# Tail nagios.log[1536369288] LOG VERSION:2.0[1536369288] Finished daemonizing ... (New pid=1423)[1536369288] Error:could not create external command file'/usr/local/nagios/var/rw/nagios.cmd'  asNamed pipe: (2)-No such file or directory. If ThisFile already exists and you is sure that another copy of Nagios isNot running, you should delete Thisfile. [1536369288] Bailing outDue to errors encountered whileTrying to initialize the external command file ... (pid=1423)[1536369446] Nagios3.5.1Starting ... (pid=1502)[1536369446] Local Time isSat Sep ,  the: -: -Cst2018[1536369446] LOG VERSION:2.0[1536369446] Finished daemonizing ... (New pid=1503)

Error reason: Basically I can't create nagios.cmd, to/usr/local/nagios/var directory to find no RW directory, created after reloading Nagios

[[Email protected]var]# mkdir rw[[email protected]var]# Chown-R nagios.nagios rw[[email protected]var]# lltotal +DRWXRWXR-X2Nagios Nagios4096Sep6  A: -Archives-rw-r--r--1Nagios Nagios5Sep8  the: atNagios.Lock-rw-rw-r--1Nagios Nagios3991Sep8  the: atNagios.log-rw-r--r--1Nagios Nagios17051Sep8  the: atObjects.cache-rw-rw-r--1Nagios Nagios0Sep8  the: atRETENTION.DATDRWXR-xr-x2Nagios Nagios4096Sep8  the: -RWDRWXR-xr-x3Root root4096Sep6  A: -Spool

The correct monitoring effect is not loaded at this time.

Installing the Nagios Error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

Tags Index: