1、Different versions. Make sure you are using the same version of the check_nrpe plugin and the NRPE daemon. Newer versions of NRPE are usually not backward compatible with older versions.
2、SSL is disabled. Make sure both the NRPE daemon and the check_nrpe plugin were compiled with SSL support and that neither are being run without SSL support (using command line switches).
3、Incorrect file permissions. Make sure the NRPE config file (nrpe.cfg) is readable by the user (i.e. nagios) that executes the NRPE binary from inetd/xinetd.
4、Pseudo-random device files are not readable. Greg Haygood noted the following… “After wringing my hair out and digging around with truss, I figured out the problem on my Solaris 8 boxen. The files /devices/pseudo/random* (linked through /dev/*random, and provided by Sun patch 11243 were not readable by the nagios user I use to launch NRPE. Making the character devices world-readable solved it.”
5、Unallowed address. If you’re running the NRPE daemon under xinetd, make sure that you have a line in the xinetd config file that say “only_from = xxx.xxx.xxx.xxx”, where xxx.xxx.xxx.xxx is the IP address that you’re connected to the NRPE daemon from.
But I don't konw where is my problem,I don't think it is no.1 or no.5,and for no.2, when i cross-compiling the nrpe or the nagios-plugin, it all with the openssl support which i had cross-compiled first.but i don't know whether i should do something about the openssl on the arm .for no.3 or no.4 ,i don't know whether it should be considered because my device is arm?
If u know something ,please tell me ,truely thanks for your help!
plus:it says i can see more details at nrpe's log file ,but i don't know how to open it or find it ,if you know ,please tell me ,thank you!
just now, i checked the port on my arm,the port 5666 doesn't open.
then i do the follow:
Code: Select all
vi /etc/services
add:
nrpe 5666/tcp # NRPE
netstat -at | grep nrpe
(tcp 0 0 *:nrpe *:* LISTEN)