# Help with Deadman Alert Timing

**URL:** <https://community.influxdata.com/t/help-with-deadman-alert-timing/4676>\
**Category:** Kapacitor\
**Tags:** influxdb, kapacitor\
**Created:** [April 8, 2018, 4:21pm UTC](https://community.influxdata.com/t/help-with-deadman-alert-timing/4676 "2018-04-08T16:21:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pawan](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@Pawan](https://community.influxdata.com/u/Pawan)\
**Post date:** [April 8, 2018, 4:21pm UTC](https://community.influxdata.com/t/help-with-deadman-alert-timing/4676/1 "2018-04-08T16:21:32Z")

</div>

Hi,

Need urgent help on **deadman** alter timings.

Below script is working fine, but am getting alert after **5 mins** , where as i should trigger 4th Min.

Deadman takes minimum 5 min before it execute custom alert script. And it stop working if i reduce **deadman** timing to 2 mins.

```
var STRDOWN = 'FAILED'

var data = stream
	|from()
		.measurement('smoketest')
		.groupby('region', 'server', 'type')
	|window()
		.period(1m)
		.every(15s)
		.align()
	|httpOut('smoketest_out')
	|where(lambda: isPresent("status_str"))
	|last('status_str')
		.as('status_str')
	|log()
	

var apac = data
	|where(lambda: "region" == 'APAC')
	|eval(lambda: "region")
		.as('region')
		.keep()
	
	|httpOut('smoketest_APAC_OUT')
	
var deadman_out = data
	|log()
	|deadman(0.0, 3m)
		.critReset(lambda: "emitted" > 1)
		.log('/tmp/smoketest.log')
		.exec('CUSTOM ALERT SCRIPT') **## working fine, but alert coming after 5mins, expected 3 mins**
		.stateChangesOnly()
		.NoRecoveries()
	|log()
```

---

<div class="post-metadata">

**Author:** ![arushigangrade](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/arushigangrade/32/3757_2.png) [@arushigangrade](https://community.influxdata.com/u/arushigangrade)\
**Post date:** [January 18, 2019, 12:22am UTC](https://community.influxdata.com/t/help-with-deadman-alert-timing/4676/2 "2019-01-18T00:22:50Z")

</div>

Hi Pawan,

Were you able to figure out a workaround for this.?  
I am in a similar situation adn would greatly appreciate any help.

Thanks
