1) You can run a `kapacitor disable <task name>` to stop a running task, or `kapacitor delete tasks <task name>` to delete it.
2) Please review the documentation here <https://docs.influxdata.com/kapacitor/v1.1/nodes/alert_node/#email>. 3) Yes, there are many ways to do this. For a 2 hour long duration, I'd recommend using a batch task. For example (assuming Telegraf data), to alert if the CPU utilization was over 50 (which is the same as CPU idle being less than 50) for 2 hours, it would look similar to: ``` batch |query('SELECT max(usage_idle) FROM "telegraf"."autogen"."cpu"') .period(2h) // How far to query back .every(2h) // How often to run the query .groupBy('host') |alert() .crit(lambda: "max" < 50) ``` There are more examples in the documentation here <https://docs.influxdata.com/kapacitor/v1.1/examples/>. On Mon, Dec 5, 2016 at 1:11 PM, Nikhil Agrawal <[email protected]> wrote: > Hi, > > Please reply if you know the solutions. > > Query 1: How to stop the running tick script. > > > Query 2: How to customized email alert, Please find attached tick script, > config file, Current email alert and required email alert format. > > Query 3: is it possible to get alert - example if cpu memory > 50 for more > then 2 hours. > > > > > > -- > > *Thanks,Nikhil Agrawal | +1 408 505 8443 <%2B1%20408%20505%208443>* > > -- > Remember to include the version number! > --- > You received this message because you are subscribed to the Google Groups > "InfluxData" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/influxdb. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/influxdb/CAMtKHpqBy3vSvrZw06zqJp4uCHgLQQ7Kc%2BbMa_9htP7oDpc2tg% > 40mail.gmail.com > <https://groups.google.com/d/msgid/influxdb/CAMtKHpqBy3vSvrZw06zqJp4uCHgLQQ7Kc%2BbMa_9htP7oDpc2tg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/CAD8sRLD42Odr86%3DgJV8DW64wSg7bFpi2YzRsV2HodMr37B7Hbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
