Syntax
int remotefileexists ( string hostname, string filename )
Description
The remotefileexists function checks whether a filename exists on the remote system hostname.
Returns true if the file exists; otherwise, it returns false.
The remote host must be configured to run either pmmasterd or pmclientd to respond to this function.
Example
print(remotefileexists(runhost,"/etc/passwd"))