Make specific recheck work again

This commit is contained in:
Benjamin Drieu 2022-04-22 11:22:25 +02:00 committed by Benjamin Drieu
parent 146ffe7b09
commit 51bfedd349

View File

@ -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 );
}