Cant find NRPE config file. (nrpe3.0)

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mfrycke
Posts: 29
Joined: Wed Mar 22, 2017 9:40 am

Cant find NRPE config file. (nrpe3.0)

Post by mfrycke »

I gave install nagios 4.3.1 and nrpe3.0 on unbuntu 14 server.
But i cant find the nrpe.cfg file to da some changes.

from the manual
sudo vi /etc/nagios/nrpe.cfg

The NRPE configuration file is very long and full of comments. There are a few lines that you will need to find and modify:

server_address: Set to the private IP address of this host
allowed_hosts: Set to the private IP address of your Nagios server
command[check_hda1]: Change /dev/hda1 to whatever your root filesystem is called
The three aforementioned lines should look like this (substitute the appropriate values):

server_address=client_private_IP
allowed_hosts=nagios_server_private_IP
command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/vda
Note that there are several other "commands" defined in this file that will run if the Nagios server is configured to use them. Also note that NRPE will be listening on port 5666 because server_port=5666 is set. If you have any firewalls blocking that port, be sure to open it to your Nagios server.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Cant find NRPE config file. (nrpe3.0)

Post by cdienger »

Greetings,

Which document are you referencing?

The config file could be under /usr/local/nagios/etc/nrpe.cfg

If nrpe is running, you can run "ps aux | grep nrpe" to find which cfg file it currently using.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked