Icinga / icinga-powershell-hyperv

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

Lots of spaces in the plugin output of HyperV checks #28

Closed K0nne closed 3 years ago

K0nne commented 3 years ago

Hello,

while copy&pasting the plugin output for #27 (see HyperV Snapshots & HyperV VM Health) it came to my attention that the plugin output sometimes contains huge amounts of spaces. Is there a way to trim them for the sake of readability?

LordHepipud commented 3 years ago

Thank you for the issue. The bigger problem here is the exception which should never be printed in this way by a plugin and return a catched Framework exception instead. We will have a look on this

LordHepipud commented 3 years ago

This should be resolved by Icinga for Windows v1.5.0 and the new execution of checks:

powershell -C { Use-Icinga -Minimal; Exit-IcingaExecutePlugin <plugin command> <plugin args>

Exception handling is done a lot better and will print proper output including the stack traces.