Hello Community,
we are facing some issues with the " Invoke-IcingaCheckScheduledTask" - Check.
The check is made on a Windows Server2019
Ps-Version: 5.1.17763.2090
Error calling the Method, because [System.Management.Automation.PSCustomObject], got no method with the Name “WarnDateTime”.
In C:\Program
Files\WindowsPowerShell\Modules\icinga-powershell-plugins\plugins\Invoke-IcingaCheckScheduledTask.psm1:148 Zeichen:17
- … $TaskLastRunTime.WarnDateTime($WarningLastRunTime).CritDa …
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (WarnDateTime:String) [], RuntimeException
- FullyQualifiedErrorId : MethodNotFound
Error calling the Method, because [System.Management.Automation.PSCustomObject], got no method with the Name “WarnDateTime”.
In C:\Program
Files\WindowsPowerShell\Modules\icinga-powershell-plugins\plugins\Invoke-IcingaCheckScheduledTask.psm1:149 Zeichen:17
- … $TaskNextRunTime.WarnDateTime($WarningNextRunTime).CritDa …
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (WarnDateTime:String) [], RuntimeException
- FullyQualifiedErrorId : MethodNotFound
The Exit Code of the Script is fine, it returns “0” as expected. Unluckily Icinga counts the error while running the script as unknown.
- Director version (System - About): 1.8.1
- Icinga Web 2 version and modules (System - About): 2.9.5
- Operating System and version: Windows Server 2019 10.0.1