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

If you have any questions or problems regarding this article and want help within 24 Hours? Ask Now

Ravi Saive

Simple Word 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.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

300 Responses

  1. huangqing says:

    I want to know how to add more then one linux host to Nagios monitoring Server. thanks

    • Ravi Saive says:

      @huang,
      Follow the same instructions has given in this article for adding multiple Linux hosts to Nagios..

  2. Madhan says:

    (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory

  3. Mr.Right says:

    Hello ,

    Am getting the below error while trying to open hosts and service tab in Nagios webpage .

    Error:
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    • Ravi Saive says:

      @Madhan,
      It seems your Nagios installation was not correct, try to follow steps carefully and install all required packages before compiling the Nagios.

      • Mr.Right says:

        Am getting the error “SSH Monitoring;CRITICAL;SOFT;1;(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory” in Nagios Page , Seems the server is not getting monitor .

      • Mr.Right says:

        Host Sort by host name (ascending)Sort by host name (descending) Service Sort by service name (ascending)Sort by service name (descending) Status Sort by service status (ascending)Sort by service status (descending) Last Check Sort by last check time (ascending)Sort by last check time (descending) Duration Sort by state duration (ascending)Sort by state duration time (descending) Attempt Sort by current attempt (ascending)Sort by current attempt (descending) Status Information

        CPU Load
        CRITICAL 06-23-2015 15:44:26 0d 1h 36m 38s 3/3 (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory
        Current Users
        CRITICAL 06-23-2015 15:45:30 0d 1h 35m 34s 3/3 (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory
        FTP Monitoring
        CRITICAL 06-23-2015 15:46:34 0d 1h 34m 30s 3/3 (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory
        SSH Monitoring
        CRITICAL 06-23-2015 15:37:38 0d 1h 33m 26s 3/3 (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory
        Total Processes
        CRITICAL 06-23-2015 15:38:42 0d 1h 32m 22s 3/3 (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, …) failed. errno is 2: No such file or directory

    • bhimu says:

      when u installing nrpe packg in both side ,jest follow this steps (in above sever side not completely installed )
      ./configure
      # make all
      # make install-plugin
      # make install-daemon
      # make install-daemon-config
      # make install-xinetd

  4. sanjay says:

    Hi Ravi,

    I would like to monitor the ESXI 5.5 server through nagios please suggest to me how to do it.

  5. seenivasan says:

    succesfully completed client installation but in server while i am verifying. it gives a error Cannot able to open the file /usr/local/nagios/etc/server.

  6. Steve says:

    I just need to know the procedure for installing Nagios on clients centos servers, not the Nagios server, what pkgs i need to install on client machine, i’m running centos7
    Thx

  7. Vishal says:

    Sir , i am getting an error in the ‘Adding remote linux host to nagios montoring server where i have created files namely Hosts and Services and added them in nagios .cfg as well.. But when i use gedit to open Hosts.cfg it shows empty file.. So where am i going wrong? Im sure i have done all above steps correctlu.. Please help thanks

  8. Suraj Kumar says:

    CPU load UNKNOWN 03-21-2015 09:48:08 0d 0h 17m 8s 3/3 NRPE: Unable to read output
    Current Users UNKNOWN 03-21-2015 09:49:11 0d 0h 16m 5s 3/3 NRPE: Unable to read output
    FTP Monitoring CRITICAL 03-21-2015 09:50:15 0d 0h 48m 59s 3/3 NRPE: Command ‘check_ftp’ not defined
    SSH Monitoring CRITICAL 03-21-2015 09:48:00 0d 0h 47m 55s 3/3 NRPE: Command ‘check_ssh’ not defined
    Total Processes UNKNOWN 03-21-2015 09:49:04 0d 0h 16m 12s 3/3 NRPE: Unable to read output

  9. Suraj says:

    Current Load CRITICAL 03-20-2015 20:38:24 0d 3h 59m 13s 4/4 (No output on stdout) stderr:
    Current Users OK 03-20-2015 20:41:02 0d 7h 56m 34s 1/4 (No output on stdout) stderr:
    HTTP WARNING 03-20-2015 20:40:37 0d 7h 55m 57s 4/4 HTTP WARNING: HTTP/1.1 403 Forbidden – 5155 bytes in 0.000 second response time
    PING OK 03-20-2015 20:42:17 0d 7h 55m 19s 1/4 (No output on stdout) stderr:
    Root Partition OK 03-20-2015 20:37:54 0d 7h 54m 42s 1/4 (No output on stdout) stderr:
    SSH Notifications for this service have been disabled CRITICAL 03-20-2015 20:41:27 0d 7h 54m 4s 4/4 (No output on stdout) stderr:
    Swap Usage OK 03-20-2015 20:39:09 0d 7h 53m 27s 1/4 SWAP OK – 100% free (4895 MB out of 4895 MB)
    Total Processes OK 03-20-2015 20:39:47 0d 7h 52m 49s 1/4 PROCS OK: 87 processes with STATE = RSZDT

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Join Over 75000+ Linux Users
  1. 51334
  2. 2657
  3. 16705

Enter your email to get latest Linux Howto's