Skip to content

Commit

Permalink
Allow PRTG hook to use the test (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
armiiller authored Sep 9, 2024
1 parent 48b119d commit f6cc755
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit f6cc755

Please sign in to comment.