# Deadman alert not showing hostname details

**URL:** <https://community.influxdata.com/t/deadman-alert-not-showing-hostname-details/7809>\
**Category:** Kapacitor\
**Tags:** kapacitor\
**Created:** [December 12, 2018, 4:14am UTC](https://community.influxdata.com/t/deadman-alert-not-showing-hostname-details/7809 "2018-12-12T04:14:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajayanaj](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/ajayanaj/32/2435_2.png) [@ajayanaj](https://community.influxdata.com/u/ajayanaj)\
**Post date:** [December 12, 2018, 4:14am UTC](https://community.influxdata.com/t/deadman-alert-not-showing-hostname-details/7809/1 "2018-12-12T04:14:05Z")

</div>

Hi,

I’m using the below tick script to generate deadman alert.

var data = stream  
|from()  
.database(‘ecs\_meta\_mon’)  
.retentionPolicy(‘autogen’)  
.measurement(‘system’)  
.groupBy(‘host’)

data  
|deadman(0.0, 1m)  
.id(’{{ index .Tags “host”}}’)  
.message(‘Server {{ .ID }} is OFFLINE’)  
.log(’/var/log/deadman.log’)  
.stateChangesOnly(5m)

The issue am facing here is am not getting host information from the alert. It trigger the alert like below.

“id”: “”,  
“message”: “Server is OFFLINE”,

I made ID as " .id(’{{ index .Tags }}’)", and noe it changed like

“id”: “map[]”,  
“message”: “Server map[] is OFFLINE”,

I don’t understand what went wrong here. Can anyone please help me to resolve this issue?

Thank you in advance.
