Page 1 of 1

nrpe running with wrong file

Posted: Thu Jul 20, 2023 6:42 am
by Pratapa
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

Re: nrpe running with wrong file

Posted: Thu Jul 20, 2023 9:20 pm
by kg2857
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.

Re: nrpe running with wrong file

Posted: Wed Aug 23, 2023 9:08 pm
by Nanasi
Thank you for this information bitlife