Jannos-443
Using VMWare PowerCLI this Script checks VMware VM Status for example VMware Tools, Heartbeat, CDDrive Connected and Overall State
-
Make sure the VMware PowerCLI Module exists on the Probe under the Powershell Module Path
C:\Program Files\WindowsPowerShell\Modules\VMware.VimAutomation.Core
-
Place
PRTG-VMware-Snapshot-Status.ps1
underC:\Program Files (x86)\PRTG Network Monitor\Custom Sensors\EXEXML
-
Create new Sensor
Settings Value EXE/Script Advanced PRTG-VMware-Status.ps1 Parameters -ViServer 'yourVCenter' -User 'yourUser' -Password 'yourPassword' Scanning Interval 10 minutes -
Set the "$IgnorePattern" parameter to exclude VMs
example:
-IgnorePattern '^(Test-VM-123)$'
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