influxdata / influxdata/ui

Notebook(Alerts): Zenoss Alert Test Alert uses invalid flux script

Open
#3,841 1 comment 0 reactions 0 assignees View on GitHub
area/notebooks bonitoo kind/bug severity/sev-3 team/automation team/ui team/unity
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

_Note_ - for this test we are temporarily using a simple HTTP echo server in EC2 before creating and testing against an actual Zenoss account.

## About the bug

**Steps to reproduce:**
List the minimal actions needed to reproduce the behavior.

1. Setup a listener to receive Zenoss messages.
2. Go to Influxdbv2 UI (note that during this test the feature flag 'notebooksNewEndpoints' was set)
3. Add test data to a bucket
4. Create an Alert Notebook
5. Use the test data to define the query
6. In the alert section choose Zenoss
7. Add a the username, password, severity, action and Method
8. Click "Test Alert"

**Expected behavior:**

Expected to receive an alert message in the listener

**Actual behavior:**

An error notification appears "Failed to send alert to zenoss. Please try again."
In the Developer Tools networking console the return value was 400.
Copying the flux script payload into the Explorer window shows that the script is invalid.

**Visual Proof:**

_screencast_
![NBAlertZenossFail01](https://user-images.githubusercontent.com/25881301/153866570-5d5bc49d-7caa-482c-af54-6793b50237a1.gif)

_Generated flux script in explorer _
![NBAlertZenossGeneratedFlux01](https://user-images.githubusercontent.com/25881301/153866663-e5b63062-cb72-44c6-9646-09875384f069.png)

## About your environment

**Environment info:**

Testing against K8SIDPE remocal.

Latest commit in UI Project
```
commit a832ae6f4e4979fced6e44fb2cc955afa05fa3f6 (HEAD -> master, upstream/master, origin/master, origin/HEAD)
Author: asalem1 <19984220+asalem1@users.noreply.github.com>
Date: Thu Feb 10 13:02:46 2022 -0800

```
Latest commit in K8SIDPE
```
commit 68fd2e73d645a0aad1f7075a61a411b4adbe08b1 (HEAD -> master, origin/master, origin/alchemy/automatic, origin/HEAD)
Author: Hercules Mango Churchill
Date: Thu Feb 10 05:11:06 2022 +0000

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.