Coder Social home page Coder Social logo

cht_agent_helpers's Introduction

CloudHealth Linux Agent Installation Helpers


The CloudHealth Linux Agent allows us to collect instance-level metrics.

The configuration details and default settings can be viewed here:

wget https://s3.amazonaws.com/remote-collector/agent/v14/install_cht_perfmon.sh -O install_cht_perfmon.sh;
sudo sh install_cht_perfmon.sh 14 #{unique registration code} aws;

We have created CloudHealth Linux agent installation helpers for the commonly used provisioning automation tools. We have helpers for:


##### Cloud Init - CloudHealth Agent Installation Helper

User Data that you can use with AWS as a bootstrap script. To learn more about cloud-init, please refer to the AWS documentation

Replace unique-registration-code with your unique code. You can get the code from the agent configuration page https://apps.cloudhealthtech.com/agent_settings/edit

#!/bin/bash
# echo Defaults:root \!requiretty >> /etc/sudoers

#Install CHT linux agent
echo Defaults:root \!requiretty >> /etc/sudoers
wget https://s3.amazonaws.com/remote-collector/agent/v14/install_cht_perfmon.sh -O install_cht_perfmon.sh
sudo sh install_cht_perfmon.sh 14 UNIQUE_REGISTRATION_CODE aws

# ADDITIONAL SAMPLE CLOUD-INIT COMMANDS THAT YOU MIGHT HAVE
# yum update -y
# yum install httpd -y
# service httpd start
# yum install php56 php-mysql git wget -y



##### Chef Recipe - CloudHealth Agent Installation Helper

You can install the CloudHealth Agent using the following Chef Recipe. Replace unique-registration-code with your unique code. You can get this code from the agent configuration page https://apps.cloudhealthtech.com/agent_settings/edit

registration_code = "unique-registration-code" 

execute "Install Agent" do
  command "wget https://s3.amazonaws.com/remote-collector/agent/install_cht_perfmon.sh -O install_cht_perfmon.sh; sh install_cht_perfmon.sh 14 #{registration_code} aws; exit 0"
  ignore_failure true
  not_if "test -d /opt/cht_perfmon"
  only_if { node.attribute?(:ec2) }
end

##### Ansible Playbook - CloudHealth Agent Installation Helper - BETA
---
- hosts: webservers

vars:
  cht_unique_registration_code: ???

- name: Ensure the agent is installed
  command:
    wget https://s3.amazonaws.com/remote-collector/agent/v14/install_cht_perfmon.sh -O /tmp/install_cht_perfmon.sh &&
    /tmp/install_cht_perfmon.sh 14 {{ cht_unique_registration_code }} aws
  args:
    creates: /opt/cht_perfmon
  sudo: yes
  

cht_agent_helpers's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.