Remote checks with by_ssh. Can't use satellite

I feel like there has to be a better way. I have a remote vm I need to run checks from. I can’t run a satellite instance here, but I can run whatever scripts. I do have access to the monitoring-plugin ones. I’m defining all of my remote by_ssh checks in the host object. Ideally I think I’d like to have the services referenced by the “-H ip.address” show as services under that host and not the server running the by_ssh checks.

Any ideas on how to clean this up?

object Host "" {                                                                                                                                                                                                                                   
  import "generic-host"                                                                                                                                                                                                                                         
  address = ""                                                                                                                                                                                                                                     
  display_name = "Hosted VM"                                                                                                                                                                                                                          
  check_command = "hostalive"                                                                                                                                                                                                                                   
  vars.os = "Linux"                                                                                                                                                                                                                                             
  vars.by_ssh_checks["100 TCP/53"] = "/usr/local/libexec/check_tcp -H -p 53"                                                                                                                                                                    
  vars.by_ssh_checks["100 TCP/80"] = "/usr/local/libexec/check_tcp -H -p 80"
  vars.by_ssh_checks["100 TCP/443"] = "/usr/local/libexec/check_tcp -H -p 443"                                                                                                                                                                    
  vars.by_ssh_checks["100 TCP/8080"] = "/usr/local/libexec/check_tcp -H -p 8080"
  vars.by_ssh_checks["200 TCP/53"] = "/usr/local/libexec/check_tcp -H -p 53"                                                                                                                                                                    
  vars.by_ssh_checks["200 TCP/80"] = "/usr/local/libexec/check_tcp -H -p 80"
  vars.by_ssh_checks["200 TCP/443"] = "/usr/local/libexec/check_tcp -H -p 443"                                                                                                                                                                    
  vars.by_ssh_checks["200 TCP/8080"] = "/usr/local/libexec/check_tcp -H -p 8080"
  vars.by_ssh_checks["Uptime"] = "uptime"                                                                                                                                                                                                                       

apply Service for (check => by_ssh_check in host.vars.by_ssh_checks) {
    import "generic-service"
    // make this a variable maybe
    host_name = ""
    check_command = "by_ssh"
    display_name = check
    vars.by_ssh_command = by_ssh_check
    vars.by_ssh_logname = "icinga"

I’m not sure if I understand your question correctly.

object Host "" {

apply Service for ...
   vars.by_ssh_address = ""

Because I didn’t ask it clearly!

For whatever reason I didn’t think to do it that way. Thanks.