How to Install Nagios 4.3.4 on RHEL, CentOS and Fedora

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

384 Responses

  1. Saumik says:

    After my system reboot I am unable to login.

  2. Sairam says:

    You are the man. Hands down. Simple and straight forward. Thanks for helping people out there.

  3. Agust J says:

    Do you know how to upgrade ver 3.5.1, that was installed with yum, to newest version?

    • Ravi Saive says:


      Do a yum update, hope it will upgrade your Nagios version to most recent available version from repositories. Else, do a source installation for the latest version of Nagios.

  4. sai says:

    Hello Sir,

    I followed all steps you gave, but I’m unable to login web-interface, see below error.

    # curl -k
    Sample Output
    401 Unauthorized
    This server could not verify that you
    are authorized to access the document
    requested.  Either you supplied the wrong
    credentials (e.g., bad password), or your
    browser doesn't understand how to supply
    the credentials required.
  5. kumar says:

    I followed your steps .. Its working fine .. Thanks.

  6. Arturo says:

    Hi, follow your guide for intsall nagios, i have a RHEL 7.3 Kernel 3.1, Nagios Core 4.2.4 and plugins 2.2.0, all work very good, but when i run at script at shell:

    [Server1]# ./ -H -C public
    OK - [Model : VSP, S/N : 94162, Mcode info : "70-06-40-00/00"]
    OK - Status is NORMAL [DKC_HW_CACHE]
    OK - Status is NORMAL [DKC_HW_BATTERY]
    OK - Status is NORMAL [DKC_HW_FAN]
    OK - Status is NORMAL [DKU_HW_FAN]
    OK - Status is NORMAL [DKU_HW_Drive]

    All work fine, but in the GUI of Nagios, send me the next error:

    Storage94121 SNMP_VSP
    CRITICAL 05-10-2017 12:30:28 0d 13h 1m 43s 4/4 Critical - Problem with connection SNMP on device.

    Please, could you help me…..

  7. Sunil Kumar says:

    Dear Sir,

    When I used # make install-webconf then I face a error
    make: No rule to make target ‘install-webconf Stop
    Please write me about this issue

  8. Narayan Ghorpade says:

    Hello Team ,
    I have follow all the procedure my site is unreachable , i have check all my http, nagios services are running fine

    Kindly revert

  9. Bhavesh Parmar says:

    On my CentOS 7.2 I still had an issue even after setting the said SELinux security context.

    Following SELinux security context worked for me !!

    # chcon -R -t httpd_sys_script_exec_t /usr/local/nagios/sbin
  10. Larry says:

    After try to resolve the issue the below is what I got. I believe it is a permission it issue but I don’t know where to put the permission


    You don’t have permission to access /nagios/ on this server.

    • Ravi Saive says:


      It’s something SELinux preventing from the accessing the nagios page, try to set SELinux to permissive mode, you can use the following command to set:

      # chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
      # chcon -R -t httpd_sys_content_t /usr/local/nagios/share/

      Don’t forget to restart the Apache service..

Got something to say? Join the discussion.

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