From f61664909fc4e39235eb4a64911e2a315ad3c10e Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Tue, 21 Jun 2022 23:05:24 +0200 Subject: [PATCH] extend jokob-sk maintenance task DB Add a table with some infos about active scans, DB size and last modification date. --- front/css/pialert.css | 18 +++++++++++++++ front/maintenance.php | 51 +++++++++++++++++++++++++++++++++++++++---- 2 files changed, 65 insertions(+), 4 deletions(-) diff --git a/front/css/pialert.css b/front/css/pialert.css index ca2189f0..6766abbe 100644 --- a/front/css/pialert.css +++ b/front/css/pialert.css @@ -455,3 +455,21 @@ .dbtools-button { margin: 5px; display: inline-block; width: 140px; height: 140px; white-space: normal; word-wrap: break-word; font-size: 16px; border-radius: 10px; } + +.table-cell:nth-child(1) {background: #272c30} +.table-cell:nth-child(2) {background: #272c30} + + +.table { + display: table; + border-spacing: 0em; + font-weight: 400; + font-size: 16px; + width: 95%; + margin: auto; + margin-top: 40px; + margin-bottom: 40px; +} +.table-row {display: table-row; padding: 3px; } +.table-cell {display: table-cell; padding: 3px; padding-left: 10px;} +} \ No newline at end of file diff --git a/front/maintenance.php b/front/maintenance.php index 3847da96..cef40efe 100644 --- a/front/maintenance.php +++ b/front/maintenance.php @@ -28,10 +28,52 @@ -
+
-
+ &1'; +$pia_arpscans = ""; +exec($execstring, $pia_arpscans); + +$execstring = 'ps -f -u pi | grep "nmap" 2>&1'; +$pia_nmapscans = ""; +exec($execstring, $pia_nmapscans); + + ?> + +
+
+
Database-Path
+
+
+
+
Database-Size
+
+
+
+
last Modification
+
+
+
+
Scan Status (arp)
+
Scans currently running
+
+
+
Scan Status (nmap)
+
Scans currently running
+
+
+ + +
@@ -43,9 +85,10 @@
- -
+ +
+