# DeadMan Alert Setup

**URL:** <https://community.influxdata.com/t/deadman-alert-setup/10700>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [July 29, 2019, 11:17am UTC](https://community.influxdata.com/t/deadman-alert-setup/10700 "2019-07-29T11:17:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_Kumar\_Singh](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/amit_kumar_singh/32/2827_2.png) [@Amit\_Kumar\_Singh](https://community.influxdata.com/u/Amit_Kumar_Singh)\
**Post date:** [July 29, 2019, 11:17am UTC](https://community.influxdata.com/t/deadman-alert-setup/10700/1 "2019-07-29T11:17:51Z")

</div>

I am trying to set up an alert system in which I would get alert if influx does not receive any data for 15 min below is the script we are using.

```
var data = batch
|query(''' Select last(usage_user) from prod_hosts.autogen.cpu where cpu = 'cpu-total' ''')
    .period(15m)
    .every(5m)
    .groupBy(*)

data
|deadman(1.0, 15m)
    .id('{{ index .Tags "node" }}')
    .message('Server {{ index .Tags "host" }} is OFFLINE')
    .messageField('message')
    .email()
    .to('amit.singh2@xxxxxxxxx')
    .log('/tmp/chronograf/deadman.log')
|httpOut('data')

```

But even data is not received by influx for a server in prod\_hosts tag it does not send any alert, I also checked by running query manually which you get after the kapacitor watch.
