Forum Discussion

dan_wiczek's avatar
5 years ago

Hi All, Has anyone scripted a solution to perform a synthetic RDP login?

Like, connect to a remote desktop and ensure we reach a desktop, login, logout?  Track - monitor how long the connect, login, logout takes? 

Thanks!

  • That would be awesome! I was hoping to find something, preferably in Java so it might be able to work via Groovy, but have not succeeded so far.  I did find a commercial tool (https://www.rdpsoft.com/products/remote-desktop-canary/). If that would work, you could tied it into LM via the SQL results database they mention (perhaps other options). 

    I am still looking around to see if something more affordable (preferably free) exists. 

    With Nagios, we used check_x224 to verify the RDP server was providing correct protocol responses, not just listening on port 3389.  Something like that might be at least a step toward what you are trying to accomplish.

  • 5 minutes ago, mnagel said:

    That would be awesome! I was hoping to find something, preferably in Java so it might be able to work via Groovy, but have not succeeded so far.  I did find a commercial tool (https://www.rdpsoft.com/products/remote-desktop-canary/). If that would work, you could tied it into LM via the SQL results database they mention (perhaps other options). 

    I am still looking around to see if something more affordable (preferably free) exists. 

    With Nagios, we used check_x224 to verify the RDP server was providing correct protocol responses, not just listening on port 3389.  Something like that might be at least a step toward what you are trying to accomplish.

    I just found this, but no idea if it works yet (and article is a bit dated):

    https://singularity.be/2008/03/28/using-rdesktop-to-script-windows/

  • Looks like rdesktop has been supplanted by other tools like vinagre and freerdp.  I found this example for testing RDP authentication with the latter, though I also found that the version shipped with CentOS 7 has a bug that requires an X display even when not required (as in this case).

    xfreerdp --ignore-certificate --authonly -u user -p pass host

    Long discussion on the bug and possible solutions: https://serverfault.com/questions/878870/how-to-test-rdp-credentials-in-command-line-without-x-server-installed