Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing pmie webhook action configuration functionality #177

Closed

Conversation

natoscott
Copy link
Collaborator

Resolves Red Hat issue RHEL-13760

@natoscott natoscott force-pushed the webhook-event-notification branch from 7bc8406 to a5e8a35 Compare November 27, 2023 21:48
@richm
Copy link
Collaborator

richm commented Nov 28, 2023

[citest]

1 similar comment
@richm
Copy link
Collaborator

richm commented Nov 29, 2023

[citest]

---
# yamllint disable rule:line-length
- name: Check if webhook notification is set
command: grep -e 'webhook_endpoint .* {{ __test_webhook }}' /var/lib/pcp/config/pmie/config.default
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't match. Are you trying to match something like

  & shell 10 min "pmie_webhook 'https://example.com:4242/endpoint|Restart unresponsive PMDAs" "|%h|pmda%i[%v]@%h" "'";

or something like

// 0 global webhook_endpoint = "https://example.com:4242/endpoint"

if the latter, then you'll have to use

  command: grep 'webhook_endpoint .* "{{ __test_webhook }}"' /var/lib/pcp/config/pmie/config.default

to match the double quotes. If the double quotes are optional, then maybe something like

  command: grep -E 'webhook_endpoint .* "?{{ __test_webhook }}"?' /var/lib/pcp/config/pmie/config.default

(note that -E turns on extended regex, not -e)

tests/check_notification.yml Outdated Show resolved Hide resolved
Fix grep search
@richm
Copy link
Collaborator

richm commented Dec 4, 2023

[citest]

@richm
Copy link
Collaborator

richm commented Dec 5, 2023

@natoscott another issue - grafana is core dumping e.g. rhel9.4 tests_bz1855544.yml - the error is

Dec 05 13:21:53 localhost grafana-server[56716]: panic: coremodel framework loaded cue.Value has err: import failed reading dir /pkg/framework/coremodel: readDir: lstat //efi: permission denied

@natoscott
Copy link
Collaborator Author

Superceded by #181

@natoscott natoscott closed this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants