GithubHelp home page GithubHelp logo

thomaswaldmann / nagios-plugin-check_borg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bebehei/nagios-plugin-check_borg

0.0 2.0 0.0 28 KB

nagios plugin to monitor borg repositories

License: GNU General Public License v3.0

Shell 100.00%

nagios-plugin-check_borg's Introduction

check_borg

Check borg repository for date of latest archive.

Usable with nagios, icinga2 or any other nagios-fork.

Usage

./check_borg [ -C CONF ] [ -R <borg-repo-url> ] [ -c <date> ] [ -w <date> ]

<date> can be any valid format parsable by the date-command. So last day would be a valid date.

-R can be omitted, when BORG_REPO is set in the environment.

CONF is a file, which will get sourced. It can export variables like BORG_PASSPHRASE and BORG_REPO. You can separate with this file your borg specific secrets from the icinga2 configuration.

Non-standard executable paths

  • If your borg executable is not installed in your $PATH or is not called borg, you can define the environment variable BORG to point to the correct command.
  • If the GNU date executable is not installed as date, you can set the environment variable DATE to point to the correct date command.

Passwords

Export BORG_PASSPHRASE.

Requirements

Warnings

  • Be sure about the implications, when monitoring a repository secured with a passphrase.
  • I don't know how to exclude checkpoints in borg list in combination with --format='{time}{NUL}'.

nagios-plugin-check_borg's People

Contributors

bebehei avatar elmarx avatar neingeist 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.