Opsview Knowledge Center

Cloud - AWS - EC2

An overview of the AWS EC2 Opspack for Opsview Monitor

Installation

Ruby and gems should already be available on your system - if not, please install ruby and gems using your standard package manager.

When Ruby and gems are installed, run the following commands as the root user to set up the amazon scripts and credentials:

  1. gem install CloudyScripts
  2. mkdir /etc/cloutomate
  3. ssh-keygen -f /etc/cloutomate/cloutomate.pem
    (make sure to enter a blank password when prompted.)
  4. ruby /usr/local/nagios/libexec/plugins.d/cloud-aws/encrypt_aws_credentials.rb -A (your Amazon access key ID) -S (your Amazon secret key) -f /usr/local/nagios/etc/aws_credentials.cfg
    (Note: Your Amazon access key ID and secret key are managed in the 'Security Credentials' area in your account's dropdown menu.)
  5. chown -R nagios:nagios /etc/cloutomate
  6. chown nagios:nagios /usr/local/nagios/etc/aws_credentials.cfg

Configuration

  1. Create a new host within "Menu => Settings => Host Settings"
  2. Enter the public address in the 'Primary Hostname/IP' field
  3. Add the Host Template, "Cloud - AWS - EC2"
  4. On the 'Variables' tab, add in "AWS_CLOUDWATCH_CREDENTIALS" and set a value equal to a label you'd like to use to identify service checks for your instance. Next, click on the checkbox "Override Amazon Instance ID" and input your AWS instance ID.
  5. Submit Changes
  6. Perform a configuration reload within "Menu => Settings => Reload"

Cloud - AWS - EC2

An overview of the AWS EC2 Opspack for Opsview Monitor