diff --git a/agents/patchmon-agent-linux-386 b/agents/patchmon-agent-linux-386 index 2a43b01..4f8457f 100755 Binary files a/agents/patchmon-agent-linux-386 and b/agents/patchmon-agent-linux-386 differ diff --git a/agents/patchmon-agent-linux-amd64 b/agents/patchmon-agent-linux-amd64 index dc2e6a5..17a1878 100755 Binary files a/agents/patchmon-agent-linux-amd64 and b/agents/patchmon-agent-linux-amd64 differ diff --git a/agents/patchmon-agent-linux-arm b/agents/patchmon-agent-linux-arm index d444f4f..d064a56 100755 Binary files a/agents/patchmon-agent-linux-arm and b/agents/patchmon-agent-linux-arm differ diff --git a/agents/patchmon-agent-linux-arm64 b/agents/patchmon-agent-linux-arm64 index 29ec7b0..fb76bc7 100755 Binary files a/agents/patchmon-agent-linux-arm64 and b/agents/patchmon-agent-linux-arm64 differ diff --git a/backend/package.json b/backend/package.json index 5eceb7d..8fb44b2 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "patchmon-backend", - "version": "1.3.5", + "version": "1.3.6", "description": "Backend API for Linux Patch Monitoring System", "license": "AGPL-3.0", "main": "src/server.js", diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 7c6582f..18c13df 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -103,6 +103,7 @@ model hosts { gateway_ip String? hostname String? kernel_version String? + installed_kernel_version String? load_average Json? network_interfaces Json? ram_installed Int? diff --git a/backend/src/routes/hostRoutes.js b/backend/src/routes/hostRoutes.js index d2e5864..0cbbf54 100644 --- a/backend/src/routes/hostRoutes.js +++ b/backend/src/routes/hostRoutes.js @@ -506,6 +506,10 @@ router.post( .optional() .isString() .withMessage("Kernel version must be a string"), + body("installedKernelVersion") + .optional() + .isString() + .withMessage("Installed kernel version must be a string"), body("selinuxStatus") .optional() .isIn(["enabled", "disabled", "permissive"]) @@ -587,6 +591,8 @@ router.post( // System Information if (req.body.kernelVersion) updateData.kernel_version = req.body.kernelVersion; + if (req.body.installedKernelVersion) + updateData.installed_kernel_version = req.body.installedKernelVersion; if (req.body.selinuxStatus) updateData.selinux_status = req.body.selinuxStatus; if (req.body.systemUptime) diff --git a/frontend/env.example b/frontend/env.example index 7cbdf21..b016684 100644 --- a/frontend/env.example +++ b/frontend/env.example @@ -6,5 +6,5 @@ VITE_API_URL=http://localhost:3001/api/v1 # Application Metadata VITE_APP_NAME=PatchMon -VITE_APP_VERSION=1.3.5 +VITE_APP_VERSION=1.3.6 diff --git a/frontend/package.json b/frontend/package.json index ffb1c09..6deaaac 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "patchmon-frontend", "private": true, - "version": "1.3.5", + "version": "1.3.6", "license": "AGPL-3.0", "type": "module", "scripts": { diff --git a/frontend/src/pages/HostDetail.jsx b/frontend/src/pages/HostDetail.jsx index f68a1c4..64bbfd2 100644 --- a/frontend/src/pages/HostDetail.jsx +++ b/frontend/src/pages/HostDetail.jsx @@ -1013,29 +1013,25 @@ const HostDetail = () => { )} - {(host.kernel_version || - host.installed_kernel_version) && ( -
- Running Kernel -
-- {host.kernel_version} -
-- Installed Kernel -
-- {host.installed_kernel_version} -
-+ Running Kernel +
++ {host.kernel_version} +
++ Installed Kernel +
++ {host.installed_kernel_version} +