Monitorizar OVHcloud com o DumbMonit
State and running tasks of the VPS and dedicated servers of an OVHcloud account, read through the OVHcloud API.
DocumentaçãoSite oficial: OVHcloud
As descrições estão em inglês, como no produto. Os rótulos da página seguem o seu idioma.
O que o DumbMonit vigia
The VPS and dedicated servers of an OVHcloud account through the OVHcloud API: servers that are stopped or in error, and the tasks (reboot, reinstall, maintenance) running on them. DumbMonit reads GET /1.0/vps and GET /1.0/dedicated/server on eu.api.ovh.com, then the state and the pending tasks of each server, once a minute. The credential is an OVHcloud API token limited to two read rights. Every request is signed (X-Ovh-Signature, a SHA-1 of the secret, the consumer key, the method, the URL and the server time read from /auth/time), so the clock of the DumbMonit host does not matter.
Utilização típica. State and running tasks of the VPS and dedicated servers
Exemplos
- OVHcloud VPS and dedicated servers
Como se liga
O que precisa
- OVHcloud API keysThe application key, and the application secret and consumer key joined by a colon.
Portas de rede a abrir
443/TCPOVHcloud API (HTTPS, eu.api.ovh.com)
Passos de configuração: Create a read-only API token for DumbMonit
Open the OVHcloud token page of your region and sign in with your OVHcloud account. The link pre-selects the two read rights.
https://eu.api.ovh.com/createToken/?GET=/vps*&GET=/dedicated/server*Name the script DumbMonit, set Validity to Unlimited, and keep only the two GET rights listed below, then click Create keys.
Copy the Application Key, the Application Secret and the Consumer Key: they are shown once.
In DumbMonit, enter eu.api.ovh.com as address (ca.api.ovh.com for OVHcloud Canada) and paste the Application Key as Application key.
In the second field, type the Application Secret, a colon, then the Consumer Key.
application_secret:consumer_key
Atenção. The OVHcloud API publishes no calendar of planned maintenance: DumbMonit sees an intervention only once it has started, as a running task. A VPS you stopped yourself counts as down. A dedicated server is reported in error only if OVHcloud monitoring is enabled on it. Either right may be omitted to watch only the other family.