diff --git a/.idea/php.xml b/.idea/php.xml index 6b2dd87..a67da82 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -12,6 +12,7 @@ + diff --git a/AD/GroupReview.php b/AD/GroupReview.php index beef160..9e1eed8 100644 --- a/AD/GroupReview.php +++ b/AD/GroupReview.php @@ -36,7 +36,7 @@
-

Group Review

+

diff --git a/AD/GroupSearch.php b/AD/GroupSearch.php index 1d2914e..443b476 100644 --- a/AD/GroupSearch.php +++ b/AD/GroupSearch.php @@ -41,7 +41,7 @@
-

Group Membership

+

@@ -60,11 +60,11 @@
- - + +
- +
diff --git a/Hyper-V/Clusters.php b/Hyper-V/Clusters.php index cb6d71e..e102d56 100644 --- a/Hyper-V/Clusters.php +++ b/Hyper-V/Clusters.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -29,7 +29,7 @@
-

Hyper-V Clusters

+

2) { - $vleft_html = "(" . $vms_left . " VMs left)"; + $vleft_html = "(" . $vms_left . " $w_VMleft)"; } elseif ($vms_left >= 1) { - $vleft_html = "(" . $vms_left . " VMs left)"; + $vleft_html = "(" . $vms_left . " $w_VMleft)"; } else { - $vleft_html = "(" . $vms_left . " VMs left)"; + $vleft_html = "(" . $vms_left . " $w_VMleft)"; } ?> @@ -192,7 +189,7 @@

