Hi,

I am getting the following error for SSH Remote Ping.

No valid result from SSH Shell

The target machine is a Debian Squeeze.

Thanks Ronal


Article Comments

Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.

Is the "bash" set as default console for the user, you are using for the monitoring(linux credentials in the device settings)?

What is the output if you run the following command on the target system? (Please use the same user, you want to use for your monitoring)

ping -c 2 -s 32 127.0.0.1 | tail -2| awk ''{if ( NR==1) {regex = "[0-9]+%"; if (match($0, regex)) {printf "%s;",substr($0,RSTART,RLENGTH)} }; if (NR==2) {n=split($4,valarray,"/"); for(i=1;i<=n;i++) {printf "%s;", valarray[i]} } }'';printf "\n"


Apr, 2013 - Permalink

Hi,

The default console is BASH for the user. I am using key based authentication so I have added the username and private key to the device settings.

The above command returns syntax error message but the following command returns a result : 0%;0.034;0.038;0.042;0.004;

ping -c 2 -s 32 127.0.0.1 | tail -2| awk '{if ( NR==1) {regex = "[0-9]+%"; if (match($0, regex)) {printf "%s;",substr($0,RSTART,RLENGTH)} }; if (NR==2) {n=split($4,valarray,"/"); for(i=1;i<=n;i++) {printf "%s;", valarray[i]} } }';printf "\n";

I have executed the command on same user account used for monitoring.

Regards Ronal


Apr, 2013 - Permalink

There is a setting called "Result Handling" in the sensor settings. Please set this to "Write result to disk (Filename: "Result of Sensor [ID].txt")" and send the file, that will be created to "support@paessler.com". Please refer to this article, so our support team will know what to do with the file.


Apr, 2013 - Permalink