CHECK_NRPE: Received 0 bytes from daemon. Check the remote
Posted: Mon Jun 11, 2018 7:37 am
We are getting the error below when adding aurgment on our check_nrpe commad
"CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages."
When starting or stopping nrpe we are getting the error below
# service nrpe restart
Redirecting to /bin/systemctl restart nrpe.service
Failed to restart nrpe.service: Unit not found.
but xinetd works ok
# service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service
the commands below work ok
# /usr/local/nagios/libexec/check_nrpe -H nagioscentosserver -c check_load
OK - load average: 1.06, 1.58, 1.88|load1=1.060;15.000;30.000;0; load5=1.580;10.000;25.000;0; load15=1.880;5.000;20.000;0;
# /usr/local/nagios/libexec/check_nrpe -H nagioscentosserver -c check_users
USERS OK - 2 users currently logged in |users=2;5;10;0
but this returns and error
# /usr/local/nagios/libexec/check_nrpe -H nagioscentosserver -t 30 -c check_init_service -a 'httpd'
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Should we Enable check_nrpe command arguments by configuring NRPE with –enable-command-args
Kind advise
"CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages."
When starting or stopping nrpe we are getting the error below
# service nrpe restart
Redirecting to /bin/systemctl restart nrpe.service
Failed to restart nrpe.service: Unit not found.
but xinetd works ok
# service xinetd restart
Redirecting to /bin/systemctl restart xinetd.service
the commands below work ok
# /usr/local/nagios/libexec/check_nrpe -H nagioscentosserver -c check_load
OK - load average: 1.06, 1.58, 1.88|load1=1.060;15.000;30.000;0; load5=1.580;10.000;25.000;0; load15=1.880;5.000;20.000;0;
# /usr/local/nagios/libexec/check_nrpe -H nagioscentosserver -c check_users
USERS OK - 2 users currently logged in |users=2;5;10;0
but this returns and error
# /usr/local/nagios/libexec/check_nrpe -H nagioscentosserver -t 30 -c check_init_service -a 'httpd'
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Should we Enable check_nrpe command arguments by configuring NRPE with –enable-command-args
Kind advise