Giter Site home page Giter Site logo

check_git's Introduction

check_git - Check a git repository is available from Nagios

The check_git command is provided here for use as a plugin with Nagios.

Run the command to see usage.

It currently will work with git, http, and ssh URLs (without testing the push) and can test a push with ssh URLs and an identity file.

On a Debian/Ubuntu system you would install check_git in /usr/lib/nagios/plugins. On a RedHat-style system, install in /usr/lib/nagios/plugins or /usr/lib64/nagios/plugins. On a FreeBSD system, install in /usr/local/libexec/nagios.

Configuration:

  1. Copy these files to /usr/lib/nagios/plugins:

    • check_git
    • check_git_exec_ssh.sh
  2. Configure a check command like

    • $USER1$/check_git $ARG1$
    • $USER1$/check_git $ARG1$ --keyfile $ARG2$ --push
  3. (optional) Create a keyfile that can be used as the SSH identity file:

     ssh-keygen -f /var/tmp/check_git_keyfile
     sudo chown nagios /var/tmp/check_git_keyfile
     sudo chmod 400 /var/tmp/check_git_keyfile
    
  4. Make or use an appropriate repository. If it's an ssh repo, you'll have to configure it with the pubkey of the keyfile you made. If you do pushes, your pushes will be recorded in the file check_git_commits.txt.

  5. See check_git.cfg for example definitions of nagios commands and services.

License

check_git is released under the MIT license:

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.