Configuring script transactions
Longitude can run scripts using the WinScript and UnixScript transactions, but the two scripting transactions work differently due to the difference in how Longitude connects to Windows and Unix computers.
Windows collections are made via WMI - for Windows Scripts, the script needs to be on the agent running the collection for the script. To refer to a remote computer, configure your script either with the name of the computer within the script, or as an argument for the script.
Unix collections are made via SSH (or, on some systems, rexec). When a UnixScript transaction is run, the Longitude agent collecting the data makes an SSH connection to the monitored computer, looks for the script on the computer, and executes the script on the computer. As a result, the script you're running needs to be on the computer you're connecting to, and you need to specify a full path to the script.