@@ -66,9 +66,9 @@
$result = $conn->query("select * from GlobalCrossover where SCCM is null or (SCCMlu is not null and DATEDIFF(now(),SCCMlu) > 7) order by server");
echo "
Filter : SCCM non compliant
";
break;
- case "EPO":
- $result = $conn->query("select * from GlobalCrossover where EPO is null or (EPOlu is not null and DATEDIFF(now(),EPOlu) > 7) order by server");
- echo "
Filter : EPO non compliant
";
+ case "NESSUS":
+ $result = $conn->query("select * from GlobalCrossover where EPO is null order by server");
+ echo "
Filter : NESSUS non compliant
";
break;
case "NBU":
$result = $conn->query("select * from GlobalCrossover where NBU is null or (NBUlu is not null and DATEDIFF(now(),NBUlu) > 30) order by server");
@@ -107,8 +107,7 @@
Inventory
query("SELECT * FROM GlobalCrossover where epo = 'Y' order by server");
+ $result = $conn->query("SELECT * FROM GlobalCrossover where epo like '%.%' order by server");
?>
+
+ query("SELECT * FROM GlobalCrossover where epo like '%.%' order by server");
+ ?>
+
+
+
+
Name
+
Version
+
+
+
+ ";
+ echo "
".$row['Server']."
";
+ echo "
".$row['EPO']."
";
+ echo "";
+ }
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/dashboard/S1-Detail.php b/dashboard/S1-Detail.php
index 41e9502..51afd7d 100644
--- a/dashboard/S1-Detail.php
+++ b/dashboard/S1-Detail.php
@@ -44,7 +44,7 @@
query("SELECT * FROM GlobalCrossover where S1 = 'Y' order by server");
+ $result = $conn->query("SELECT * FROM GlobalCrossover where S1 like '%.%' order by server");
?>
format("%R%a") > 7){
- echo "
".$row['EPOlu']."
";
+ echo "
".$row['S1lu']."
";
}else{
- echo "
".$row['EPOlu']."
";
+ echo "
".$row['S1lu']."
";
}
echo "";
}
diff --git a/include/db_connect.inc.php b/include/db_connect.inc.php
index 797bbc4..f7582c1 100644
--- a/include/db_connect.inc.php
+++ b/include/db_connect.inc.php
@@ -82,6 +82,26 @@ function Invoke_WebInfraTools($request)
}
}
+// MySQL web-infra-tools sur DUN-SUP-S2ENTRY
+function Invoke_WebInfraReports($request)
+{
+ $user = "admin";
+ $pwd = "Arth3m1s&*0";
+ $server = "dun-sup-s2entry.armony.net:3306";
+ $database = "web-infra-reports";
+ $conn = new mysqli($server, $user, $pwd, $database);
+ if (!($conn)) {
+ echo "Pas de connexion";
+ }
+ $rs = $conn->query($request);
+ while ($row = mysqli_fetch_array($rs)) {
+ $answer[] = $row;
+ }
+ if (isset($answer)) {
+ return $answer;
+ }
+}
+
//INFRA sur DUN-PRD-R1MSSQL\PRD
function Invoke_Infra($request)
{
diff --git a/index.php b/index.php
index baad522..76ba22b 100644
--- a/index.php
+++ b/index.php
@@ -114,16 +114,16 @@
-
+
-
EPO
+
NESSUS
query("SELECT count(*) as nbepo FROM GlobalCrossover where epo = 'Y'");
- $nbepo = mysqli_fetch_array($result)['nbepo'];
+ $result = $conn->query("SELECT count(*) as nbnessus FROM GlobalCrossover where epo like '%.%'");
+ $nbnessus = mysqli_fetch_array($result)['nbnessus'];
?>
-
Agents
+
Agents
@@ -133,7 +133,7 @@
SentinelOne
query("SELECT count(*) as nbS1 FROM GlobalCrossover where S1 = 'Y'");
+ $result = $conn->query("SELECT count(*) as nbS1 FROM GlobalCrossover where S1 like '%.%'");
$nbS1 = mysqli_fetch_array($result)['nbS1'];
?>