CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages., check_nrpemessages
The following error is reported when you use the icinga server to test the client script:
[Root @ mysql-server1 etc] #/usr/local/icinga/libexec/check_nrpe-H 192.168.244.146-c check_users-a 10 20
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
View the client/var/log/messages log with the following information:
Jan 18 15:50:20 mysql-server2 nrpe[3328]: Error: Request contained command arguments!Jan 18 15:50:20 mysql-server2 nrpe[3328]: Client request was invalid, bailing out...
Modify the configuration file of the client nrpe
# Vim/usr/local/icinga/etc/nrpe. cfg
dont_blame_nrpe=1
Restart the client program
[Root @ mysql-server2 etc] #/etc/init. d/icinga-nrpe restart
However, it still didn't help. Later, it was discovered that the -- enable-command-args option was not specified during the compilation of the NRPE plug-in, which caused the command line parameter to be unavailable.
You have to re-compile the client NRPE plug-in.
# Cd/usr/src/icinga-nrpe-2.14/
#./Configure -- enable-command-args
# Make all
# Make install
# Make install-plugin
# Make install-init
# Make install-xinetd
# Make install-daemon-config
After modifying the relevant parameters, test again. OK
[Root @ mysql-server1 etc] #/usr/local/icinga/libexec/check_nrpe-H 192.168.244.146-c check_users-a 10 20
USERS OK - 1 users currently logged in |users=1;10;20;0