Skip to content

[Issue] - Health Checker wrong finding: dynamic memory detected  #2575

Description

@thomass4t

Provide Version Number
26.08.11.1651

Describe the issue
The script generates a wrong alert about dynamic memory:
Dynamic Memory Detected: True 0GB is the allowed dynamic memory of the server. Not supported to have dynamic memory configured.

Expected behavior
The alert should not be triggered if danymic memory is not activated

Script Output
Dynamic Memory Detected: True 0GB is the allowed dynamic memory of the server. Not supported to have dynamic memory configured.

Additional context
This block seems to handle the perf counter wrong:

if ($null -eq $counter) {
                $params.Details = "Unknown - Required Counter Not Loaded. Missing Counter: $($counterName)"
                $params.DisplayWriteType = "Yellow"
            } elseif (($counter.CookedValue / 1024) -ne $totalPhysicalMemory -and
                ($counter.CookedValue / 1024) -ne $totalPhysicalMemoryNotRounded) { ...

Exchange is running on Hyper-V, Win 2019 Host with disabled dynamic memory.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions