File tree 1 file changed +6
-3
lines changed
plugins/plugins-available/node-control/lib/Thruk/NodeControl
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1538,6 +1538,9 @@ sub _convert_ansible_script_result {
1538
1538
sub _die_connection_error {
1539
1539
my ($peer , $http_err , $ssh_err ) = @_ ;
1540
1540
1541
+ _debug(" http(s) connection failed\n " .$http_err ) if $http_err ;
1542
+ _debug(" ssh connection failed\n " .$ssh_err ) if $ssh_err ;
1543
+
1541
1544
if (($http_err //' ' ) =~ m / ^OMD:/ mx ) {
1542
1545
die ($http_err ." \n ssh failed: " .$ssh_err ) if $ssh_err ;
1543
1546
die ($http_err );
@@ -1555,9 +1558,9 @@ sub _die_connection_error {
1555
1558
die ($http_err );
1556
1559
}
1557
1560
1558
- die (" http(s) and ssh connection failed\n http(s):\n " .$http_err ." \n\n ssh:\n " .$ssh_err ) if ($http_err && $ssh_err );
1559
- die (" http(s) connection failed\n " .$http_err ) if $http_err ;
1560
- die (" ssh connection failed\n " .$ssh_err ) if $ssh_err ;
1561
+ die (" http(s) and ssh connection failed\n http(s):\n " ._strip_line( $http_err ) ." \n\n ssh:\n " ._strip_line( $ssh_err ) ) if ($http_err && $ssh_err );
1562
+ die (" http(s) connection failed\n " ._strip_line( $http_err ) ) if $http_err ;
1563
+ die (" ssh connection failed\n " ._strip_line( $ssh_err )) if $ssh_err ;
1561
1564
die (" no http(s) control connection available.\n " );
1562
1565
}
1563
1566
You can’t perform that action at this time.
0 commit comments