Skip to content

Commit

Permalink
3.15 20240314 (#1032)
Browse files Browse the repository at this point in the history
* Update Thruk.py

Fixing "Recheck" error for Thruk systems by adding the mandatory "Content-Type" header to fix #1013

* Update build-release-latest.yml

---------

Co-authored-by: tabbitsp <[email protected]>
  • Loading branch information
HenriWahl and tabbitsp authored Apr 20, 2024
1 parent c353c40 commit 52c4363
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Nagstamon/Servers/Thruk.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ def _set_acknowledge(self, host, service, author, comment, sticky, notify, persi
self.FetchURL(url, giveback='raw', cgi_data=cgi_data)

def _set_recheck(self, host, service):
self.session.headers.update({'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'})

if service != '':
if self.hosts[host].services[ service ].is_passive_only():
# Do not check passive only checks
Expand Down

0 comments on commit 52c4363

Please sign in to comment.