diff --git a/.idea/sqldialects.xml b/.idea/sqldialects.xml index 7cc52b7..7d724b3 100644 --- a/.idea/sqldialects.xml +++ b/.idea/sqldialects.xml @@ -1,6 +1,8 @@ + + \ No newline at end of file diff --git a/Hyper-V/VMs-Backups.php b/Hyper-V/VMs-Backups.php index 0917cc0..3c6f9ac 100644 --- a/Hyper-V/VMs-Backups.php +++ b/Hyper-V/VMs-Backups.php @@ -83,7 +83,7 @@ 'OK' or lastresult is null) order by lastresult,name"); + $answers = Invoke_infra("SELECT * FROM VMs_Backup where ( Owner like 'DUN-VMH%' or Owner like 'MDK-VMH%' ) and name not like 'WS%' and owner not like '%WKG%' and owner not like '%VMH-WM%' and Exclusion ='' and (LastResult <> 'OK' or lastresult is null) and policy is not null order by lastresult,name"); foreach ($answers as $row) { $er++; $date1 = date_create($row['LastKnownGood']); $diff = date_diff($date1, date_create(date("Y-m-d"))); diff --git a/Inventory/Server-Detail.php b/Inventory/Server-Detail.php index 7951b67..0d867d5 100644 --- a/Inventory/Server-Detail.php +++ b/Inventory/Server-Detail.php @@ -95,7 +95,7 @@ echo ""; exit; } - if(strpos($Qw[0]['DECOM'],'-') != false || strpos($Qx[0]['Decom'],'-') != false){ + if(strpos($Qw[0]['DECOM'], '-') || strpos($Qx[0]['Decom'], '-')){ echo '

'. strtoupper($server) .' : DECOMMISSIONED !

'; echo ''; echo ""; @@ -124,6 +124,7 @@ $site = substr($Qx[0]['Owner'],0,3); }else{ echo " Physical"; + echo " ".Invoke_GLPI("select a.name from glpi_computermodels a left join glpi_computers b on a.id = b.computermodels_id where b.name = '$server'")[0]['name'].""; } } ?> @@ -242,17 +243,17 @@ Zabbix : ".$Qw[0]['zabbix'].""; }else{ echo "Zabbix : Not Installed"; } - if(strpos($Qw[0]['sentinel'],'.') != false){ + if(strpos($Qw[0]['sentinel'], '.')){ echo " SentinelOne : ".$Qw[0]['sentinel'].""; }else{ echo " SentinelOne : Not Installed"; } - if(strpos($Qw[0]['zabbix'],'.') != false){ + if(strpos($Qw[0]['zabbix'], '.')){ echo " Nessus : ".$Qw[0]['nessus'].""; }else{ echo " Nessus : Not Installed"; @@ -260,19 +261,19 @@ } if(is_array($Qx)){ $a = Invoke_Infra("select * from X_cmdb_Product where HOSTNAME='$server' and Name ='zabbix'"); - if(is_array($a) && strpos($a[0]['Ver'],'.') != false){ + if(is_array($a) && strpos($a[0]['Ver'], '.')){ echo "Zabbix : ".$a[0]['Ver']." - ".$a[0]['State'].""; }else{ echo "Zabbix : Not Installed"; } $a = Invoke_Infra("select * from X_cmdb_Product where HOSTNAME='$server' and Name ='s1'"); - if(is_array($a) && strpos($a[0]['Ver'],'.') != false){ + if(is_array($a) && strpos($a[0]['Ver'], '.')){ echo " SentinelOne : ".$a[0]['Ver']." - ".$a[0]['State'].""; }else{ echo " SentinelOne : Not Installed"; } $a = Invoke_Infra("select * from X_cmdb_Product where HOSTNAME='$server' and Name ='nessus'"); - if(is_array($a) && strpos($a[0]['Ver'],'.') != false){ + if(is_array($a) && strpos($a[0]['Ver'], '.')){ echo " Nessus : ".$a[0]['Ver']." - ".$a[0]['State'].""; }else{ echo " Nessus : Not Installed"; diff --git a/X/StdOut-detail.php b/X/StdOut-detail.php index 120c27d..a094070 100644 --- a/X/StdOut-detail.php +++ b/X/StdOut-detail.php @@ -24,162 +24,222 @@ - - + + - - - -
-
- -
- -
- -
- -

Script Details

+ + + +
+
+ +
+ +
+ +
+ +

Script Details

- -
- -