0
아래 출력은 클라이언트에서 NRPE 서비스의 상태를 확인할 때 제공됩니다. NRPE 클라이언트를 시작할 때NRPE가 SUSE Linux 12.0/12.1 클라이언트에서 서비스로 시작되지 않음
nrpe.service - Daemon to remotely execute Nagios plugins
Loaded: loaded (/<filepath>/nrpe.service; enabled)
Active: failed (Result: exit-code) since Fri 2016-10-28 09:09:15 MDT; 43s ago
Main PID: 3750 (code=exited, status=2)
Oct 28 09:09:15 <server-name> nrpe[3750]: Starting up daemon
Oct 28 09:09:15 <server-name> nrpe[3750]: Cannot write to pidfile '/<filepath>/nrpe.pid' - check your privileges.
이 시스템 로그 출력은 다음과 같습니다 당신이 chmod nagios:nagios /var/run/nrpe/nrpe.pid
을 사용할 수 있습니다
2016-10-28T09:43:33.246746-06:00 <server-name> nrpe[4643]: Added command[check_users]=/<filepath>/nagios/plugins/check_users -w 5 -c 10
2016-10-28T09:43:33.247269-06:00 <server-name> nrpe[4643]: Added command[check_load]=/<filepath>/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
2016-10-28T09:43:33.247607-06:00 <server-name> nrpe[4643]: Added command[check_disk]=/<filepath>/nagios/plugins/check_disk -w 20% -c 10% -p/
2016-10-28T09:43:33.247860-06:00 <server-name> nrpe[4643]: Added command[check_zombie_procs]=/<filepath>/nagios/plugins/check_procs -w 5 -c 10 -s Z
2016-10-28T09:43:33.248108-06:00 <server-name> nrpe[4643]: Added command[check_total_procs]=/<filepath>/nagios/plugins/check_procs -w 250 -c 300
2016-10-28T09:43:33.249014-06:00 <server-name> nrpe[4643]: INFO: SSL/TLS initialized. All network traffic will be encrypted.
2016-10-28T09:43:33.249627-06:00 <server-name> nrpe[4644]: Starting up daemon
2016-10-28T09:43:33.250140-06:00 <server-name> nrpe[4644]: Cannot write to pidfile '/<filepath>/nrpe.pid' - check your privileges.
문제는 서비스의 시작 문제가 'nrpe.pid'에 쓸 수 없다는 것과 관련이 있다고 가정하지 않았습니다. 나는 그 문제를 단순히 무시했다. .pid 파일을 만들고 올바른 r/w 권한을 부여하면 문제가 해결되었습니다. – nyshanin
시원한 문제가 해결되어 항상 로그 파일을 신뢰합니다. 문제가 발생하면 찾아 볼 첫 번째 장소입니다 .enjoy – khakishoiab