Sent alert check deadman to email?(no third party service)

Sent alert check deadman to email?(no third party service)

its possible?

thank you

i see this post:

nothing change?

Hello @Mark_influx,
Have you had a chance to take a look at these docs?

thank you @Anaisdg is see that page in documentation but is all with third-party i search a metod to sent email or notification into a mail with local smtp

i see this method is possible to personalize with script with local smtp?

https://www.youtube.com/watch?v=LfWVZHuCCnE
at minute 54:00 at the moment is the best i see but use rbox(third-party)

better option is use local smtp

thank you

Hello @Mark_influx,
That example uses Flux in the background.
All checks, notifications, and alerts use Flux.
Specifically that example takes advantage of

thank you i try whit notification with webhook by google but doesn’t work…with rbox works fine…

i have 2 question:

  • have example of http notification in flux language?
  • when i have scrip in flux i must insert in tasks?

thank you

Hello @Mark_influx,
Do the examples in the docs not help? What type of http.post() example are you looking for?

You can run http.post function just as a query (as you would do in the data explorer in the InfluxDB UI for example) and send a single notification. You don’t have to include it in a task, but people usually do.

this is my configuration:



but i cant sent notification to google webhook…

i see the example in http but data never sent…
i try whit rbox and work fine

thank you best regards

Hello @Mark_influx,
Can you successfully send a message in the data explorer?

//replace with your parameters
import "http"

http.post(
    url: "https://us-west-2-1.aws.cloud2.influxdata.com/",
    headers: {"Content-type": "application/json"},
    data:  json.encode(v: "foo"),
)

thank you @Anaisdg i try but nothing sent…

i made a mistake?
this is the code:

//replace with your parameters

import “http”

import “json”

from(bucket: “rasp-pi”)

|> range(start: v.timeRangeStart, stop: v.timeRangeStop)

|> filter(fn: (r) => r[“_measurement”] == “Ora-esatta”)

|> filter(fn: (r) => r[“_field”] == “valore”)

|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)

|> yield(name: “mean”)

http.post(

url: "https://chat.googleapis.com/v1/spaces/AAAAn_JQKSY/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=RTqCM7iiSE0cjpc0LNnfjW3sEyEkmeARSOWIb6_3jDM%3D",

headers: {"Content-type": "application/json"},

data:  json.encode(v: "mean"),

)

no anyone send notification via mail or google webhook ?