influxdata / kapacitor

Open source framework for processing, monitoring, and alerting on time series data
MIT License
2.32k stars 492 forks source link

Deleted tasks are still enabled and can't be disabled or deleted #1069

Open joelittlejohn opened 8 years ago

joelittlejohn commented 8 years ago

Kapacitor 1.1.0 (git: master 939fdf670b028c142944977dcfcb045cac2343ed) Ubuntu 14.04.5 LTS

When I define a kapacitor task like:

kapacitor define healthcheck_alert ...

and then delete it like:

kapacitor delete tasks healthcheck_alert

the task seems to become a 'zombie'. It is not shown when running kapacitor list tasks, but running kapacitor show healthcheck_alert shows:

ID: healthcheck_alert
Error: 
Template: 
Type: batch
Status: enabled
Executing: true
Created: 29 Nov 16 18:01 UTC
Modified: 29 Nov 16 20:36 UTC
LastEnabled: 29 Nov 16 20:36 UTC
Databases Retention Policies: ["service_status"."autogen"]
...

I now can't seem to delete, define, enable or disable this task. These kapacitor commands run without error but the task remains in exactly the same state. It can't be updated, deleted or disabled and is still sending alerts. I've tried to disable and delete this task, but kapacitor show still shows it.

forestjohnsonpeoplenet commented 8 years ago

I think I have seen this before as well.

joelittlejohn commented 8 years ago

After some further investigation I've found that I can still update the alert using kapacitor define followed by kapacitor enable. I just can't delete or disable the alert, because it seems that Kapacitor does not think this alert exists.

docmerlin commented 4 years ago

@joelittlejohn Is this still a problem?

joelittlejohn commented 4 years ago

@docmerlin Hi. Sorry I have no idea (I haven't used Kapacitor in a couple of years now). Feel free to close this if you like.

sekomarek commented 3 years ago

@joelittlejohn Is this still a problem?

Yes, it is, I have same problem with kapacitor 1.5.7