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

Allow PRTG hook to use the test functionality #123

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/models/pager_tree/integrations/prtg/v3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def adapter_thirdparty_id
def adapter_action
status = adapter_incoming_request_params.dig("status").to_s.downcase

if status == "down"
# %status is a special value that PRTG uses to indicate that will be used in the test webhook
if status == "down" || status == "%status"
:create
elsif status.include?("now: up")
:resolve
Expand Down