diff --git a/web/src/components/ChecksTab.vue b/web/src/components/ChecksTab.vue
index e7148b82..3fc39958 100644
--- a/web/src/components/ChecksTab.vue
+++ b/web/src/components/ChecksTab.vue
@@ -17,7 +17,7 @@
Ping Check
-
+
@@ -133,25 +133,7 @@
- {{ props.row.readable_desc }}
- Avg CPU Load > {{ props.row.cpuload }}%
- Script check: {{ props.row.script.name }}
- Ping {{ props.row.name }} ({{ props.row.ip }})
- Avg memory usage > {{ props.row.threshold }}%
- Service Check - {{ props.row.svc_display_name }}
- Event Log Check - {{ props.row.desc }}
+ {{ props.row.readable_desc }}
Awaiting First Synchronization
Passing
@@ -202,6 +184,14 @@
:checkpk="checkpk"
/>
+
+
+
@@ -213,17 +203,6 @@
:agentpk="selectedAgentPk"
/>
-
-
-
-
-
-
-
@@ -274,11 +253,10 @@ import { mapState, mapGetters } from "vuex";
import mixins from "@/mixins/mixins";
import DiskSpaceCheck from "@/components/modals/checks/DiskSpaceCheck";
import MemCheck from "@/components/modals/checks/MemCheck";
+import CpuLoadCheck from "@/components/modals/checks/CpuLoadCheck";
// refactor below
import AddPingCheck from "@/components/modals/checks/AddPingCheck";
import EditPingCheck from "@/components/modals/checks/EditPingCheck";
-import AddCpuLoadCheck from "@/components/modals/checks/AddCpuLoadCheck";
-import EditCpuLoadCheck from "@/components/modals/checks/EditCpuLoadCheck";
import AddWinSvcCheck from "@/components/modals/checks/AddWinSvcCheck";
import EditWinSvcCheck from "@/components/modals/checks/EditWinSvcCheck";
import AddScriptCheck from "@/components/modals/checks/AddScriptCheck";
@@ -293,10 +271,9 @@ export default {
components: {
DiskSpaceCheck,
MemCheck,
+ CpuLoadCheck,
AddPingCheck,
EditPingCheck,
- AddCpuLoadCheck,
- EditCpuLoadCheck,
AddWinSvcCheck,
EditWinSvcCheck,
AddScriptCheck,
@@ -313,11 +290,10 @@ export default {
checkpk: null,
showDiskSpaceCheck: false,
showMemCheck: false,
+ showCpuLoadCheck: false,
// refactor below
showAddPingCheck: false,
showEditPingCheck: false,
- showAddCpuLoadCheck: false,
- showEditCpuLoadCheck: false,
showAddWinSvcCheck: false,
showEditWinSvcCheck: false,
showAddScriptCheck: false,
@@ -372,6 +348,9 @@ export default {
case "memory":
this.showMemCheck = true;
break;
+ case "cpuload":
+ this.showCpuLoadCheck = true;
+ break;
}
},
checkAlertAction(pk, category, alert_type, alert_action) {
diff --git a/web/src/components/modals/checks/AddCpuLoadCheck.vue b/web/src/components/modals/checks/AddCpuLoadCheck.vue
deleted file mode 100644
index 49d50638..00000000
--- a/web/src/components/modals/checks/AddCpuLoadCheck.vue
+++ /dev/null
@@ -1,81 +0,0 @@
-
-
-
- Add CPU Load Check
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/web/src/components/modals/checks/CpuLoadCheck.vue b/web/src/components/modals/checks/CpuLoadCheck.vue
new file mode 100644
index 00000000..cd9c64b9
--- /dev/null
+++ b/web/src/components/modals/checks/CpuLoadCheck.vue
@@ -0,0 +1,106 @@
+
+
+
+ Add CPU Load Check
+ Edit CPU Load Check
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/web/src/components/modals/checks/EditCpuLoadCheck.vue b/web/src/components/modals/checks/EditCpuLoadCheck.vue
deleted file mode 100644
index 055e5b33..00000000
--- a/web/src/components/modals/checks/EditCpuLoadCheck.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-
-
-
- Edit CPU Load Check
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file