Hi,
On one of the client machines nrpe.cfg is located in two paths
1. /etc/nrpe.cfg
2. /usr/local/nagios/etc/nrpe.cfg
when we run ps -ef|grep nrpe, the output is showing as
$ps -ef|grep nrpe.cfg
nagios <pid> /usr/sbin/nrpe -c /etc/nrpe.cfg
Expected output:
$ps -ef|grep nrpe.cfg
nagios <pid> /usr/sbin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -n -d
what should be done to run nrpe with the file /usr/loca/nagios/etc/nrpe.cfg during next reboot.
Pratap
nrpe running with wrong file
Re: nrpe running with wrong file
You might want to look at the start script for nrpe and edit it. I'd guess a version not from nagios was installed and the version from nagios was also installed.
What OS? I'd maybe start with a yum list nrpe or what rpm -qa nrpe.
What OS? I'd maybe start with a yum list nrpe or what rpm -qa nrpe.
Re: nrpe running with wrong file
Thank you for this information bitlife
Re: nrpe running with wrong file
What steps can be taken to ensure that the NRPE service uses the configuration file located at /usr/local/nagios/etc/nrpe.cfg instead of the one in /etc/nrpe.cfg after a system reboot?Pratapa wrote: ↑Thu Jul 20, 2023 6:42 am Hi,
On one of the client machines nrpe.cfg is located in two paths
1. /etc/nrpe.cfg
2. /usr/local/nagios/etc/nrpe.cfg
when we run ps -ef|grep nrpe, the output is showing as
$ps -ef|grep nrpe.cfg
nagios <pid> /usr/sbin/nrpe -c /etc/nrpe.cfg
Expected output:
$ps -ef|grep nrpe.cfg
nagios <pid> /usr/sbin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -n -d
what should be done to run nrpe with the file /usr/loca/nagios/etc/nrpe.cfg during next reboot.
Pratap