CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages., check_nrpemessages

Source: Internet
Author: User
Tags icinga

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.