Git Product home page Git Product logo

nagios-virtualmin-server-quota-check's Introduction

Nagios plugin for Virtualmin virtual server quota check

This is a bash shell script that collects quota usage information for a specified virtual server and alerts is the specified usage threshold is exceeded.

###Usage

Virtualmin virtual server quota check plugin for Nagios
Version v1.0.0
Arguments :  -d <domain> -t <type:server|user> -c <critical_threshold> -w <warning_threshold>
        -d      domain: domain of the virtual serer to query (required)
        -t      type (server|user): type of quoat to check, defaults to "server"
        -c      critical threshold level: quota usage threshold for critical alert, in percent defaults to 95
        -w      warning threshold level: quota usage threshold for warning alert, in percent defaults to 90

The Virtualmin CLI tool is required to run as root thus this plugin relies on sudo. To allow the nagios user (or the one that runs your Nagios or nagios-nrpe-server process) you need to whitelist /usr/sbin/virtualmin the following command for each checked domain:

nagios  ALL=(root) NOPASSWD: /usr/sbin/virtualmin list-domains --multiline --domain example.com

It is possible to whitelist the command with any argument so that you do not have to add a new record for every domain but you have to be extremly cautious with this.

License

GNU GENERAL PUBLIC LICENSE. See LICENSE

nagios-virtualmin-server-quota-check's People

Contributors

djozsef avatar

Watchers

Alex Bako 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.