lib/cloudstack-nagios/commands/router.rb in cloudstack-nagios-0.6.0 vs lib/cloudstack-nagios/commands/router.rb in cloudstack-nagios-0.6.1
- old
+ new
@@ -87,9 +87,13 @@
end
no_commands do
def systemvm_host
+ unless options[:host]
+ say "Error: --host/-H option is required for this check.", :red
+ exit 1
+ end
host = SSHKit::Host.new("root@#{options[:host]}")
host.ssh_options = sshoptions(options[:ssh_key])
host.port = options[:port]
host
end