- Nodes / VMs + /
-
Free Mem: GB
+
: GB
@@ -245,7 +242,7 @@ $disk_used_percentage = 100 - $free_storage_percentage; ?>
-
Free CSV:
+
:
@@ -260,15 +257,15 @@ $wrong_owner_count = $vm_issues[$cluster_name]['wrong_owner'] ?? 0; if ($unclustered_count > 0) { - echo "
Unclustered: $unclustered_count
"; + echo "
$w_unclustered: $unclustered_count
"; }else{ - echo "
Unclustered: $unclustered_count
"; + echo "
$w_unclustered: $unclustered_count
"; } if ($wrong_owner_count > 0) { - echo "
Wrong Owner: {$wrong_owner_count}
"; + echo "
$w_wrongOwner: {$wrong_owner_count}
"; }else{ - echo "
Wrong Owner: {$wrong_owner_count}
"; + echo "
$w_wrongOwner: {$wrong_owner_count}
"; } ?>
@@ -285,7 +282,7 @@


-

Total VMs Left:

+

Total :

diff --git a/Hyper-V/Memory-Hunt-VMs.php b/Hyper-V/Memory-Hunt-VMs.php new file mode 100644 index 0000000..a9f3cfb --- /dev/null +++ b/Hyper-V/Memory-Hunt-VMs.php @@ -0,0 +1,131 @@ + + + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + + + + + + '' THEN o.model + ELSE 'Inconnu' -- Ou une autre valeur par défaut si tout est vide + END AS hardware_type +FROM cmdb_memoryusage m +LEFT JOIN cmdb_srvall s ON m.vm_name = s.hostname +LEFT JOIN x_cmdb_OS x ON m.vm_name = x.hostname +LEFT JOIN cmdb_obsolescence o on m.vm_name = o.name +where m.vm_name not like '%-v%-%' order by m.Potential_Savings_GB desc"); +?> + + +
+
+ +
+ +
+ +
+ +

+ + +
+ +
+ + + + + + + + + + + + + + + + + + "; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + ?> + +
".$row['VM_Name']."".$row['Assigned_GB']."".$row['Min_Usage_GB']."".$row['Avg_Usage_GB']."".$row['Max_Usage_GB']."".$row['Potential_Savings_GB']."".$row['Storage_Total_GB']."".$row['Storage_Used_GB']."".$row['OS']."".$row['hardware_type']."
+
+
+
+ +
+
+
+ + + + + \ No newline at end of file diff --git a/Hyper-V/VMs-Backups.php b/Hyper-V/VMs-Backups.php index 6cc7ceb..5340d4d 100644 --- a/Hyper-V/VMs-Backups.php +++ b/Hyper-V/VMs-Backups.php @@ -67,13 +67,13 @@ - - - - - - - + + + + + + + @@ -228,7 +228,7 @@ ".$total." Success - ".$er." issues - ".$outdated." outdated - ".$excluded.' excluded)'; + $ERR = "$w_vmBackup (".$total." $w_success - ".$er." $w_issues - ".$outdated." $w_outdated - ".$excluded." $w_excluded)"; ?> diff --git a/Hyper-V/cluster-detail.php b/Hyper-V/cluster-detail.php index 5d3b465..3d3ae69 100644 --- a/Hyper-V/cluster-detail.php +++ b/Hyper-V/cluster-detail.php @@ -7,7 +7,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -41,7 +41,7 @@

+ style="width:100%;">
-

Worst Failover scenario available memory : " . ($clmem - $vmmem) . " / " . $clmem . " GB"; + echo "$w_worstScenario : " . ($clmem - $vmmem) . " / " . $clmem . " GB"; $pcent = round(($clmem - $vmmem) / $clmem * 100); $pcent_restant = 100 - $pcent; if ($pcent <= 5) { @@ -86,11 +84,11 @@ foreach ($clusters as $cluster) { echo "
"; $nbvm = Invoke_Infra("select count(*) as nbvm, sum(memory) as vmmem from cmdb_vms where owner ='" . $cluster['node'] . "' and decomtime is null"); - echo '

' . $cluster['node'] . " - " . $nbvm[0]['nbvm'] . " VMs " . $cluster['ts'] . "


"; + echo '

' . $cluster['node'] . " - " . $nbvm[0]['nbvm'] . " $w_VMs " . $cluster['ts'] . "


"; #Memory echo "
"; echo "
"; - echo "Free Memory : " . ($cluster['node_ram'] - 32 - $nbvm[0]['vmmem']) . " / " . ($cluster['node_ram'] - 32) . " GB"; + echo "$w_freeMem : " . ($cluster['node_ram'] - 32 - $nbvm[0]['vmmem']) . " / " . ($cluster['node_ram'] - 32) . " GB"; $pcent = round(($cluster['node_ram'] - 32 - $nbvm[0]['vmmem']) / ($cluster['node_ram'] - 32) * 100); $pcent_restant = 100 - $pcent; if ($pcent <= 5) { @@ -138,7 +136,7 @@ $total = explode(";", $csv)[1]; $used = explode(";", $csv)[2]; $free = $total - $used; - echo " Free : " . $free . "/" . $total . " GB"; + echo " : " . $free . "/" . $total . " GB"; echo "
"; echo "
"; $pcent = round($free / $total * 100); @@ -157,7 +155,7 @@
"; - echo "
"; + echo "
"; } else { echo "

"; } @@ -193,10 +191,10 @@ echo 'LUN(s) '; } if ($vm['IsClustered'] != "True") { - echo 'Unclustered '; + echo "$w_unclustered "; } else { if ($vm['Owner'] != $vm['PreferredOwner']) { - echo 'Wrong Owner '; + echo "$w_wrongOwner "; } } echo "
"; diff --git a/reports/eqp-prj.php b/Hyper-V/memory-hunt-HV.php similarity index 72% rename from reports/eqp-prj.php rename to Hyper-V/memory-hunt-HV.php index 2f3d00f..4e762d0 100644 --- a/reports/eqp-prj.php +++ b/Hyper-V/memory-hunt-HV.php @@ -31,7 +31,7 @@ @@ -44,8 +44,7 @@
-

Project and Team folders ( entries)

-
Updated every day at 07:00:00
+

@@ -71,32 +70,22 @@
VMLast BackupLast ResultLast Good BackupSizeHostPolicy
- - - - - - - + + + + + "; - }else{ - echo ""; - } - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; - echo ""; + foreach ($answers as $row) { + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; } ?> @@ -115,7 +104,7 @@ - + \ No newline at end of file diff --git a/Inventory/ClusterResource.php b/Inventory/ClusterResource.php index 2802e53..9702eff 100644 --- a/Inventory/ClusterResource.php +++ b/Inventory/ClusterResource.php @@ -52,7 +52,7 @@
-

Cluster Resources (Hyper-V excluded)

+

@@ -78,11 +78,11 @@
ServerFolderTypeACLQuotaSizeEffective Users
".$answer['server']."".$answer['folder']."".$answer['typ']."".$answer['acl']."".$answer['quota']."".$answer['size']."".$answer['users']."
".$row['HyperV_Host']."".$row['VM_Count']."".$row['Total_VM_Assigned_GB']."".$row['Total_VM_Max_Usage_GB']."".$row['Total_VM_Savings_GB']."
- - - - - + + + + + diff --git a/Inventory/Server-Detail.php b/Inventory/Server-Detail.php index 64f987d..f7cb2ff 100644 --- a/Inventory/Server-Detail.php +++ b/Inventory/Server-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -105,36 +105,46 @@ ?> - -
- - $OSKernel";} ?> - Host : ".$Qvm[0]['Owner'].""; + +
+
+ + $OSKernel";} ?> + $w_host : ".$Qvm[0]['Owner'].""; + }else{ + echo " $w_host : ".$Qvm[0]['Owner'].""; + } }else{ - echo " Host : ".$Qvm[0]['Owner'].""; + if(is_array($Qx)){ + echo " $w_host : ".$Qx[0]['Owner'].""; + $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'].""; + } } - }else{ - if(is_array($Qx)){ - echo " Host : ".$Qx[0]['Owner'].""; - $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'].""; + ?> + Site : $site";} ?> + Unclustered VM";} ?> + Maintenance ON"; } - } - ?> - Site : $site";} ?> - Unclustered VM";} ?> - Maintenance ON"; - } - ?> + ?> +
+ + +

