This is a cache of https://support.nagios.com/kb/article/nrpe-turn-off-xinetd-logging-on-success-566.html. It is a snapshot of the page at 2025-05-14T00:12:29.321+0000.
NRPE - Turn Off <strong>xi</strong>NETD Logging On Success
Home » Categories » Multiple Categories

NRPE - Turn Off xiNETD Logging On Success

Overview

This KB article explains how to configure xiNETD to stop the logging of successful NRPE connections.

Every time the Nagios xi or Nagios Core server connects to the NRPE client, the following is logged in /var/log/messages (or equivalent):

 

Mar  7 17:22:33 centos21 xinetd[3326]: START: nrpe pid=3537 from=10.25.5.1
Mar  7 17:22:33 centos21 xinetd[3326]: ExiT: nrpe status=0 pid=3537 duration=0(sec)

 

This can be disabled by defining the log parameters for successful connections via xiNETD. This document only applies to NRPE that is run via xiNETD as this logging is a function of xiNETD.

This KB article is oriented at RHEL / CentOS however the xiNETD configuration applies to any operating system (OS) using xiNETD for NRPE.

 

 

Configure xiNETD

Establish a terminal session to your NRPE client as the root user.

Execute the following command to open the file in vi:

vi /etc/xinetd.d/nrpe

When using the vi editor, to make changes press i on the keyboard first to enter insert mode. Press Esc to exit insert mode.

 

Add the following line to the configuration:

log_on_success  =

 

Here is an example configuration with that line added:

# default: on
# description: NRPE (Nagios Remote Plugin Executor)
service nrpe
{
        flags           = REUSE
        socket_type     = stream
        port            = 5666
        wait            = no
        user            = nagios
        group           = nagios
        server          = /usr/local/nagios/bin/nrpe
        server_args     = -c /usr/local/nagios/etc/nrpe.cfg --inetd
        log_on_failure  += USERID
        log_on_success  =
        disable         = no
        only_from       = 127.0.0.1 10.25.5.1
}

 

When you have finished, save the changes in vi by typing:

:wq

and press Enter.

 

You need to restart the service using one of the commands below:

 

RHEL/CentOS 5.x/6.x

service xinetd restart

 

RHEL/CentOS 7.x

systemctl restart xinetd.service

 

After making these changes, you will no longer see the START and ExiT messages in the in /var/log/messages file for successful NRPE connections via xiNETD.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

5 (2)
Article Rating (2 Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
NRPE - CHECK_NRPE: Received 0 Bytes From Daemon. Check The Remote Server Logs For Error Messages
Viewed 10833 times since Mon, Jul 17, 2017
NRPE - Configuring NRPE Commands To Accept Arguments
Viewed 63837 times since Sun, Oct 15, 2017
NRPE - Error While Loading Shared Libraries: libssl.so
Viewed 12204 times since Mon, Jul 17, 2017
NRPE - How to install NRPE
Viewed 136504 times since Wed, Dec 17, 2014
Nagios xi - Upgrading The Linux NRPE Agent
Viewed 8877 times since Wed, Aug 30, 2017
NRPE - Linux Cached Memory Not Added to Free Memory
Viewed 10045 times since Wed, Jan 27, 2016
NRPE - Agent and Plugin Explained
Viewed 68775 times since Fri, Jul 14, 2017
NRPE - How to install NRPE from source without xinetd on CentOS 6.
Viewed 16805 times since Wed, Apr 15, 2015
Nagios xi - Monitoring Hosts Using NRPE and NRPE Monitoring Wizard
Viewed 12534 times since Thu, Jan 28, 2016
NRPE - CHECK_NRPE: Error - Could Not Complete SSL Handshake
Viewed 124212 times since Fri, Jul 14, 2017