nrpe running with wrong file
Posted: 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
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