Monitor AWS EC2 Instances
A tutorial on how to configure Nagios Core or Nagios XI to monitor AWS EC2 Cloud Instances. By using the Check_AWS_CloudWatch_metrics Plugin which is freely available on Nagios Exchange (exhange.nagios.org). This plugin is a ruby script that pulls metrics information from Amazon Web Service EC2 by using Amazon CloudWatch API. Download Nagios Core: http://nag.is/coresys Download Nagios XI: http://nag.is/xisys Download Nagios Plugins: http://nag.is/plugsys Website: https://www.nagios.com NAGIOS PLUGIN - AWS CLOUD: https://exchange.nagios.org/directory/Plugins/Operating-Systems/*-Virtual-Environments/Others/Check_AWS_CloudWatch_metrics/details Thank you for watching!! Please subscribe to get updates on new videos :) Twitter: sysadmgirl Ruby Commands: gem install aws gem install fog gem install CloudyScripts command.cfg Entry: define command{ command_name check_cloudwatch_status command_line RUBYOPT=rubygems /usr/local/bin/ruby /usr/local/nagios/libexec/check_cloudwatch_status.rb -a $HOSTADDRESS$ -i $ARG1$ -f $ARG2$ -C $ARG3$ --warning $ARG4$ --critical $ARG5$ } Sample awshost.cfg: ############################################################################### ############################################################################### # # HOST DEFINITION # ############################################################################### ############################################################################### # Define a host for the local machine define host{ use linux-server ; Name of host template to use host_name ec2-52-8-99-147.us-west-1.compute.amazonaws.com address ec2-52-8-99-147.us-west-1.compute.amazonaws.com } ############################################################################### ############################################################################### # # SERVICE DEFINITIONS # ############################################################################### ############################################################################### # Define a service AWS Cloud Instance define service{ use generic-service ; Name of service template to use host_name ec2-52-8-99-147.us-west-1.compute.amazonaws.com service_description CPU Usage check_command check_cloudwatch_status!i-ca0a287f!/root/Downloads/ec2_credentials_1.cfg!CPUUtilization!50!80 max_check_attempts 3 }
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.