check_by_ssh

When i run something like: "check_by_ssh -H target_host \ -i /etc/nagios/.ssh/id_dsa \ -C “/path_to_command/check_swap -p some_parameters”, the check_swap is installed in the Nagios server or in the remote host? or in both?

nothing is installed running check_by_ssh, the files have to be already there and available for the “user” you will be connecting to.