Git Product home page Git Product logo

dynect-utils's Introduction

dynect-utils

This is a set of utilities that use the DynECT REST API to help monitor and manage the service.

Nagios plugin: check_dynect_gslb_region

Checks the health-check status of the addresses in a GSLB region's pool.

Usage:

Options:
  --customer, -c <s>:   Dynect customer name
      --user, -u <s>:   Dynect user name
      --pass, -p <s>:   Dynect password
      --zone, -z <s>:   Zone name
    --record, -r <s>:   GSLB record name
    --region, -R <s>:   GSLB region (default: global)
          --help, -h:   Show this message

Example output:

$ check_dynect_gslb_region -c Customer -u user -p pass123 -z example.org -r foo.example.org
OK: all GSLB addresses are healthy

$ check_dynect_gslb_region -c Customer -u user -p pass123 -z example.org -r bar.example.org
CRITICAL: GSLB addresses unhealthy: 1.2.3.4=down

Utility: dynect_gslb_manage

Drains/undrains a specific address in a GSLB region's pool.

Usage:

Usage: dynect_gslb_manage [options] command [command opts]

Possible sub-commands:

  list
    List all GSLB IPs

  drain <address|label>
    Set the serving mode to "no" for a GSLB address, identified by IP
    address or label.

  undrain <address|label>
    Set the serving mode to "obey" for a GSLB address, identified by IP
    address or label.

Main options:

  --customer, -c <s>:   Dynect customer name
      --user, -u <s>:   Dynect user name
      --pass, -p <s>:   Dynect password
      --zone, -z <s>:   Zone name
    --record, -r <s>:   GSLB record name
    --region, -R <s>:   GSLB region (default: global)
          --help, -h:   Show this message

Example output:

$ dynect_gslb_manage -c Customer -u user -p pass123 -z example.org -r foo.example.org list
foo-backend-1 | 1.2.3.4 | status=up | weight=1 | serve_mode=obey
foo-backend-2 | 1.2.3.5 | status=up | weight=1 | serve_mode=obey

$ dynect_gslb_manage -c Customer -u user -p pass123 -z example.org -r foo.example.org drain foo-backend-1
1.2.3.4 serve_mode changed from obey to no

$ dynect_gslb_manage -c Customer -u user -p pass123 -z example.org -r foo.example.org undrain foo-backend-1
1.2.3.4 serve_mode changed from no to obey

dynect-utils's People

Contributors

fetep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gene1wood

dynect-utils's Issues

Regions with spaces error out

Whenever a region is used that has a space in is (ie, "EU East"), it is not escaped properly in the URL construction (Dyn API states to use %20).

I tried: wrapping the region with double quotes, single quotes, double quoting the region and using %20, single quoting and %20 for space, et al.

The app keeps replacing that with a literal space, and using the space to construct the URI.

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.