Git Product home page Git Product logo

leo's Introduction

leo

Automatic setup and configuration systems for nad

Description

leo will automatically create checks, graphs, and a worksheet for a host running nad. After running a simple command line script, you will be able to log into your Circonus account and view graphs for CPU, Disk, Network, and Memory utilization, as well as a worksheet for your host.

leo will prompt you for information such as IP or hostname, Circonus auth token, Broker id, and the location of a config file that will then be run through nad and used to create a check, a worksheet, and a series of graphs.

Once run, any changes made will be visible on the UI.

More info on nad can be found here: https://github.com/circonus-labs/nad/blob/master/README.md

Installation

You can access leo through git using git clone or wget or you can install leo as an npm

System Requirements

You will need a basic development environment (compiler, GNU make, etc.) in order to build the default plugins.

Node.js v0.10 or later is required.

nad must be installed for any checks, graphs, or worksheets to be made.

Directions for nad installation can be found here: https://d.circonus.com/questions/22/how-to-useextend-node-agent.html

RHEL/CentOS

wget

# yum upgrade

# yum install nodejs

# wget https://github.com/circonus-labs/leo/archive/master.zip

# unzip master.zip

# cd leo-master

# npm install

git clone

# yum upgrade

# yum install nodejs

# git clone https://github.com/circonus-labs/leo.git

# cd leo

# npm install

npm

# npm install circonus-leo

Ubuntu

wget

#apt-get update

#apt-get install nodejs-legacy

#wget https://github.com/circonus-labs/leo/archive/master.zip

#unzip master.zip

#cd leo-master

#npm install 

git clone

# apt-get update

# apt-get install nodejs-legacy

# git clone https://github.com/circonus-labs/leo.git

# cd leo

# npm install 

npm

# npm install circonus-leo

Operations

The config file is located in the components directory under file circonus-setup. Default settings are located in the components directory in files nad.js and postgres.js.

Once leo has been installed, simply run it, answer the questions, and let nad do the rest.

Running

CentOS & Ubuntu

If you used git clone:

# leo/bin/circonus-setup

If you used wget:

# leo-master/bin/circonus-setup

If you used npm:

# node_modules/circonus-leo/bin/circonus-setup

Optional Arguments

leo allows nad to automatically configure itself with Circonus via a few command line options.

-h —help - Will display this help menu.

-t —target - (Required) This should be either the IP or hostname at which the Circonus broker can talk to this host.

-k —authtoken - (Required) The Circonus API auth token to use when talking with the API. This "activates" the configuration mode.

-b —brokerid - (Required) The ID from Circonus for the broker on which you wish to configure the check.

-c —configfile - (Required) If you use the --alldefault argument, -cconfigfile is the location of the config file your present configurations will be saved to. If you do not use the --alldefault argument, -configfile is the path to the config file which defines the metrics and graphs to create in Circonus. See the config/illumos.json for an example.

—all default - The option to skip prompts for metrics/graphs and use all default settings.

If you create another config file and want it to appear as a configuration option when running leo, it should be placed in the components directory.

If you choose to save the details of a customized configuration to a specific file, that file will appear in the leo/leo-master directory.

Default Options

You will have 2 default options for configuring your check, graphs and worksheets:

  1. CPU, disk, memory, and network metrics via Node.js Agent
  2. PostgreSQL database metrics

For option 1 the only information you need to provide is the previously stated parameters which include: auth token, target, broker id, and config file

However, for option 2 in addition to the previously stated information, you will need to provide the hostname that Circonus will use to connect to your database, the username of the Postgres account that Circonus will use to connect to your database, the password for the username entered, and the name of any database that this user can connect to. Along with this, you will need to install the pg module using the command #npm install pg. This should be done before you run leo or else the software will fail to create you check, graphs, and worksheet.

leo's People

Contributors

bixu avatar chrisrusso3 avatar cparlette avatar esproul avatar melcabel avatar vynjo avatar

Watchers

 avatar  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.