Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invoke-IcingaCheckDiskHealth fails with: Cannot convert value "Fibre Channel" to type "System.Int32". Error: "Input string was not in a correct format." #342

Closed
K0nne opened this issue Apr 28, 2023 · 2 comments · Fixed by #345
Assignees
Labels
bug Something isn't working
Milestone

Comments

@K0nne
Copy link
Contributor

K0nne commented Apr 28, 2023

Hello,

I found lots of IfW Eventlog entries, which indicate the presence of an error on all of our hyperv systems.
Framework and plugins are version 1.10.1.

This is the eventlog entry:

Failed to execute API call

An API call could not be processed due to an internal exception.

Icinga for Windows exception report:

Exception Message:
Cannot convert value "Fibre Channel" to type "System.Int32". Error: "Input string was not in a correct format."

Command Origin:
Internal

Script Line Number:
6389

Exact Position:
At C:\Program Files\WindowsPowerShell\Modules\icinga-powershell-plugins\compiled\icinga-powershell-plugins.ifw_compilation.psm1:6389 char:9
+         $DiskInfo.Add(
+         ~~~~~~~~~~~~~~

StackTrace:
   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
   at lambda_method(Closure , Object[] , StrongBox`1[] , InterpretedFrame )

Call Stack:

Command                        Arguments                                       
-------                        ---------                                       
Get-IcingaExceptionString      {ExceptionObject=Cannot convert value "Fibre ...
Write-IcingaEventMessage       {Namespace=RESTApi, EventId=2051, ExceptionOb...
New-IcingaForWindowsRESTThread {RequireAuth=, ThreadId=2}                      

Object details:

No additional object details provided.

This is the section in question:
image

@K0nne K0nne changed the title Invoke-IcingaCheckDiskHealthfails with: Cannot convert value "Fibre Channel" to type "System.Int32". Error: "Input string was not in a correct format." Invoke-IcingaCheckDiskHealth fails with: Cannot convert value "Fibre Channel" to type "System.Int32". Error: "Input string was not in a correct format." Apr 28, 2023
@K0nne
Copy link
Contributor Author

K0nne commented May 5, 2023

An aditional piece of information:

icinga> (Get-IcingaWindowsInformation MSFT_PhysicalDisk -Namespace 'root\Microsoft\Windows\Storage').BusType
6
6
6
6

@LordHepipud LordHepipud self-assigned this May 5, 2023
@LordHepipud LordHepipud added the bug Something isn't working label May 5, 2023
@LordHepipud LordHepipud added this to the v1.11.0 milestone May 5, 2023
@LordHepipud
Copy link
Collaborator

ref/NC/783131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants