bin/cloud66_agent in cloud66_agent-1.0.12 vs bin/cloud66_agent in cloud66_agent-1.1.0.beta1
- old
+ new
@@ -72,9 +72,12 @@
opts.on('--ip-address IP_ADDRESS', 'IP address to act on') { |v| @ip_address = v }
opts.on('--attack ATTACK', 'Attack type') { |v| @attack = v }
opts.on('--port PORT', 'Attack port') { |v| @port = v }
end.order!
Cloud66Agent.fail2ban(@is_banned, @ip_address, @attack, @port)
+elsif command == 'vitals'
+ # disable vital signs
+ exit 0
else
begin
Cloud66Agent.send command
rescue
$logger.error "Invalid command: #{command}"