The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Ambari Forum

Nagios Issues

  • #23973
    Ray Roberts

    I’m noticing a lot of errors(red alerts in Ambari) in Nagios for my HDP nodes. Specifically, it says all my hosts are down, which they obviously are not. I assume there is an issue with the plugins or the type of check Nagios is performing. I’m fairly new to Nagios, so I apologize if this is trivial.

    Most of my statuses in Nagios UI show: (Return code of 127 is out of bounds – plugin may be missing)

    The rest of the statuses show: (null)

    I did some research on Nagios and I’m unable to locate the default installation directories that suppose to exist. For example, the etc dir for Nagios doesn’t exist on my Nagios node. I only have cgi-bin and plugins directories.

    Thanks in advance for your help, you guys have been awesome.


  • Author
  • #24081
    Seth Lyubich

    Hi Ray,

    You can try to run ps command and check similar to below:

    [root@ambari1 nagios]# ps -aef|grep nagios
    nagios 15065 1 0 Jan21 ? 00:06:22 /usr/bin/nagios -d /etc/nagios/nagios.cfg

    From here you should be able to find where Nagios runs from and configuration location.

    Also, did you receive any error during installation? If yes what was the issue? Did you pass Nagios smoke test?

    Hope this helps,


    Ray Roberts



    I don’t recall having any issues during installation.

    Can I run a smoke test now, after installation?

    Nagios seems to be up and running fine, it just seems like something is wrong with the config or plugins its using. I haven’t touched anything with Nagios or its config. To be honest, it really hasn’t been a priority of mine until I cleared up getting all the main services (i.e. hdfs, zookeeker, etc) up and running. So, now, I’d like to clear up Nagios’s alerts and errors. I have noticed the alerts(red boxes by each node in Ambari) from Nagios since day 1.


    Seth Lyubich

    Hi Ray,

    This is usually caused by incompatible version of Nagios plugins. Did you have Nagios installed prior to installation?

    this is what I have on my system:

    bash-4.1$ rpm -qa|grep nagios

    You can check prerequisites here:

    You can check your version(s) by running ‘yum info nagios-plugins’. Please make sure that 1.4.9 version is installed.

    Hope this helps,


    Ray Roberts


    Sorry for the delayed response.

    No, I didn’t have a prior installation of Nagios.

    Here is my output from the below commands:

    #rpm -qa|grep nagios

    #yum info nagios-plugins
    Installed Packages
    Name : nagios-plugins
    Arch : x86_64
    Version : 1.4.16
    Release : 5.el6
    Size : 939 k
    Repo : installed
    From repo : HDP-epel
    Summary : Host/service/network monitoring program plugins for Nagios
    URL :

    It looks like I have a slightly newer version, however I assume that is due to it being updated via HDP. Either way, would this be the problem?



    Hi Ray,

    How is your day so far? This will be the cause of the issue since the Nagios plugins are not compatible. Please downgrade Nagios packages to the following rpms :

    nagios 3.2.3-2.el6

    Hope this helps

    Ray Roberts



    So, what about nagios-common? Should I downgrade that as well?

    After removing nagios-plugins, I’m pulling version 1.4.16-5 from the HDP-epel repo, not 1.4.9-1


The forum ‘Ambari’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.