How Do You Install and Configure the NRPE Agent on Ubuntu?

Problem scenario
You want the Nagios Core server to monitor another AWS server.  How do you install and configure the NRPE agent on Ubuntu?

Solution
Follow these step-by-step directions if you are using AWS.  If the servers are not in AWS, the directions below may still work. These directions assume that the Nagios core server is running on Ubuntu in AWS. (If you want to know how to set up Nagios core on Ubuntu,

How Do You Install Nagios on Ubuntu Step-By-Step?

Problem scenario
You have a small AWS server (e.g., t2.nano with 0.5 GB of RAM) running Ubuntu.  How do you install Nagios on it?

Solution
1. As root or a sudoer user, run a script with the following content (sudo bash /tmp/install.sh):

# Written by continualintegration.com
​#This script installs Nagios.  There is some interactive portion at the beginning.  
# But it should be easy to install Nagios using the following.

How Do You Install PostgreSQL on an EC2 SUSE (AWS Instance of Linux SUSE)?

Problem scenario
You want to install Postgres on Linux SUSE.   This AWS server is in a security group with the ability to get to the Internet.  How do you install PostgreSQL on it?

Solution
1.  Log into the SUSE server with the default ec2-user.  The default user for AWS SUSE instances used to be root.  But now it is ec2-user.

2.  Run these five commands (taken from 

How Do You Deploy a Stack (a Collection of Infrastructure Resources) with AWS CloudFormation Using the Console?

Problem scenario
You want to use CloudFormation in AWS.  You want to create a server or multiple servers with CloudFormation. How do you use CloudFormation with no CLI to create a stack (a collection of infrastructure or application resources) in AWS?

Solution
Here is a simple example to answer the question.

1.  Go to https://console.aws.amazon.com/cloudformation/home
2.  Click “Create new stack” button
3.  

How Do You Set up (Install and Configure) AWS CloudWatch?

Update 11/22/17

Problem scenario
You want to use CloudWatch.  What steps do you need to take initially to have it work on a Linux server?

Solution
Prerequisites
Prerequisite #1  The server must be an EC-2 instance (not a non-AWS server) with AWS CLI installed (but not necessarily configured).  For directions on installing AWS CLI, see this link.

How Do You Install Docker on an AWS Instance of RHEL?

UPDATE: If you are using RHEL 8.x use these directions instead of the ones below.

Problem scenario
You want to install Docker on an AWS instance of RedHat Linux (version 7.x or below).  You do not want to use CentOS packages.  What do you do?

Solution
For RedHat Linux running via AWS, you have to run one command to enable numerous yum repositories. 

How Do You Configure Updates for a RedHat Server Running on AWS?

Question:  How Do You Get Yum Repositories to Work with a AWS Instance of RHEL?
Problem scenario:   You are using RedHat Linux via AWS and very few yum commands work.  The repositories are very limited, and few packages are available.  When trying to use yum to install packages, you see output like this:

“Loaded plugins: amazon-id, rhui-lb

No package lynx available.

How Do You Install Kubernetes on an AWS Instance of RedHat Linux?

Problem scenario:  You are using RHEL 7.x via AWS.  You want to install Kubernetes.  What do you do?

Solution
1.  Log into the Linux server as ec2-user.  Then run this command:
sudo yum-config-manager –enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional

2.  Create this file: /etc/yum.repos.d/kubernetes.repo
3.  Have this be the content of the file (with the first line being “[kubernetes]” and the last line ending in “…

How Do You Deploy a Kubernetes Cluster in AWS Using an Ubuntu Linux Instance?

Updated on 10/13/20.

Problem scenario
You want to deploy a Kubernetes cluster in AWS.  You have an Ubuntu server (e.g., with a nano flavor in AWS or a minimally powered Azure instance).  It has no software packages installed on it (e.g., it does not have Docker or Kubernetes).  How do you deploy Kubernetes in AWS?

Solution
Warning:  This will automatically create EC2 servers in you AWS account behind the scenes. 

Infrastructure as Code and Architecting Server Environments for Automatic Replication

Infrastructure as Code is often associated with “Continuous Configuration Automation.”  We think the term should be “Continual Configuration Automation.”

There are four popular tools to rapidly provision cloud infrastructure using templates: Azure Resource Manager, CloudFormation, Terraform, and Heat.  Three of these tools each support two different types of template files for provisioning servers.