I installed nagios client before.But when ı want to start client service.It does not start.
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
I found this error of my syslog.
There's already an NRPE server running (PID 111111). Bailing out..
And find this PID
root@demop_cls1:/var/adm # ps -aef |grep 111111 root 1111114063448 0 Jun 22 - 1:54 /usr/sbin/clcomd -d
Answer;
Find this file
ls -ltr /var/run/nrpe.pid -rw-r--r-- 1 root system 8 Jun 17 11:05 /var/run/nrpe.pid
and move it
mv /var/run/nrpe.pid /var/run/nrpe.pid.old
And again try to start
/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d
Its resolved.
its very useful resolve if you re using nagios