<?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: Nifi alert when a processor is in stopped state or running state in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/343399#M233924</link>
    <description>&lt;P&gt;If you do not mind, you can add&amp;nbsp;MonitorActivity processor to the output end of the processor. This would generate two flow files(inactivity &amp;amp; activity restored) whenever your processor is down. In addition, connect the output end of&amp;nbsp;MonitorActivity processor to PutEmail processor to configure an email Alert that would notify you when the processor is down &amp;amp; when activity has been restored.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Sat, 07 May 2022 09:04:42 GMT</pubDate>
    <dc:creator>rafy</dc:creator>
    <dc:date>2022-05-07T09:04:42Z</dc:date>
    <item>
      <title>Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/339925#M233216</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a pipeline that starts with an ad-hoc flow file processor as the starting processor. During cluster maintenance, the processors often go to a stopped state. Is there a way, I can get an alert with the note this processor is in a stopped state? Basically, the ask is to send alerts based on the state of the processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 14:03:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/339925#M233216</guid>
      <dc:creator>ep_gunner</dc:creator>
      <dc:date>2022-03-29T14:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/339984#M233232</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80788"&gt;@ep_gunner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the&amp;nbsp;&lt;A href="https://github.com/apache/nifi/blob/72e6accc1240f7a4e7e7ee1f658615349e9db0e1/nifi-nar-bundles/nifi-sql-reporting-bundle/nifi-sql-reporting-tasks/src/main/java/org/apache/nifi/reporting/sql/QueryNiFiReportingTask.java" target="_self"&gt;QueryNiFiReportingTask&lt;/A&gt; reporting task to report on the status of any processors, connections, process groups, etc. This reporting task allow you to use a SQL query NiFi status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if you're interested in any stopped processor, you can use the query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select *
from PROCESSOR_STATUS
where runStatus = 'Stopped'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could also filter that by processor name or id if you need to be more specific:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select *
from PROCESSOR_STATUS
where runStatus = 'Stopped'
  and &amp;lt;YOUR_FILTER&amp;gt;

where YOUR_FILTER could be any of the below:
  id = '&amp;lt;YOUR_PROCESSOR_ID&amp;gt;'
  groupId = '&amp;lt;YOUR_PROCESSOR_GROUP_ID&amp;gt;'
  name = '&amp;lt;YOUR_PROCESSOR_NAME&amp;gt;'
  processorType = '&amp;lt;YOUR_PROCESSOR_TYPE&amp;gt;'

or any combination of the above&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results of this reporting task can be forwarded to any available ReportSink in NiFi (Database, Kafka, Email, etc). You can also send the results to a NiFi Input Port using the&amp;nbsp;SiteToSiteReportingRecordSink and them you can process those reports with NiFi itself and take any other action you want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 00:39:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/339984#M233232</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-30T00:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/340724#M233368</link>
      <description>&lt;P&gt;Thanks for the reply&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying this solution out. The Nifi instance (1.16) I am using doesn't have QueryNifiReportingTask in the reporting task section, so I assume I have to build the nar first &amp;amp; then use it? Is that understanding correct?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 12:49:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/340724#M233368</guid>
      <dc:creator>ep_gunner</dc:creator>
      <dc:date>2022-04-06T12:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/340986#M233416</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80788"&gt;@ep_gunner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can download the NAR from here:&amp;nbsp;&lt;A href="https://repo1.maven.org/maven2/org/apache/nifi/nifi-sql-reporting-nar/1.16.0/" target="_blank"&gt;https://repo1.maven.org/maven2/org/apache/nifi/nifi-sql-reporting-nar/1.16.0/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Make sure you get the one that matches your NiFi version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:43:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/340986#M233416</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-04-08T11:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/343399#M233924</link>
      <description>&lt;P&gt;If you do not mind, you can add&amp;nbsp;MonitorActivity processor to the output end of the processor. This would generate two flow files(inactivity &amp;amp; activity restored) whenever your processor is down. In addition, connect the output end of&amp;nbsp;MonitorActivity processor to PutEmail processor to configure an email Alert that would notify you when the processor is down &amp;amp; when activity has been restored.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2022 09:04:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/343399#M233924</guid>
      <dc:creator>rafy</dc:creator>
      <dc:date>2022-05-07T09:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/366407#M239572</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using nifi version 1.15, can you help me with the same problem.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 15:59:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/366407#M239572</guid>
      <dc:creator>udayAle</dc:creator>
      <dc:date>2023-03-18T15:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi alert when a processor is in stopped state or running state</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/366644#M239644</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104096"&gt;@udayAle&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80788"&gt;@ep_gunner&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;When NiFi is brought down, the current state (stopped, started, enabled, disabled) of all components is retained and on startup that same state is set on the components.&amp;nbsp; Only time this is not true is when the property "&lt;SPAN&gt;nifi.flowcontroller.autoResumeState" is set to false in the nifi.properties file.&amp;nbsp; When set to false a restart of NiFi would result in all components in a stopped state.&amp;nbsp; In a production environment, this property should be set to true.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Perhaps you can share more details on the maintenance process you are using as I am not clear on how your maintenance is impacting the last known state of some components.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic"&gt;If you found that the provided solution(s) assisted you with your query, please take a moment to login and click&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="arial black,avant garde" color="#FF0000"&gt;Accept as Solution&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;below each response that helped.&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="batang,apple gothic" color="#000000"&gt;Matt&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 18:40:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-alert-when-a-processor-is-in-stopped-state-or-running/m-p/366644#M239644</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2023-03-21T18:40:08Z</dc:date>
    </item>
  </channel>
</rss>

