I have two windows servers 1 2012R2 powershell version 5.0 2. windows 2016 powershell version 5.1
I use Nagios to monitor my systems. I am on a VMware system both are VM’s
Both run a backup application Veeam B&R
I found a powershell script that checks the backup, replication and copy jobs.
on the Windows 2012R2 server it runs with no issues.
on the windows 2016 server it takes 1 minute 49 seconds to run and it outputs the correct information.
The problem is it runs too long on the Windows 2016 server and Nagios times out and the check fails.
Could it be a problem with 5.1 of powershell?