Back to Nagios

Nagios

aws cloudwatch plugin

Author

Anjani Phuyal

Date

May 25, 2014

Category

Nagios

Read Time

2 min read

  • sudo apt-get install ruby
  • sudo apt-get install rubygems
  • sudo gem install gem install CloudyScripts
  • mkdir /etc/cloutomate
  • cp /root/.ssh/id_rsa /etc/cloutomate/cloutomate.pem
  • RUBYOPT=rubygems ruby encrypt_credentials.rb -A accesskey -S accesskey -f ec2_credentials.cfg

for ec2

ruby check_cloudwatch.rb -a ec2-54-246-198-110.eu-west-1.compute.amazonaws.com -i i-747fad39 -f ec2_credentials.cfg -C CPUUtilization
ruby check_cloudwatch.rb -a rdsurl -i dbidentifier -f ec2_credentials.cfg -D CPUUtilization
#Nagios#AWS#CloudWatch#Ruby