diff --git a/CommonServer/Utils/Probe/Criteria/ServerMonitorCriteria.ts b/CommonServer/Utils/Probe/Criteria/ServerMonitorCriteria.ts index 54bedc4146..2b8232c8f6 100644 --- a/CommonServer/Utils/Probe/Criteria/ServerMonitorCriteria.ts +++ b/CommonServer/Utils/Probe/Criteria/ServerMonitorCriteria.ts @@ -162,48 +162,8 @@ export default class ServerMonitorCriteria { !(input.dataToProcess as ServerMonitorResponse) .onlyCheckRequestReceivedAt ) { - const thresholdProcessName: string = threshold - .toString() - .trim() - .toLowerCase(); - if (input.criteriaFilter.filterType === FilterType.IsExecuting) { - const processNames: Array = - ( - input.dataToProcess as ServerMonitorResponse - )?.processes?.map((item: ServerProcess) => { - return item.name.trim().toLowerCase(); - }) || []; - - if (processNames.includes(thresholdProcessName)) { - return `Process ${threshold} is executing.`; - } - - return null; - } - - if (input.criteriaFilter.filterType === FilterType.IsNotExecuting) { - const processNames: Array = - ( - input.dataToProcess as ServerMonitorResponse - )?.processes?.map((item: ServerProcess) => { - return item.name.trim().toLowerCase(); - }) || []; - - if (!processNames.includes(thresholdProcessName)) { - return `Process ${threshold} is not executing.`; - } - - return null; - } - } - - if ( - input.criteriaFilter.checkOn === CheckOn.ServerProcessName && - threshold && - !(input.dataToProcess as ServerMonitorResponse) - .onlyCheckRequestReceivedAt - ) { + debugger; const thresholdProcessName: string = threshold .toString() .trim()