<?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: Unable to execute custom ambari alert script. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/293072#M216467</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50614"&gt;@jsensharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have same issue as above, i exported path and script ran fine. I can see alert "&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[Custom] Host Mount Point Usage" added in Ambari alerts page but i'm not seeing alerts .I followed all the steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-04-01 at 7.07.36 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26991i2B2028794F164B77/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-04-01 at 7.07.36 PM.png" alt="Screen Shot 2020-04-01 at 7.07.36 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Apr 2020 13:45:06 GMT</pubDate>
    <dc:creator>srinivasp</dc:creator>
    <dc:date>2020-04-01T13:45:06Z</dc:date>
    <item>
      <title>Unable to execute custom ambari alert script.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283508#M210720</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50614"&gt;@jsensharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed all the steps but I m not seeing the custom alerts.&lt;/P&gt;
&lt;P&gt;I tried executing the script but it is throwing below error:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@xxxxx host_scripts]# python test_alert_disk_space.py&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "test_alert_disk_space.py", line 8, in &amp;lt;module&amp;gt;&lt;BR /&gt;from resource_management.core.logger import Logger&lt;BR /&gt;ImportError: No module named resource_management.core.logger&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ambari Version&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2.7.3.0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HDF:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;3.4.1&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="BubbleStyle_TimeAndParticipantNameContainer"&gt;
&lt;DIV class="BubbleStyle_ParticipantNameContainer"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Nov 2019 06:26:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283508#M210720</guid>
      <dc:creator>KaviTiwari</dc:creator>
      <dc:date>2019-11-21T06:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute custom ambari alert script.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283518#M210725</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71474"&gt;@KaviTiwari&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please make sure to set the "PYTHONPATH" variable to point to ambari agent lib directory as following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# export PYTHONPATH=/usr/lib/ambari-agent/lib:$PYTHONPATH
# python test_alert_disk_space.py&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 21:39:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283518#M210725</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-11-20T21:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute custom ambari alert script.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283519#M210726</link>
      <description>&lt;P&gt;So I have to use export statement while running from console only, correct me if I am wrong.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 22:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283519#M210726</guid>
      <dc:creator>KaviTiwari</dc:creator>
      <dc:date>2019-11-20T22:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute custom ambari alert script.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283520#M210727</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/71474"&gt;@KaviTiwari&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct when we manually want to run such scripts which are dependent on ambari agent python modules then Yes, we will have to manually export PYTHONPATH.&lt;BR /&gt;Ambari agent automatically sets the necessary module paths in the python path when it tries to executed such scripts.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 22:24:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283520#M210727</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2019-11-20T22:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute custom ambari alert script.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283629#M210772</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 15:48:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/283629#M210772</guid>
      <dc:creator>KaviTiwari</dc:creator>
      <dc:date>2019-11-21T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to execute custom ambari alert script.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/293072#M216467</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/50614"&gt;@jsensharma&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have same issue as above, i exported path and script ran fine. I can see alert "&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;[Custom] Host Mount Point Usage" added in Ambari alerts page but i'm not seeing alerts .I followed all the steps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-04-01 at 7.07.36 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26991i2B2028794F164B77/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-04-01 at 7.07.36 PM.png" alt="Screen Shot 2020-04-01 at 7.07.36 PM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 13:45:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-execute-custom-ambari-alert-script/m-p/293072#M216467</guid>
      <dc:creator>srinivasp</dc:creator>
      <dc:date>2020-04-01T13:45:06Z</dc:date>
    </item>
  </channel>
</rss>

