lib/cloudstack-nagios/commands/snmpd_config.rb in cloudstack-nagios-0.3.3 vs lib/cloudstack-nagios/commands/snmpd_config.rb in cloudstack-nagios-0.4.0
- old
+ new
@@ -53,10 +53,10 @@
execute 'apt-get', 'update'
execute 'apt-get', '-y', 'install', 'snmpd'
upload! File.join(File.dirname(__FILE__), '..', 'files', 'snmpd.conf'), '/etc/snmp/snmpd.conf'
execute 'service', 'snmpd', 'restart'
execute 'iptables', '-A INPUT -p tcp -m tcp --dport 161 -j ACCEPT'
- rescue StandardError => e
+ rescue StandardError => e
puts 'configuration failed!'
puts e.message
puts e.backtrace
end
end