Giter Site home page Giter Site logo

cesarcapillas / ambari-shell-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zylklab/ambari-shell-tools

0.0 2.0 0.0 318 KB

Curl examples for using Ambari REST API from command line

License: GNU General Public License v3.0

Shell 100.00%

ambari-shell-tools's Introduction

ambari-shell-tools

Some basic curl examples for using Ambari REST API from command line shell scripts

Cluster services

This section is composed of two scripts for starting/stopping/checking services from command line via REST API in an Ambari cluster.

  • ambari-all.sh [start|stop] all cluster services in an ordered and defined sequence
  • ambari-service.sh [start|stop|check] a given cluster service

Nagios/Icinga plugin

This is a collection of basic shell scripts ready for monitoring your Big Data cluster via Ambari REST API in a Nagios / Icinga server.

  • check_ambari_alerts_summary.sh (checks alerts summary)
  • check_ambari_hosts_alerts_summary.sh (checks host alerts summary)
  • check_ambari_health_report.sh (checks health report)
  • check_ambari_service.sh (checks a given service state and alerts)
  • check_ambari_total_hosts.sh (checks the total number of hosts in the cluster)
  • check_ambari_version.sh (checks the cluster version)
  • ambari-commands.cfg (Ambari comands for nagios)
  • services_icinga.cfg (Nagios service definitions)

Dependencies

The main goal of these collection of shell scripts is the simplicity in comparison with other advanced modules in terms of dependencies. Just need few packages such as:

  • curl
  • jshon (jshon parses, reads and creates JSON and it is designed to be as usable as possible from within the shell and replaces fragile adhoc parsers made from grep/sed/awk as well as heavyweight one-line parsers made from perl/python)
  • Other shell tools such as grep/sed/awk

In Ubuntu 16.04 LTS:

$ apt-get install curl jshon

Links:

Tested with

  • Ambari 2.2.2
  • HDP 2.4

External links

ambari-shell-tools's People

Contributors

cesarcapillas avatar

Watchers

James Cloos 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.