@@ -154,7 +164,7 @@
- Memory : + :
@@ -226,27 +236,27 @@ Last Boot : ".$Qw[0]['lastBoot'].""; + echo "$w_lastReboot : ".$Qw[0]['lastBoot'].""; }elseif(is_array($Qx) && $Qx[0]['LastBoot'] != ""){ - echo "Last Boot : ".$Qx[0]['LastBoot'].""; + echo "$w_lastReboot : ".$Qx[0]['LastBoot'].""; } if(is_array($Qw) && $Qw[0]['LastKBUpdate'] != ""){ - echo " Last Update : ".$Qw[0]['LastKBUpdate'].""; + echo " $w_lastUpdate : ".$Qw[0]['LastKBUpdate'].""; }elseif(is_array($Qx) && $Qx[0]['LastUpdate'] != ""){ - echo "Last Update : ".$Qx[0]['LastUpdate'].""; + echo "$w_lastUpdate : ".$Qx[0]['LastUpdate'].""; } if($OSType == "Windows"){ $date = Invoke_Entry01("select next from rollupdate where Server='$server'"); if(is_array($date)){ if($date != ""){ - echo " Next Rollup : ".$date[0]['next'].""; + echo " $w_nextRollup : ".$date[0]['next'].""; } } } if($OSType == "Linux"){ $date = Invoke_Infra("select Next from rollup_linux_calendar where Server='$server'")[0]['Next']; if($date != ""){ - echo " Next Rollup : $date "; + echo " $w_nextRollup : $date "; } } ?> @@ -309,6 +319,19 @@ } ?> + + + IP : " . $answer[0]['IpAddress'] . " "; + echo "Mask : " . $answer[0]['Subnet'] . " "; + echo "Gateway : " . $answer[0]['Gateway'] . " "; + echo "DNS : " . $answer[0]['DNS'] . " "; + echo "Mac : " . $answer[0]['MacAddress'] . " "; + } + ?> +
diff --git a/Inventory/search_servers.php b/Inventory/search_servers.php index 2fb68a4..8c71cf8 100644 --- a/Inventory/search_servers.php +++ b/Inventory/search_servers.php @@ -45,7 +45,12 @@ } if (isset($_GET['term'])) { $term = $_GET['term']; - $query = "SELECT hostname AS serv FROM cmdb_srvall WHERE hostname LIKE '%$term%' UNION SELECT hostname AS serv FROM x_SRVALL WHERE hostname LIKE '%$term%'"; + $query = "SELECT hostname AS serv FROM cmdb_srvall + WHERE hostname LIKE '%$term%' AND (DECOM IS NULL OR DATEDIFF(day, DECOM, GETDATE()) <30) + UNION + SELECT hostname AS serv FROM x_SRVALL + WHERE hostname LIKE '%$term%' AND (DECOM IS NULL OR DATEDIFF(day, DECOM, GETDATE()) <30)"; + $conn = DB_INFRA(); $rs = odbc_exec($conn, $query); while ($row = odbc_fetch_array($rs)) { diff --git a/Links/Links.php b/Links/Links.php index 6511d40..61aaa9f 100644 --- a/Links/Links.php +++ b/Links/Links.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/Rollups/Rollup-Calendar.php b/Rollups/Rollup-Calendar.php index b1c14b3..7198358 100644 --- a/Rollups/Rollup-Calendar.php +++ b/Rollups/Rollup-Calendar.php @@ -62,7 +62,7 @@
-

Rollup Calendar

+

@@ -88,20 +88,20 @@
ClusterResourceOwner NodeStateLast CheckedDate
- + - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/SecureBoot/SecureBoot-SRV.php b/SecureBoot/SecureBoot-SRV.php new file mode 100644 index 0000000..0208f43 --- /dev/null +++ b/SecureBoot/SecureBoot-SRV.php @@ -0,0 +1,44 @@ + + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ +
+ +
+
+ + + + + diff --git a/SecureBoot/SecureBoot-WS.php b/SecureBoot/SecureBoot-WS.php new file mode 100644 index 0000000..37e8bb0 --- /dev/null +++ b/SecureBoot/SecureBoot-WS.php @@ -0,0 +1,44 @@ + + + + + + + + + Web Infra Reports IT + + + + + + + + + + + + + + + + + + + +
+
+ +
+ +
+ +
+ +
+
+ + + + + diff --git a/Shared-Folders/HomeDirectories.php b/Shared-Folders/HomeDirectories.php index ae444f9..9116d5b 100644 --- a/Shared-Folders/HomeDirectories.php +++ b/Shared-Folders/HomeDirectories.php @@ -49,7 +49,7 @@
-

Home Directories with issues ( entries)

Updated every day at 07:00:00
+

@@ -75,15 +75,15 @@
Server TypeJanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember010203040506070809101112
- - + + - - + + - - + + diff --git a/Shared-Folders/eqp-prj.php b/Shared-Folders/eqp-prj.php index 9e8fa83..fce30a8 100644 --- a/Shared-Folders/eqp-prj.php +++ b/Shared-Folders/eqp-prj.php @@ -44,7 +44,7 @@
-

Project and Team folders ( entries)

Updated every day at 07:00:00
+

( )

@@ -70,13 +70,13 @@
ServerFolder ACLin ADAccount Enabled o365 QuotaSizeLast Logon
- - + + - - + + diff --git a/Storage/Dashboard.php b/Storage/Dashboard.php index 31e1390..87c979f 100644 --- a/Storage/Dashboard.php +++ b/Storage/Dashboard.php @@ -88,7 +88,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -126,6 +126,10 @@ .gain-item span:last-child { font-weight: bold; } + + .orphan-btn { + width: 120px; + } @@ -141,7 +145,7 @@
-

SVC Storage Dashboard

+

"; + $lHOST .= "[HOST] " . $host['name'] . "
"; } } - if ($json['Data']['Hostclusters']) { - foreach ($json['Data']['Hostclusters'] as $host) { - if ($host['protocol'] != "scsi") { + + // Host clusters: real check with mapping_count + if (!empty($json['Data']['Hostclusters'])) { + foreach ($json['Data']['Hostclusters'] as $cluster) { + $isScsi = isset($cluster['protocol']) && $cluster['protocol'] === 'scsi'; + $hasNoMappings = isset($cluster['mapping_count']) && (int)$cluster['mapping_count'] === 0; + + if ($isScsi && $hasNoMappings) { $orphanHosts++; $chc = "bg-warning"; - $lHOST .= $host['name'] . "
"; + $lHOST .= "[CLUSTER] " . $cluster['name'] . "
"; } } } @@ -244,7 +260,7 @@
-
Physical Capacity
+
% @@ -270,7 +286,7 @@
-
Volume Capacity
+
% @@ -292,13 +308,13 @@
-
Capacity gain
+
% Compression
- % Thin provisioning + %

@@ -328,7 +344,7 @@
-
Physical Capacity
+
% @@ -354,7 +370,7 @@
-
Volume Capacity
+
% @@ -376,13 +392,13 @@
-
Capacity gain
+
% Compression
- % Thin provisioning + %

@@ -402,60 +418,64 @@
-
-
-
+
+
+
IO_grp 0
-
- Hosts :
- Volumes : +
+
:
+
Volumes :
-
-
+ +
+
IO_grp 1
-
- Hosts :
- Volumes : +
+
:
+
Volumes :
-
-
+ +
+
IO_grp 2
-
- Hosts :
- Volumes : +
+
:
+
Volumes :
-
-
+ +
+
-
Unnasigned LUNs
+
-
-
-
+ +
+
-
Hosts w/o LUNs
+
-
-
diff --git a/Storage/OrphanLUNs.php b/Storage/OrphanLUNs.php deleted file mode 100644 index 5fd512b..0000000 --- a/Storage/OrphanLUNs.php +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - Web Infra Reports - - - - - - - - - - - - - - - - - - - -
";} - } -?> -
-
- -
- -
- -
- -

- - -
-
ServerFolder Type ACL QuotaSizeEffective Users
".$volume['name']."
- - - - - - - - -
Luns
- -
- -
-
- - diff --git a/X/AutoremediationLog.php b/X/AutoremediationLog.php index 35c4c93..01a67ee 100644 --- a/X/AutoremediationLog.php +++ b/X/AutoremediationLog.php @@ -44,7 +44,7 @@
-

AutoRemediation Logs

+

@@ -70,9 +70,9 @@ - - - + + + diff --git a/X/Backups.php b/X/Backups.php index d659469..8f830ba 100644 --- a/X/Backups.php +++ b/X/Backups.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -25,7 +25,7 @@
-

Backups Linux/AIX

+

Linux/AIX

@@ -53,14 +53,14 @@ > - +
> > - +
@@ -68,11 +68,11 @@
TimeStampHostCommandDate
- - + + - + diff --git a/X/Inventory.php b/X/Inventory.php index 3d3ce2f..4180ad6 100644 --- a/X/Inventory.php +++ b/X/Inventory.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -25,7 +25,7 @@
-

AIX / Linux inventory

+

@@ -95,13 +95,13 @@
NameTSDate Log TypeLocation
- - - - + + + + - - + + @@ -326,7 +326,7 @@ ?>
NameHeartbeatHostOS Type DistribLast rebootLast backup Auth SentinelOne Nessus

-
servers
+
diff --git a/X/StdOut-detail.php b/X/StdOut-detail.php index ae17903..9b02335 100644 --- a/X/StdOut-detail.php +++ b/X/StdOut-detail.php @@ -132,7 +132,7 @@
- Filters : + :
name="AIX" value="1"> @@ -155,7 +155,7 @@  
name="other" value="1"> - +
@@ -165,10 +165,10 @@ - - - - + + + + diff --git a/X/StdOut.php b/X/StdOut.php index 30ac995..5761e42 100644 --- a/X/StdOut.php +++ b/X/StdOut.php @@ -40,7 +40,7 @@
-

Script Execution Follow-up

+

diff --git a/X/VIO.php b/X/VIO.php index f6c4596..94a44a1 100644 --- a/X/VIO.php +++ b/X/VIO.php @@ -129,7 +129,7 @@ usort($displayRows, function($a, $b) {
-

VIO Monitoring

+

@@ -142,14 +142,14 @@ usort($displayRows, function($a, $b) { data-sortable="true">
- + - + diff --git a/X/sva-scu.php b/X/sva-scu.php index 740f3fa..e1b10bc 100644 --- a/X/sva-scu.php +++ b/X/sva-scu.php @@ -44,7 +44,7 @@
-

SVA & SCU Accounts Attributes

Updated every hour
+

@@ -70,16 +70,16 @@
HostOSDistribTimeStampDistrib.Date RC StdOut
Clint NameName VIOErr InErr VFC Client Name VIO ClintID FC NameLast Update
- - + + - + - - - - - + + + + + diff --git a/crossover/Detail.php b/crossover/Detail.php index 5be30f1..225867e 100644 --- a/crossover/Detail.php +++ b/crossover/Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -84,7 +84,7 @@ echo "
"; // Active Directory - echo "

Active Directory

" ; + echo "

$w_ad

" ; echo "
"; if(isset($row['AD'])){ if($row['AD']=="Y"){ @@ -96,17 +96,17 @@ echo "
"; } if(isset($row['ADlu'])){ - echo "
Last Logon
"; + echo "
$w_adlu
"; $date1=date_create($row['ADlu']); $diff=date_diff($date1,date_create(date("Y-m-d"))); if($diff->format("%R%a") > 60){ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; }else{ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; } }else{ if(!(isset($row['AD']) && $row['AD'] !=="Y")){ - echo "
Last Logon
"; + echo "
$w_adlu
"; echo "
"; } } @@ -143,15 +143,15 @@ $date1=date_create($row['GLPIlu']); $diff=date_diff($date1,date_create(date("Y-m-d"))); if(isset($row['GLPIlu']) && $row['GLPIlu'] !== ''){ - echo "
Last Inventory
"; + echo "
$w_filu
"; if($diff->format("%R%a") > 7){ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; }else{ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; } }else{ if(!(isset($row['FI']) && $row['FI'] !=="Y")){ - echo "
Last Inventory
"; + echo "
$w_filu
"; echo "
"; } } @@ -171,17 +171,17 @@ echo "
"; } if(isset($row['SCCMlu'])){ - echo "
Last Heartbeat
"; + echo "
$w_sccmlu
"; $date1=date_create($row['SCCMlu']); $diff=date_diff($date1,date_create(date("Y-m-d"))); if($diff->format("%R%a") > 7){ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; }else{ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; } }else{ if(!(isset($row['SCCM']) && $row['SCCM'] !=="Y")){ - echo "
Last Heartbeat
"; + echo "
$w_sccmlu
"; echo "
"; } } @@ -204,7 +204,7 @@ echo "

"; // NBU - echo "

NetBackup

" ; + echo "

$w_backup

" ; echo "
"; if(isset($row['NBU'])){ if($row['NBU']=="Y"){ @@ -216,13 +216,13 @@ echo "
"; } if(isset($row['NBUlu'])){ - echo "
Last Backup
"; + echo "
$w_backuplu
"; $date1=date_create($row['NBUlu']); $diff=date_diff($date1,date_create(date("Y-m-d"))); if($diff->format("%R%a") > 30){ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; }else{ - echo "
format("%R%a"))." days)'>
"; + echo "
format("%R%a"))." $w_days)'>
"; } }else{ if(!(isset($row['NBU']) && $row['NBU'] !=="Y")){ @@ -283,7 +283,7 @@ ?> '>
-
+
diff --git a/crossover/Detail2.php b/crossover/Detail2.php index 3be63dc..800b024 100644 --- a/crossover/Detail2.php +++ b/crossover/Detail2.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/crossover/GlobalCrossover.php b/crossover/GlobalCrossover.php index 076cfad..a1255af 100644 --- a/crossover/GlobalCrossover.php +++ b/crossover/GlobalCrossover.php @@ -7,7 +7,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -39,34 +39,32 @@
-

Global Crossover (Updated every 15mn)

+

AccountDisplayname UidUidNumberUid # GecosUnix Home DirectoryLogin ShellGID NumberEnabledLast LogonGID #
- - - - - - + + + + + - + - + - - + + - + @@ -83,7 +81,7 @@ // Handle filters securely using prepared statements if (isset($_GET['filter'])) { $filter = $_GET['filter']; - $filterTitle = "Filter : " . htmlspecialchars($filter) . " non compliant"; + $filterTitle = "$w_filter : " . htmlspecialchars($filter) . " $w_nonCompliant"; switch ($filter) { case "AD": @@ -227,7 +225,7 @@ echo $serverCell; echo $osCell; echo ""; - echo ""; + // Use helper function for status columns echo renderStatusCellWithDate($row['AD'], $row['ADlu'], 45); @@ -297,7 +295,7 @@ - - - - + + + + diff --git a/dashboard/EPO-Detail.php b/dashboard/EPO-Detail.php index 50cffb8..a7b94e5 100644 --- a/dashboard/EPO-Detail.php +++ b/dashboard/EPO-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/dashboard/GLPI-Detail.php b/dashboard/GLPI-Detail.php index 64cc66f..23137ac 100644 --- a/dashboard/GLPI-Detail.php +++ b/dashboard/GLPI-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/dashboard/NBU-Detail.php b/dashboard/NBU-Detail.php index 04e8611..4883948 100644 --- a/dashboard/NBU-Detail.php +++ b/dashboard/NBU-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/dashboard/Nessus-Detail.php b/dashboard/Nessus-Detail.php index 50cffb8..a7b94e5 100644 --- a/dashboard/Nessus-Detail.php +++ b/dashboard/Nessus-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/dashboard/S1-Detail.php b/dashboard/S1-Detail.php index b6da99e..33ce22e 100644 --- a/dashboard/S1-Detail.php +++ b/dashboard/S1-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/dashboard/SCCM-Detail.php b/dashboard/SCCM-Detail.php index c6d0248..3204523 100644 --- a/dashboard/SCCM-Detail.php +++ b/dashboard/SCCM-Detail.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..e9c2a8f Binary files /dev/null and b/favicon.ico differ diff --git a/include/all.php b/include/all.php index b190e23..f570b28 100644 --- a/include/all.php +++ b/include/all.php @@ -1,6 +1,18 @@ = 15) OU (Mois = 1 ET Jour <= 5) + // La condition : (Mois = 12 ET Jour >= 15) OU (Mois = 1 ET Jour ≤ 5) const isSeason = (month === 12 && day >= 15) || (month === 1 && day <= 5); const canvas = document.getElementById('snow-canvas'); @@ -556,3 +568,5 @@ + + diff --git a/include/en.php b/include/en.php new file mode 100644 index 0000000..e0aad01 --- /dev/null +++ b/include/en.php @@ -0,0 +1,144 @@ +Consolid. Multiple"; + + $nav_3 = "Hyper-V"; + $nav_3_1 = "Grappes de Serveurs"; + $nav_3_2 = "Sauvegardes MVs"; + $nav_3_3 = "Chasse Mem MVs"; + $nav_3_4 = "Chasse Mem Hôtes"; + + $nav_4 = "Dossiers Partagés"; + $nav_4_1 = "Projets & Equipes"; + $nav_4_2 = "Dossiers Personnels"; + + $nav_5_1 = "Inventaire"; + $nav_5_2 = "Comptes SVA/SCU"; + $nav_5_3 = "Journaux d'autorépar."; + $nav_5_4 = "Résultat des Scripts"; + + $nav_6 = "Cumulatifs"; + $nav_6_1 = "Calendrier annuel"; + + $nav_7 = "Disques Réseau"; + $nav_7_1 = "Tableau de Bord"; + $nav_7_2 = "Commutateurs FC"; + + $nav_8 = "Postes de travail"; + + $nav_9 = "Grappes de Serveurs"; + $nav_9_1 ="Ressources"; + + $nav_10 = "Démarrage Sécurisé"; + $nav_10_1 = "Serveurs"; + $nav_10_2 = "Postes de Travail"; + + $nav_links = "Liens"; + $nav_search = "Recherche Serveur..."; + + // titles + $ti_1 = "Revue des Groupes"; + $ti_2 = "Membres des Groupes"; + $ti_3 = "Consolidation Multisources"; + $ti_4 = "Grappes de Serveurs Hyper-V"; + $ti_5 = "Chasse à la mémoire - Hôtes Hyper-V"; + $ti_6 = "Chasse à la mémoire - Tout sauf les Hyper-V"; + $ti_7 = "Dossiers Projets et Equipes"; + $ti_8 = "Dossiers Utilisateurs"; + $ti_9 = "Inventaire AIX / Linux"; + $ti_10 = "Détails des comptes SVA & SCU"; + $ti_11 = "Journaux de remédiation automatique"; + $ti_12 = "Suivi d'exécution des Scripts"; + $ti_13 = "Surveillance VIO"; + $ti_14 = "Calendrier Annuel des Cumulatifs"; + $ti_15 = "Tableau de Bord SVC"; + $ti_16 = "Consolidation Multisources des Postes de Travail"; + $ti_17 = "Carte des signes de présence pour les Serveurs qui ne sont pas en maintenance"; + $ti_18 = "Ressources des Grappes de Serveurs"; + + // words + $w_server = "Serveur"; + $w_name = "Nom"; + $w_groupMembership = "Membres du groupe"; + $w_groupSearch = "Trouver un groupe dans le Service d'Annuaire"; + $w_startToType = "Commencez à taper ..."; + $w_seeMembers = "Voir les membres"; + $w_os = "Système d'Exploitation"; + $w_crit = "Criticité"; + $w_ad = "Service d'annuaire"; + $w_adlu = "Dernière connexion à l'Annuaire"; + $w_filu = "Dernier inventaire FI"; + $w_sccmlu = "Dernier inventaire SCCM"; + $w_backup = "Sauvegarde"; + $w_backuplu = "Dernière Sauvegarde"; + $w_s1lu = "Dernier inventaire S1"; + $w_allDevice = "Tous les appareils"; + $w_supportedOS = "Systèmes supportés"; + $w_nonCompliant ="Non-conforme"; + $w_filter = "Filtre"; + $w_submit = "Soumettre"; + $w_days = "jours"; + $w_devices = "Appareils"; + $w_inactives = "Inactifs"; + $w_enabled = "Actif"; + $w_lastLogon = "Dernière connexion"; + $w_VMleft = "MVs restantes"; + $w_VMs = "MVs"; + $w_nodes = "Nœuds"; + $w_freeMem = "Mém. libre"; + $w_freeCSV = "CSV libre"; + $w_unclustered = "Pas en ressource"; + $w_wrongOwner = "Mauvais Nœud"; + $w_worstScenario = "Mémoire disponible en cas de pire basculement"; + $w_lastResult = "Dernier Résultat"; + $w_lastGoodBackup = "Dernière Sauvegarde Réussie"; + $w_size = "Taille"; + $w_host = "Hôte"; + $w_policy = "Politique"; + $w_vmBackup = "Sauvegarde des MVs"; + $w_success = "Succès"; + $w_issues = "Problème"; + $w_outdated = "En retard"; + $w_excluded = "Exclusion"; + $w_vmAssignedGB = "GB Assignés aux MVs"; + $w_vmMaxUsedGB = "GB Max utilisés par MVs"; + $w_potentialSavingsGB = "Gain de GB potentiel"; + $w_assignedGB = "GB assignés"; + $w_minUsedGB = "Utilisation Min GB"; + $w_maxUsedGB = "Utilisation Max GB"; + $w_avgUsedGB = "Utilisation Moyenne GB"; + $w_hardware = "Matériel"; + $w_entries = "Entrées"; + $w_folder = "Dossier"; + $w_users = "Utilisateurs"; + $w_inAD = "Dans l'annuaire"; + $w_accountEnabled = "Compte Actif"; + $w_heartbeat = "Signe de Présence"; + $w_lastReboot = "Dernier Redémarrage"; + $w_account = "Compte"; + $w_homeDirectory = "Dossier Personnel"; + $w_loginShell = "Interpéteur de connexion"; + $w_command = "Commande"; + $w_other = "Autre"; + $w_all = "Tous"; + $w_location = "Emplacement"; + $w_physicalCapacity = "Capacité Physique"; + $w_volumeCapacity = "Capacité du Volume"; + $w_capacityGain = "Gain de Capacité"; + $w_thin = "Provisionnement dynamique"; + $w_unassignedLUNs = "LUNs non assignées"; + $w_hostsWoLUNs = "Hôtes sans LUNs"; + $w_resource = "Ressource"; + $w_owner = "Propriétaire"; + $w_state = "Etat"; + $w_memory = "Mémoire"; + $w_lastUpdate = "Dernière Mise à Jour"; + $w_nextRollup = "Prochain Cumulatif"; + $w_storageTotalGB = "Stockage Total GB"; + $w_storageUsedGB = "Stockage Utilisé GB"; \ No newline at end of file diff --git a/index.php b/index.php index 3d209c2..537312e 100644 --- a/index.php +++ b/index.php @@ -6,7 +6,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -35,7 +35,7 @@ @@ -108,7 +108,7 @@ $rs=odbc_exec($conn,$sql); $nbsccm = odbc_result($rs,"nbsccm"); ?> -

Agents

+

Agents

@@ -122,7 +122,7 @@ $result = $conn->query("SELECT count(*) as nbnessus FROM GlobalCrossover where epo like '%.%'"); $nbnessus = mysqli_fetch_array($result)['nbnessus']; ?> -

Agents

+

Agents

@@ -135,7 +135,7 @@ $result = $conn->query("SELECT count(*) as nbS1 FROM GlobalCrossover where S1 like '%.%'"); $nbS1 = mysqli_fetch_array($result)['nbS1']; ?> -

Agents

+

Agents

@@ -150,7 +150,7 @@ $nbnbu = mysqli_fetch_array($result)['nbnbu']; mysqli_close($conn); ?> -

Clients

+

Clients

@@ -161,7 +161,7 @@
-

OS Windows INFRA

+

Windows INFRA

@@ -169,7 +169,7 @@
-

OS Windows APPLI

+

Windows APPLI

@@ -177,7 +177,7 @@
-

OS Linux/AIX

+

Linux/AIX

@@ -185,7 +185,7 @@
-

Device Type

+

Type

@@ -240,7 +240,7 @@ }); let dataType = document.getElementById("dataType").innerHTML.split(","); - let labelsType = ['Physical', 'Virtual']; + let labelsType = ['Phys.', 'Virt.']; new Chart("ChartType", { type: 'doughnut', data: { diff --git a/navbar.html b/navbar.html index f99832a..01b2c4e 100644 --- a/navbar.html +++ b/navbar.html @@ -3,38 +3,70 @@
- - INFRA REPORTS IT - + INFRA REPORTS IT + + - - - - - - - - - - - - - - - - - - - 'True' or acl not like 'ARMONY%' or o365 <> 'N') - order by [server],folder"); - ?> - - -
-
- -
- -
- -
- -

Home Directories with issues ( entries)
Updated every day at 07:00:00

- - -
- - - -
-
NameOperating SystemCriticityDepartementADAD Last Logon GLPILast FI - Inventory SCCM
SCCM Last Heartbeat NESSUSBackupLast Backup SCOM Zabbix SentinelOneS1 Last Update
" . htmlspecialchars($row['crit'] ?? '') . "" . htmlspecialchars($row['dpt'] ?? '') . "
NameOSEnabledLast Logon OU
- - - - - - - - - - - - - - - ?";}else{$acl="";} - if($answer['enabled'] != 'True'){$enabled="";}else{$enabled="";} - if($answer['cn'] == ''){$inAD="";}else{$inAD="";} - if($answer['o365'] != 'N'){$o365="";}else{$o365="";} - - echo ""; - echo ""; - echo $acl; - echo $inAD; - echo $enabled; - echo $o365; - echo ""; - echo ""; - echo ""; - echo ""; - } - ?> - -
ServerFolderACLin ADAccount Enabledo365QuotaSizeLast Logon
".$answer['acl']."NYNY".$answer['o365']."N".$answer['server']."".$answer['folder']."".$answer['quota']."".$answer['size']."".$answer['lastlogon']."
-
-
-
- -
-
-
- - - - - - - \ No newline at end of file diff --git a/reports/heartbeat.php b/reports/heartbeat.php index 2b685b6..ac18299 100644 --- a/reports/heartbeat.php +++ b/reports/heartbeat.php @@ -85,7 +85,7 @@
-

HeartBeat Map for servers NOT in maintenance

+

@@ -95,7 +95,7 @@ --> ".$wcount." issue(s)";}else{$color = "green";$msg = "OK";} ?>
@@ -106,7 +106,7 @@ --> ".$lcount." issue(s)";}else{$color = "green";$msg = "OK";} ?>
@@ -117,7 +117,7 @@ --> ".$acount." issue(s)";}else{$color = "green";$msg = "OK";} ?>
@@ -128,7 +128,7 @@ --> ".$ocount." issue(s)";}else{$color = "green";$msg = "OK";} ?>
diff --git a/reports/sva-scu.php b/reports/sva-scu.php deleted file mode 100644 index b5cd151..0000000 --- a/reports/sva-scu.php +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - - - Web Infra Reports IT - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- -
- -
- -

SVA & SCU Accounts Attributes

Updated every hour
- - -
- - - -
- - - - - - - - - - - - - - - - - - ';}else{echo '';} - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - if($row['lastlogon'] == ""){ - echo ''; - }else{ - echo ''; - } - echo '' ; - } - ?> - -
AccountDisplaynameUidUidNumberGecosUnix Home DirectoryLogin ShellGID NumberEnabledLast Logon
'.$row['SVA'].''.$row['displayname'].''.$row['uid'].''.$row['uidnumber'].''.$row['gecos'].''.$row['unixHD'].''.$row['loginshell'].''.$row['gidnumber'].''.$row['enabled'].'NEVER'.date_format(date_create($row['lastlogon']),"Y-m-d H:i:s").'
-
-
-
- -
-
-
- - - - - \ No newline at end of file diff --git a/workstation/GlobalCrossover.php b/workstation/GlobalCrossover.php index 9d9c748..86a35f9 100644 --- a/workstation/GlobalCrossover.php +++ b/workstation/GlobalCrossover.php @@ -7,7 +7,7 @@ - Web Infra Reports + Web Infra Reports IT @@ -39,7 +39,7 @@
-

Workstations Crossover

+

@@ -54,17 +54,16 @@ data-height="620" data-show-export="true" data-sortable="true"> - Name - Operating System - AD - AD Last Logon + + + + GLPI - Last FI - Inventory + SCCM
- SCCM Last Heartbeat + SentinelOne
- SentinelOne Last Heartbeat +