-
Notifications
You must be signed in to change notification settings - Fork 20
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
fix: add missing pmie webhook action configuration functionality #177
Conversation
Resolves Red Hat issue RHEL-13760
7bc8406
to
a5e8a35
Compare
[citest] |
1 similar comment
[citest] |
tests/check_notification.yml
Outdated
--- | ||
# 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 |
There was a problem hiding this comment.
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
)
Fix grep search
[citest] |
@natoscott another issue - grafana is core dumping e.g. rhel9.4 tests_bz1855544.yml - the error is
|
Superceded by #181 |
Resolves Red Hat issue RHEL-13760