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
- A user account with sudo privileges
- The System with ufw
- 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