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. Use our Hosting referral link if you planning to start your blog ($3.82/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...

458 Responses

  1. Piotr says:

    Hi Ravi,

    I have the same problem as Partha:

    [root@host 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’

    [root@host 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#

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

    [root@host nrpe-3.0]# make install-xinetd
    make: *** No rule to make target `install-xinetd’. Stop.

    [root@host 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.



    • Piotr says:

      Hi there,

      Used these instructions to setup NRPE and it KIND OF worked:

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

      [root@host 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

      [root@host 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


  2. 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”.

  3. nirmal says:

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

  4. Mani says:

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

    • Ravi Saive says:


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

  5. Satyam says:

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

    • Ravi Saive says:


      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 *

Join Over 300K+ Linux Users
  1. 257,757
  2. 11,967
  3. 39,682

Are you subscribed?