# Simple Offline Check Telegraf - InfluxDB 2 - Grafana Alert

**URL:** <https://community.influxdata.com/t/simple-offline-check-telegraf-influxdb-2-grafana-alert/20596>\
**Category:** InfluxDB 2\
**Tags:** influxdb, telegraf, grafana, getting-started, flux\
**Created:** [July 1, 2021, 8:28pm UTC](https://community.influxdata.com/t/simple-offline-check-telegraf-influxdb-2-grafana-alert/20596 "2021-07-01T20:28:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcmann](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@pcmann](https://community.influxdata.com/u/pcmann)\
**Post date:** [July 1, 2021, 8:28pm UTC](https://community.influxdata.com/t/simple-offline-check-telegraf-influxdb-2-grafana-alert/20596/1 "2021-07-01T20:28:51Z")

</div>

Hi, noob at InfluxDb and Flux, am slowly getting the hang of the language, etc but i can’t seem to find an easy way to set a Grafana alert based on an InfluxDB2 query to determine whether a telegraf agent is no longer reporting

I have seen the monitor.deadman() but it doesn’t seem to work or I’m not getting it

How do you all do it? I could probably do it based on an alert per host but I would prefer an alert regardless of the number of hosts with agents

Any help would be appreciated!

Also if Grafana is not the right tool, how can i send email alerts from InfluxDB without using one of teh paid services listed as notification endpoints?

Thanks!

---

<div class="post-metadata">

**Author:** ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)\
**Post date:** [July 2, 2021, 5:59pm UTC](https://community.influxdata.com/t/simple-offline-check-telegraf-influxdb-2-grafana-alert/20596/2 "2021-07-02T17:59:17Z")

</div>

Hello @pcmann,  
Welcome!  
Have you seen this blog? Please consider giving it a read.

> **[InfluxDBs Checks and Notifications System](https://www.influxdata.com/blog/influxdbs-checks-and-notifications-system/)**
>
> InfluxDB 2.0s Checks and Notifications system is likely the most powerful and flexible system for creating alerts based on time series data.

I don’t know if this is possible with Grafana.

You’ll need to create a custom notification rule.  
Here’s an example of how to send an email notification:

> **[Send alert email | InfluxDB OSS 2.6 Documentation](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/send-email/)**
>
> Send an alert email.

What email server are you using?  
Here’s a tutorial for creating a custom notification endpoint with telegram:

> **[telegram package | Flux 0.x Documentation](https://docs.influxdata.com/flux/v0.x/stdlib/contrib/sranka/telegram/)**
>
> The telegram package provides functions for sending messages to Telegram using the Telegram Bot API.

Here’s a tutorial for how to configure a slack notification:

> **[TL;DR InfluxDB Tech Tips: Configuring a Slack Notification](https://www.influxdata.com/blog/tldr-influxdb-tech-tips-configuring-slack-notification-with-influxdb/)**
>
> In this TL;DR InfluxDB Tech Tips post, we set up a Slack Notification Rule and Endpoint through the InfluxDB UI.

I realize you just asked for email, but I figured providing more examples could be helpful in case you decide you want to take advantage of any of the other notification endpoint packages.

Here’s a complete list of notification endpoints:

> <https://github.com/influxdata/docs-v2/issues/2405>
>
> On the \[Manage notification endpoints\](https://docs.influxdata.com/influxdb/v2.0…/monitor-alert/notification-endpoints/) doc and/or \[Monitor data and send alerts\](https://docs.influxdata.com/influxdb/v2.0/monitor-alert/) doc, add narrative/links to let folks know all the 3rd party endpoints that alerts can be sent to:
> \- \[Telegram\](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/telegram/endpoint/)
> \- \[Discord\](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/discord/endpoint/)
> \- \[Opsgenie\](https://docs.influxdata.com/influxdb/v2.0/reference/flux/stdlib/contrib/opsgenie/endpoint/)

---

<div class="post-metadata">

**Author:** ![pcmann](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@pcmann](https://community.influxdata.com/u/pcmann)\
**Post date:** [July 5, 2021, 6:13am UTC](https://community.influxdata.com/t/simple-offline-check-telegraf-influxdb-2-grafana-alert/20596/3 "2021-07-05T06:13:40Z")

</div>

> [@Anaisdg](#):
>
> ore examples

Thanks for this @Anaisdg but I have already gone through this and a lot was helpful but all i need is to report on when a telegraf agent has stopped reporting

From what i can see is that I get information on a host until it stops sending but how do I monitor the hosts column? say if a host from teh list was reporting but then isn’t - I want to know that

Is this possible whether directly in InfluxDB or with Grafana?

Cheers!
