Icinga / icinga-powershell-hyperv

A collection of Hyper-V plugins for the Icinga Powershell Framework
GNU General Public License v2.0
6 stars 0 forks source link

Invoke-IcingaCheckHyperVVMHealth - Exception calling "AddCheck" with "1" argument(s): "Exception calling "InitCheck" with "1" argument(s): "Exception calling "SilentCompile" with "0" argument(s): "Exception calling "AddOkOutput" with "0" argument(s): "Exception calling "TranslateValue" with "1" argument(s): "Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Decimal".""""" #24

Closed K0nne closed 3 years ago

K0nne commented 3 years ago

I updated the package to the latest version. The Check was ok until I switched to the latest framework 1.3.0 release. After this I got the following plugin output (formated for better readability):

[91mMethodInvocationException: Exception calling "AddCheck" with "1" argument(s): 
"Exception calling "InitCheck" with "1" argument(s): 
"Exception calling "SilentCompile" with "0" argument(s): 
"Exception calling "AddOkOutput" with "0" argument(s): 
"Exception calling "TranslateValue" with "1" argument(s): 
"Cannot convert the "System.Object[]" value of type "System.Object[]" to type "System.Decimal".
"""""

[OK] Check package "Virtual Computers" (Match All)
...
K0nne commented 3 years ago

Thanks for the Fix! The error is gone.