<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Check Ambari Metrics + service check in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215665#M77076</link>
    <description>&lt;PRE&gt;rpm -qa | grep ambari
ambari-metrics-monitor-2.6.1.0-143.x86_64
ambari-metrics-hadoop-sink-2.6.1.0-143.x86_64
ambari-agent-2.6.1.0-143.x86_64&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Apr 2018 16:11:44 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2018-04-11T16:11:44Z</dc:date>
    <item>
      <title>Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215662#M77073</link>
      <description>&lt;P&gt;we perform service check to Ambari Metrics &lt;/P&gt;&lt;P&gt;and we get the following errors - "&lt;STRONG&gt;All metrics collectors are unavailable&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;what we can do regarding that , in order to solve the problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="68429-capture.png" style="width: 494px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16291iF1A18928F55A7C54/image-size/medium?v=v2&amp;amp;px=400" role="button" title="68429-capture.png" alt="68429-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py", line 207, in &amp;lt;module&amp;gt;
    AMSServiceCheck().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 375, in execute
    method(env)
  File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py", line 89, in thunk
    return fn(*args, **kwargs)
  File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py", line 159, in service_check
    raise Fail("All metrics collectors are unavailable.")
resource_management.core.exceptions.Fail: All metrics collectors are unavailable.&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 03:15:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215662#M77073</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2019-08-18T03:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215663#M77074</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Few checks will be good to perform:&lt;/P&gt;&lt;P&gt;1. To verify is ambari is showing false Running AMS services?  Please check the AMS collector hosts if the AMS collector is actually running and listening to the correct address/port:&lt;/P&gt;&lt;PRE&gt;# netstat -tnlpa | grep 6188
# hostname -f &lt;/PRE&gt;&lt;P&gt;2. Please verify if the AMS process PID are matching with the PIDs that are listed int he following files. Some times not matching PIDs causes false info in the UI&lt;/P&gt;&lt;PRE&gt;$  ps -ef | grep ^ams | grep ApplicationHistoryServer

$  cat /var/run/ambari-metrics-collector/ambari-metrics-collector.pid  

$  ps -ef | grep ^ams | grep HMaster&lt;BR /&gt;
$  cat /var/run/ambari-metrics-collector/hbase-ams-master.pid    &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;3. Can you try restarting the AMS collector Service once to see if you notice any error int he AMS collector logs?&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:01:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215663#M77074</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-11T16:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215664#M77075</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also please share the output of the following command from AMS collector host and few of the cluster nodes to verify if the AMS service version is same as Ambari Binary version or not?&lt;/P&gt;&lt;PRE&gt;# rpm -qa | grep ambari&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:04:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215664#M77075</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-11T16:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215665#M77076</link>
      <description>&lt;PRE&gt;rpm -qa | grep ambari
ambari-metrics-monitor-2.6.1.0-143.x86_64
ambari-metrics-hadoop-sink-2.6.1.0-143.x86_64
ambari-agent-2.6.1.0-143.x86_64&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:11:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215665#M77076</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-04-11T16:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215666#M77077</link>
      <description>&lt;P&gt;abouit "restarting the AMS" , when we restart all metrics service it will also restart the AMS? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:13:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215666#M77077</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-04-11T16:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215667#M77078</link>
      <description>&lt;P&gt;@Jay after we set the corect date on all machines , now ambari metrics service check is ok , do you think this is logical ?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:17:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215667#M77078</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-04-11T16:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215668#M77079</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, the AMS basically posts a dummy metrics to the collector with start &amp;amp; End time as mentioned int eh script (which is a relative time) so time difference can be a valid reason for failing service checks.&lt;/P&gt;&lt;PRE&gt;      get_metrics_parameters = {
        "metricNames": "AMBARI_METRICS.SmokeTest.FakeMetric",
        "appId": "amssmoketestfake",
        "hostname": params.hostname,
        "startTime": current_time - 60000,
        "endTime": current_time + 61000,
        "precision": "seconds",
        "grouped": "false",
      }&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py#L83-L84" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py#L83-L84&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/blob/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py#L121-L123" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/service_check.py#L121-L123&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 16:55:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215668#M77079</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-11T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Check Ambari Metrics + service check</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215669#M77080</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, Ambari UI --&amp;gt; Ambari Metrics --&amp;gt; Service Actions --&amp;gt; Restart All Metrics service will cause Ambari Metrics Monitor/ Grafana &amp;amp; Metrics Collector restart.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 17:05:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Check-Ambari-Metrics-service-check/m-p/215669#M77080</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-04-11T17:05:11Z</dc:date>
    </item>
  </channel>
</rss>

