GithubHelp home page GithubHelp logo

zombiz / nagios-plugin-couchbase Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deanproctor/nagios-plugin-couchbase

0.0 2.0 0.0 53 KB

A Nagios plugin for Couchbase

License: Apache License 2.0

Python 100.00%

nagios-plugin-couchbase's Introduction

This repo has moved to https://github.com/couchbase-partners/nagios-plugin-couchbase

Couchbase Nagios Plugin

A plugin to monitor Couchbase REST APIs and forward metrics to Nagios.

It is intended to be a standalone Nagios plugin as well as a reference for how to interact with the Couchbase REST APIs when building plugins for other systems.

Requirements

  • Python requests module
  • PyYAML

For Nagios:

  • send_nsca via the nsca or nsca-ng packages

Configuration

This plugin is configured to submit passive checks to Nagios via NSCA. The set of metrics to monitor and thresholds for each metric are locally configured in the check_couchbase.yaml file.

Minimum configuration

Make sure the following properties match your environment:

  • couchbase_host
  • couchbase_user
  • couchbase_password
  • monitor_host
  • monitor_port
  • nagios_nsca_path

Note that the user executing this script must have read access to /etc/send_nsca.cfg.

Nagios services

You must have services configured in Nagios in order for the passive check results to be accepted. The plugin allows you to customize the service description to match your Nagios configuration.

Service descriptions are built in the following format: {prefix}.{cluster name}.{label}.{metric description}

The configuration file documents how the service description is built and how to customize it.

The --dump-services flag can be used to output the Nagios service descriptions this script will use.

Couchbase metrics

This plugin comes pre-configured with a set of best-practice metrics. It will be necessary to update the metric thresholds to reflect your Couchbase environment.

Usage

usage: check_couchbase.py [options] -c CONFIG_FILE

optional arguments:
  -h, --help            show this help message and exit
  -a, --all-nodes       Return metrics for all cluster nodes
  -c CONFIG_FILE, --config CONFIG_FILE
                        Path to the check_couchbase YAML file
  -d, --dump-services   Print service descriptions and exit
  -n, --no-metrics      Do not send metrics to the monitoring host
  -v, --verbose         Enable debug logging to console
  -C COUCHBASE_HOST, --couchbase-host COUCHBASE_HOST
                        Override the configured Couchbase host
  -U COUCHBASE_USER, --couchbase-user COUCHBASE_USER
                        Override the configured Couchbase admin username
  -P COUCHBASE_PASSWORD, --couchbase-password COUCHBASE_PASSWORD
                        Override the configured Couchbase admin password
  -H MONITOR_HOST, --monitor-host MONITOR_HOST
                        Override the configured monitoring host
  -M MONITOR_TYPE, --monitor-type MONITOR_TYPE
                        Override the configured monitoring system type

This script should be executed via cron or a Nagios NRPE check.

nagios-plugin-couchbase's People

Contributors

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