Add check_voip
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
cd55d2f061
commit
c80e22482e
7 changed files with 215 additions and 0 deletions
36
README.md
Normal file
36
README.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
# OVHcloud Nagios collection
|
||||
|
||||
Nagios checks for [OVHcloud](https://www.ovhcloud.com) services.
|
||||
|
||||
# Installation
|
||||
|
||||
Using pip:
|
||||
|
||||
```
|
||||
python3 -m venv venv
|
||||
. ./venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
Create OVHcloud API tokens following [this guide](https://github.com/ovh/python-ovh).
|
||||
|
||||
# check_voip
|
||||
|
||||
For each VoIP lines associated to the account, detect the last registration time:
|
||||
|
||||
```
|
||||
./check_voip --help
|
||||
```
|
||||
|
||||
Example of configuration:
|
||||
|
||||
```
|
||||
command[check_voip]=/opt/check_ovhcloud/check_voip -w 7200 -c 86400
|
||||
```
|
||||
|
||||
# Contributing
|
||||
|
||||
```
|
||||
pip install pre-commit
|
||||
pre-commit run --files check_*
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue