Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Virtualmin virtual server quota check
v1.0.0
2016-03-04
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
GPL
6564
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This is a bash shell script that collects quota usage information for a specified virtual server and alerts if 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
SECURITY
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.
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
SECURITY
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.
Reviews (0)
Be the first to review this listing!