How to Add Linux Host to Nagios Monitoring Server Using NRPE Plugin

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Ravi Saive

I am Ravi Saive, creator of TecMint. A Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux. Follow Me: Twitter, Facebook and Google+

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

459 Responses

  1. Dilip Kumar says:

    nrpe tcp/5666 #nrpe : Hash is Missing

  2. Piotr says:

    Hi Ravi,

    I have the same problem as Partha:

    [[email protected] nrpe-3.0]# make install-plugin
    cd ./src/; make install-plugin
    make[1]: Entering directory `/root/nagios/nrpe-3.0/src’
    /usr/bin/install -c -m 755 -d /usr/local/nagios/bin
    /usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
    /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
    /usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
    /usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
    make[1]: Leaving directory `/root/nagios/nrpe-3.0/src’

    [[email protected] nrpe-3.0]# make install-daemon
    cd ./src/; make install-daemon
    make[1]: Entering directory `/root/nagios/nrpe-3.0/src’
    /usr/bin/install -c -m 755 -d /usr/local/nagios/bin
    /usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
    /usr/bin/install -c -m 755 nrpe /usr/local/nagios/bin
    /usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/var
    /usr/bin/install -c -m 644 ../startup/tmpfile.conf /usr/lib/tmpfiles.d/nrpe.conf
    make[1]: Leaving directory `/root/nagios/nrpe-3.0/src’

    #I guess problem starts here#

    [[email protected] nrpe-3.0]# make install-daemon-config
    make: *** No rule to make target `install-daemon-config’. Stop.

    [[email protected] nrpe-3.0]# make install-xinetd
    make: *** No rule to make target `install-xinetd’. Stop.

    [[email protected] nrpe-3.0]# make install-inetd
    /usr/bin/install -c -m 644 startup/default-xinetd /etc/xinetd.d/nrpe
    ***** MAKE SURE ‘nrpe 5666/tcp’ IS IN YOUR /etc/services FILE

    Would appreciate your advice.

    Regards,

    Piotr

    • Piotr says:

      Hi there,

      Used these instructions to setup NRPE and it KIND OF worked:
      https://support.nagios.com/kb/article.php?id=515

      I mean I got it running but now stumbled upon another problem and cannot find any solution anywhere.
      ———————

      [[email protected] init.d]# /usr/local/nagios/libexec/check_nrpe -H localhost
      CHECK_NRPE: Error – Could not connect to ::3668:6c6e:7556:0: Connection reset by peer

      [[email protected] init.d]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load
      CHECK_NRPE: Error – Could not connect to ::3668:6c6e:7556:0: Connection reset by peer

      ————————
      HELP!

  3. Partha sarathi Dash says:

    Hello Ravi,
    I stuck on this command “make install-daemon-config”. It is showing the error “make: *** No rule to make target `install-daemon-config’. Stop”.

  4. nirmal says:

    Hi, thanks for the tutorial
    let me know how to add windows host to nagios server.

  5. Mani says:

    I am having the same problem. The check_nrpe file is not in the /usr/local/nagios/libexec/ directory

    • Ravi Saive says:

      @Mani,

      That means your NRPE installation was not successful, try to install again and see if the nrpe plugin available from libexec directory…

  6. Satyam says:

    Hi Ravi
    On Nagios Monitoring Server
    Not able to perform step 2
    [[email protected]]# /usr/local/nagios/libexec/check_nrpe -H

    • Ravi Saive says:

      @Satyam,

      What error you getting on the screen while checking NRPE version with host?

      • Satyam says:

        No such file and directory found, according to your document, it should show version of Nagios. Second question, i want to monitor “ps -ef | grep -i gmvuser” from remote machine, how to add entry for that in /usr/local/nagios/etc/nrpe.cfg file at remote server .

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *