Added Windows Service Monitor & changed local to systen

This commit is contained in:
iotux
2025-12-15 16:27:20 +01:00
parent fe50adb061
commit 0f951ef123
5 changed files with 123 additions and 68 deletions
+3 -3
View File
@@ -1024,10 +1024,10 @@
"useRemoteBrowser": "Use a Remote Browser",
"deleteRemoteBrowserMessage": "Are you sure want to delete this Remote Browser for all monitors?",
"GrafanaOncallUrl": "Grafana Oncall URL",
"Local Service": "Local Service",
"System Service": "System Service",
"Service Name": "Service Name",
"localServiceDescription": "The internal service name used by the OS (systemd for Linux, Service Name for Windows).",
"localServiceDebugHelp": "To debug, run this on your server: {linuxCommand} (Linux) or {windowsCommand} (Windows PowerShell). The command must return 'active' or 'Running'.",
"systemServiceDescription": "The internal service name used by the OS (systemd for Linux, Service Name for Windows).",
"systemServiceDebugHelp": "To debug, run this on your server: {linuxCommand} (Linux) or {windowsCommand} (Windows PowerShell). The command must return 'active' or 'Running'.",
"Browser Screenshot": "Browser Screenshot",
"Command": "Command",
"Expected Output": "Expected Output",
+8 -8
View File
@@ -45,8 +45,8 @@
<option value="docker">
{{ $t("Docker Container") }}
</option>
<option value="local-service">
{{ $t("Local Service") }}
<option value="system-service">
{{ $t("System Service") }}
</option>
<option value="real-browser">
HTTP(s) - Browser Engine (Chrome/Chromium) (Beta)
@@ -665,15 +665,15 @@
</div>
</template>
<template v-if="monitor.type === 'local-service'">
<template v-if="monitor.type === 'system-service'">
<div class="my-3">
<label for="local-service-name" class="form-label">{{ $t("Service Name") }}</label>
<input id="local-service-name" v-model="monitor.local_service_name" type="text" class="form-control" required placeholder="nginx.service">
<label for="system-service-name" class="form-label">{{ $t("Service Name") }}</label>
<input id="system-service-name" v-model="monitor.system_service_name" type="text" class="form-control" required placeholder="nginx.service">
<div class="form-text">
{{ $t("localServiceDescription") }}
{{ $t("systemServiceDescription") }}
<div class="mt-2">
<i18n-t keypath="localServiceDebugHelp" tag="span">
<i18n-t keypath="systemServiceDebugHelp" tag="span">
<template #linuxCommand>
<code>systemctl is-active &lt;service&gt;</code>
</template>
@@ -1383,7 +1383,7 @@ const monitorDefaults = {
rabbitmqUsername: "",
rabbitmqPassword: "",
conditions: [],
local_service_name: "",
system_service_name: "",
};
export default {