8000 [Bug]: Netdata does not respect Pushover limits · Issue #20450 · netdata/netdata · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: Netdata does not respect Pushover limits #20450
Open
@ribtoks

Description

@ribtoks

Bug description

See PushOver Limits:

Messages are currently limited to 1024 4-byte UTF-8 characters, with a title of up to 250 characters. Supplementary URLs are limited to 512 characters, and URL titles to 100 characters.

For my alarm PushOver API returns an error: "errors":["Url is too long (maximum is 512 characters)"].

The problem is that alarm-notify.sh script is constructing $goto_url, which in my case is quite long due to a metric from Prometheus endpoint (metric has labels inside etc.)

Expected behavior

Option1. URL and other fields are checked for length
Option 2. Ability to drop URL via configuration

Steps to reproduce

Just hardode any longer values (e.g. redirect_params) into goto_url and try to send PushOver notification

goto_url="${NETDATA_REGISTRY_URL}/registry-alert-redirect.html?agent_machine_guid=${NETDATA_REGISTRY_UNIQUE_ID}&host_machine_guid=${child_machine_guid}&transition_id=${transition_id}&${redirect_params}"

Installation method

kickstart.sh

System info

This is not applicable to any particular system

Netdata build info

Netdata v2.5.3

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds triageIssues which need to be manually labelled

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0