2023-09-21 18:19:47 +02:00
|
|
|
# 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).
|
|
|
|
|
2023-09-21 19:58:26 +02:00
|
|
|
# check_ping
|
|
|
|
|
|
|
|
Ensures basic configuration has succeeded. This command can be defined as
|
|
|
|
dependency of all other ones.
|
|
|
|
|
|
|
|
```
|
|
|
|
./check_ping --help
|
|
|
|
```
|
|
|
|
|
|
|
|
Example of configuration:
|
|
|
|
|
|
|
|
```
|
|
|
|
command[check_ping]=/opt/check_ovhcloud/check_ping
|
|
|
|
```
|
|
|
|
|
2023-09-21 18:19:47 +02:00
|
|
|
# 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
|
2023-10-29 09:32:33 +01:00
|
|
|
pre-commit run --all-files
|
2023-09-21 18:19:47 +02:00
|
|
|
```
|