Nagios Alert: (No output on stdout) stderr: connect to address IP port 5666: Connection refused on Ubuntu 18.04

In this article we are going to resolve the Nagios alert “(No output on stdout) stderr: connect to address IP port 5666: Connection refused” on ubuntu 18.04

Prerequisites

A system running Ubuntu 18.04 should have the following

  1. A user account with sudo privileges
  2. The System with ufw 
  3. The system with nrpe configuration

Implementation:

Step 1: SSH the server

$ ssh user@ip

Step 2: Check the ufw status

$ ufw status 

(i) If it is inactive, enable ufw as shown below

$ ufw enable

(ii) If it is active as mentioned below proceed to the next step

Step 3: Allow port number 5666 in the server 

$ ufw allow 5666

Step 4: Enable the nrpe module and start it 

$ sudo systemctl enable nrpe.service

$ sudo systemctl start nrpe.service

meenakshi k

Meenakshi is a DevOps Engineer with 4 years of experience in AWS, Linux, server administration, server maintenance, Docker, Kubernetes, CI/CD, monitoring, security, HIPAA compliance, and technical customer support. Areas of expertise include cloud operations, deployment management, system reliability, secure server environments, and technical issue resolution, with a focus on evolving DevOps practices and industry trends.

Leave a Reply

Scroll to Top