Giter Club home page Giter Club logo

device42-nagios-health-check's Introduction

README

How to install?

Install perl libs

yum install perl-JSON.noarch perl-Nagios-Plugin.noarch

copy file d42.cfg to Nagios configuration path (e.g: /etc/nagios/servers/)

file d42.cfg include common d 42 health command, services and host defined for Nagios configuration

copy file check_d42_health to Nagios library directory (e.g: /usr/lib64/nagios/plugins/)

set permission with command chmod +x check_d42_health

uncomment next line in nagios.cfg file

cfg_dir=/etc/nagios/servers

How to run ?###

perl <check_d42_health path> -H <hostname> -P <port number> -I <metric name> -c <critical threshold> -w <warn threshold> --ssl --cache=<cache expired seconds>

perl check_d42_health -H svnow01.device42.com -P 4242 -I cpu_used_percent -w 10 -c 20 --cache=60

for SSL hosts

perl check_d42_health -H 158.69.157.1 -P 4343 --ssl -I cpu_used_percent -w 10 -c 20 --cache=60

List of available script parameters

  • -H - Hostname
  • -P - Port number
  • -I - Metric name
  • -c - Critical threshold
  • -w - Warning threshold
  • -S - Enable SSL (use HTTPS protocol)
  • -C - Enable cache and set cache expire time duration in seconds. Default 60

List of available metrics

  • cpu_used_percent
  • dbsize
  • disk_used_percent
  • memtotal
  • cached
  • swapfree
  • swaptotal
  • memfree
  • buffers

Messages/Events

  • UNKNOWN - Item is not defined - no item found in server respose
  • UNKNOWN - Can not parse JSON received from server
  • UNKNOWN - No data received from server
  • CRITICAL - script execution time out
  • UNKNOWN - no data for item
  • UNKNOWN - item backup_status is empty, skip processing
  • NORMAL - all job successfully finished
  • CRITICAL - backup job ran with errors

Example of D42 Health Checks imported to Nagios d42_health_checks.PNG

device42-nagios-health-check's People

Contributors

surfvaporizer avatar bitgreg avatar agbrook avatar gregoreo36 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.