Icinga / icinga-powershell-mssql

GNU General Public License v2.0
12 stars 3 forks source link

Strange output, only a digit/number #39

Open ekpack opened 2 years ago

ekpack commented 2 years ago

Hello,

if I use the Invoke-IcingaCheckMSSQLHealth (and the others like Invoke-IcingaCheckMSSQLResource...) I only get a number as output:

example: Invoke-IcingaCheckMSSQLBackupStatus -SqlUsername 'DDD' -SqlPassword (ConvertTo-IcingaSecureString 'XXX') -SqlHost localhost;

output: 0

With the Invoke-IcingaCheckMSSQLHealth command I get the output: 2

Even if I use the command with "-verbosity 2" I don't get more information.

LordHepipud commented 2 years ago

Is this issue still present with the current version of Framework and plugins? It seems like the entire plugin output is ignored and only the exit code is returned.