From 11a75b7605c215add2a93f91e3b3cc465daab1fe Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Thu, 13 Feb 2014 10:21:43 +0100 Subject: [PATCH] Fix #5196 --- centreon/plugins/wsman.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/centreon/plugins/wsman.pm b/centreon/plugins/wsman.pm index 4117c4c24..37c3e1219 100644 --- a/centreon/plugins/wsman.pm +++ b/centreon/plugins/wsman.pm @@ -273,6 +273,10 @@ sub execute_winshell_commands { } + if ($loop_out == 1) { + $self->internal_exit(msg => 'Command to long to execute...'); + } + $current_stderr =~ s/\r//mg; $current_stdout =~ s/\r//mg;