/PRTG-VMware-Status

checks VMware VM Status for example VMware Tools, Heartbeat, CDDrive Connected and Overall State

Primary LanguagePowerShellMIT LicenseMIT

PRTG-VMWare-Status

About

Project Owner:

Jannos-443

Project Details

Using VMWare PowerCLI this Script checks VMware VM Status for example VMware Tools, Heartbeat, CDDrive Connected and Overall State

HOW TO

  1. Make sure the VMware PowerCLI Module exists on the Probe under the Powershell Module Path

    • C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Core
  2. Place PRTG-VMware-Snapshot-Status.ps1 under C:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML

  3. Create new Sensor

    Settings Value
    EXE/Script Advanced PRTG-VMware-Status.ps1
    Parameters -ViServer 'yourVCenter' -User 'yourUser' -Password 'yourPassword'
    Scanning Interval 10 minutes
  4. Set the "$IgnorePattern" parameter to exclude VMs

    example: -IgnorePattern '^(Test-VM-123)$'

Examples

PRTG-VMware-Status

VM exceptions

Exceptions can be made within this script by changing the variable IgnoreScript. This way, the change applies to all PRTG sensors based on this script. If exceptions have to be made on a per sensor level, the script parameter IgnorePattern can be used.

For more information about regular expressions in PowerShell, visit Microsoft Docs.

".+" is one or more charakters ".*" is zero or more charakters