icinga-powershell-plugins icon indicating copy to clipboard operation
icinga-powershell-plugins copied to clipboard

Invoke-IcingaCheckUNCPath - not reachable pathes

Open Mikesch-mp opened this issue 3 years ago • 2 comments
trafficstars

Hello,

actual the check goes unknown when it cant reach a path with a lot of confusing output. Please add a switch that the check will exit with critical if the path cant be reached.

Regards, Carsten

Mikesch-mp avatar Jul 26 '22 08:07 Mikesch-mp

Hello,

thank you for the issue. That do you mean by confusing output?

[UNKNOWN]: Icinga Invalid Configuration Error was thrown: Invalid Configuration Exception: Plugin argument "-Path" is either empty or does not exist

I'm not sure if Unknown or Critical is the correct term, because you can do it wise versa. I would rather not add countless of arguments to each plugin to adjust the status of the outcome. It just makes those plugins more complex.

What would be wrong with Unknown in this case?

LordHepipud avatar Aug 05 '22 07:08 LordHepipud

Hi,

unknown is ok, but the text is very confusing. should be something like "$uncpath not reachable"

Mikesch-mp avatar Aug 10 '22 07:08 Mikesch-mp