From 8ee2d53d1ab79dfd8b56864ca7c70e9399cc9539 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Mon, 11 Mar 2024 13:04:31 +0000 Subject: [PATCH] Add support for Server monitor type in MonitorCriteriaInstance.ts and update start script in package.json --- Common/Types/Monitor/MonitorCriteriaInstance.ts | 3 ++- InfrastructureAgent/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Common/Types/Monitor/MonitorCriteriaInstance.ts b/Common/Types/Monitor/MonitorCriteriaInstance.ts index fec432db96..a8fae437ab 100644 --- a/Common/Types/Monitor/MonitorCriteriaInstance.ts +++ b/Common/Types/Monitor/MonitorCriteriaInstance.ts @@ -104,7 +104,8 @@ export default class MonitorCriteriaInstance extends DatabaseProperty { if ( arg.monitorType === MonitorType.Ping || arg.monitorType === MonitorType.IP || - arg.monitorType === MonitorType.Port + arg.monitorType === MonitorType.Port || + arg.monitorType === MonitorType.Server ) { monitorCriteriaInstance.data = { id: ObjectID.generate().toString(), diff --git a/InfrastructureAgent/package.json b/InfrastructureAgent/package.json index b5c0d000b7..748fc5211b 100644 --- a/InfrastructureAgent/package.json +++ b/InfrastructureAgent/package.json @@ -5,7 +5,7 @@ "description": "", "main": "./build/dist/Index.js", "scripts": { - "start": "node --require ts-node/register Index.ts", + "start": "node --require ts-node/register Index.ts $npm_config_services", "compile": "tsc", "clear-modules": "rm -rf node_modules && rm package-lock.json && npm install", "dev": "npx nodemon",