You've already forked nrpe
pbs - aplannisement des variables
This commit is contained in:
@@ -137,13 +137,14 @@ The following checks are deployed to `/usr/lib/nagios/plugins/` (or configured p
|
|||||||
| `nrpe_ntp_host` | `europe.pool.ntp.org` | `check_ntp` | NTP host to check. |
|
| `nrpe_ntp_host` | `europe.pool.ntp.org` | `check_ntp` | NTP host to check. |
|
||||||
| `nrpe_ntp_warning` | `10` | `check_ntp` | Warning threshold for NTP offset. |
|
| `nrpe_ntp_warning` | `10` | `check_ntp` | Warning threshold for NTP offset. |
|
||||||
| `nrpe_ntp_critical` | `15` | `check_ntp` | Critical threshold for NTP offset. |
|
| `nrpe_ntp_critical` | `15` | `check_ntp` | Critical threshold for NTP offset. |
|
||||||
| `nrpe_pbs.host` | `-` | `check_pbs_backup` | Hôte PBS (IP ou FQDN). |
|
| `nrpe_pbs_host` | `-` | `check_pbs_backup` | Hôte PBS (IP ou FQDN). |
|
||||||
| `nrpe_pbs.token` | `-` | `check_pbs_backup` | API token PBS au format `user@realm!tokenid:secret`. |
|
| `nrpe_pbs_token` | `-` | `check_pbs_backup` | API token PBS au format `user@realm!tokenid:secret`. |
|
||||||
| `nrpe_pbs.store` | `-` | `check_pbs_backup` | Nom du datastore PBS. |
|
| `nrpe_pbs_store` | `-` | `check_pbs_backup` | Nom du datastore PBS. |
|
||||||
| `nrpe_pbs.backups` | `-` | `check_pbs_backup` | Liste des backup-id à vérifier. |
|
| `nrpe_pbs_backups` | `-` | `check_pbs_backup` | Liste des backup-id à vérifier. |
|
||||||
| `nrpe_pbs.port` | `8007` | `check_pbs_backup` | Port de l'API PBS (optionnel). |
|
| `nrpe_pbs_type` | `host` | `check_pbs_backup` | Type de backup : `host`, `vm` ou `ct` (optionnel). |
|
||||||
| `nrpe_pbs.namespace` | `-` | `check_pbs_backup` | Namespace PBS (optionnel). |
|
| `nrpe_pbs_port` | `8007` | `check_pbs_backup` | Port de l'API PBS (optionnel). |
|
||||||
| `nrpe_pbs.ssl_insecure` | `false` | `check_pbs_backup` | Ignorer les erreurs de certificat SSL (optionnel). |
|
| `nrpe_pbs_namespace` | `-` | `check_pbs_backup` | Namespace PBS (optionnel). |
|
||||||
|
| `nrpe_pbs_ssl_insecure` | `false` | `check_pbs_backup` | Ignorer les erreurs de certificat SSL (optionnel). |
|
||||||
|
|
||||||
|
|
||||||
## Example Playbooks
|
## Example Playbooks
|
||||||
@@ -182,15 +183,15 @@ The following checks are deployed to `/usr/lib/nagios/plugins/` (or configured p
|
|||||||
roles:
|
roles:
|
||||||
- role: nrpe
|
- role: nrpe
|
||||||
vars:
|
vars:
|
||||||
nrpe_pbs:
|
nrpe_pbs_host: pbs01.example.com
|
||||||
host: pbs.example.com
|
nrpe_pbs_token: "backup@pbs!monitoring:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||||
token: "backup@pbs!monitoring:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
nrpe_pbs_store: main
|
||||||
store: main
|
nrpe_pbs_backups:
|
||||||
backups:
|
- myhost
|
||||||
- myhost
|
- otherhost
|
||||||
- otherhost
|
nrpe_pbs_ssl_insecure: true # optionnel, cert auto-signé
|
||||||
ssl_insecure: true # optionnel, si certificat auto-signé
|
# nrpe_pbs_type: host # optionnel, défaut : host (vm, ct)
|
||||||
namespace: mynamespace # optionnel
|
# nrpe_pbs_namespace: ns # optionnel
|
||||||
```
|
```
|
||||||
|
|
||||||
> L'API token doit avoir le privilege `DatastoreAudit` sur le datastore concerné.
|
> L'API token doit avoir le privilege `DatastoreAudit` sur le datastore concerné.
|
||||||
|
|||||||
Reference in New Issue
Block a user