From 51bfedd34936124d084d60f9124a7b62c84cdb3e Mon Sep 17 00:00:00 2001 From: Benjamin Drieu Date: Fri, 22 Apr 2022 11:22:25 +0200 Subject: [PATCH] Make specific recheck work again --- servers/icinga2api.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/servers/icinga2api.js b/servers/icinga2api.js index b460cd1..960094f 100644 --- a/servers/icinga2api.js +++ b/servers/icinga2api.js @@ -55,7 +55,7 @@ class Icinga2API extends GenericServer { { let message = Soup.form_request_new_from_hash ( 'POST', this.urlcgi + '/actions/reschedule-check', { } ); - let params = '{ "type": "Service", "filter": "host.name==\\"%s\\" && service.name==\\"%s\\"", "force": true, "pretty": true }' . format ( encodeURI ( entry.real_host_name ), encodeURI ( entry.real_service_display_name ) ); + let params = '{ "type": "Service", "filter": "host.name==\\"%s\\" && service.name==\\"%s\\"", "force": true, "pretty": true }' . format ( entry.real_host_name, entry.real_service_display_name ); message.request_body.truncate(); message.request_body.append ( params ); @@ -63,7 +63,6 @@ class Icinga2API extends GenericServer { message.button = entry.button; message.request_headers.append ( 'Accept', 'application/json' ); -// log ( message.request_headers ); this.authenticateAndSend ( message, this.handleCMDMessage ); } @@ -80,7 +79,6 @@ class Icinga2API extends GenericServer { message.button = button; message.request_headers.append ( 'Accept', 'application/json' ); -// log ( message.request_headers ); this.authenticateAndSend ( message, this.handleCMDMessage ); }