influxdata / influxdata/ui

Notebook(Alerts): Zenoss Alert export generates flux script that cannot be compiled

Open
#3,847 4 comments 0 reactions 0 assignees View on GitHub
area/notebooks blocked bonitoo kind/bug team/automation team/ui
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 the username, password, severity, action, method and change the URL to point to the listener, if not testing against the actual Zenoss service.
8. Click "Export Alert Task"
9. Open the generated task in the tasks view
10. Click "Run Task". This schedules a run
11. After a moment open the Task List.

**Expected behavior:**

Expected the task to be run and a message to appear at the listener

**Actual behavior:**

The Last Run status is Error.
Open the Task Editor. The generated flux script cannot be compiled.

**Visual Proof:**

![NBAlertTaskZenossFail01](https://user-images.githubusercontent.com/25881301/153900766-8eaf8dae-415a-4496-8358-638a027825d5.png)

_The generated flux script_
![NBAlertTaskZenossFluxFail01](https://user-images.githubusercontent.com/25881301/153900854-c4e84479-002d-44f6-a813-6d275d5f1a94.png)

## About your environment

**Environment info:**

Testing in K8SIDPE

Last commit in project UI

```
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
```

Last 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.