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.
Cant find NRPE config file. (nrpe3.0)
Re: Cant find NRPE config file. (nrpe3.0)
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.
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.