Files
Enclume/catalog/application/app-postgresql.yml
T
hcornet de7a691861
Construction et publication / verifier (push) Successful in 41s
Construction et publication / verifier (pull_request) Successful in 11s
Construction et publication / publier (pull_request) Skipped
Construction et publication / publier (push) Failing after 6m3s
Enclume : editeur CLAPI, catalogue de 26 packs, empaquetage Docker
2026-09-10 11:32:03 +02:00

58 lines
4.0 KiB
YAML

id: app-postgresql
name: PostgreSQL
category: application
status: verified
plugin: centreon_postgres.pl
description: Supervision d'une instance PostgreSQL (connexion, sessions, taille des bases, verrous, temps de requete).
host_template:
name: App-DB-PostgreSQL-custom
alias: Applicatif PostgreSQL
parents: [generic-active-host-custom]
macros:
- {name: PGPORT, value: "5432", description: "Port d'ecoute du serveur"}
- {name: PGUSERNAME, value: "centreon", description: "Compte de supervision"}
- {name: PGPASSWORD, value: "", description: "Mot de passe du compte de supervision", is_password: true}
- {name: PGDATABASE, value: "postgres", description: "Base de connexion"}
- {name: PGEXTRAOPTIONS, value: "", description: "Options supplementaires passees au plugin"}
services:
- name: Connection-Time
alias: Connection-Time
description: Temps d'etablissement de la connexion
line: "$CENTREONPLUGINS$/centreon_postgres.pl --plugin=database::postgres::plugin --mode=connection-time --host=$HOSTADDRESS$ --port='$_HOSTPGPORT$' --username='$_HOSTPGUSERNAME$' --password='$_HOSTPGPASSWORD$' --database='$_HOSTPGDATABASE$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTPGEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
macros:
- {name: WARNING, value: "1000", description: "Seuil warning en ms"}
- {name: CRITICAL, value: "5000", description: "Seuil critical en ms"}
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
- name: Backends
alias: Backends
description: Nombre de connexions actives
line: "$CENTREONPLUGINS$/centreon_postgres.pl --plugin=database::postgres::plugin --mode=backends --host=$HOSTADDRESS$ --port='$_HOSTPGPORT$' --username='$_HOSTPGUSERNAME$' --password='$_HOSTPGPASSWORD$' --database='$_HOSTPGDATABASE$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTPGEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
macros:
- {name: WARNING, value: "80", description: "Seuil warning"}
- {name: CRITICAL, value: "90", description: "Seuil critical"}
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
- name: Database-Size
alias: Database-Size
description: Taille des bases de donnees
line: "$CENTREONPLUGINS$/centreon_postgres.pl --plugin=database::postgres::plugin --mode=database-size --host=$HOSTADDRESS$ --port='$_HOSTPGPORT$' --username='$_HOSTPGUSERNAME$' --password='$_HOSTPGPASSWORD$' --database='$_HOSTPGDATABASE$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTPGEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
macros:
- {name: WARNING, value: "", description: "Seuil warning en octets"}
- {name: CRITICAL, value: "", description: "Seuil critical en octets"}
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
- name: Locks
alias: Locks
description: Verrous poses sur l'instance
default: false
line: "$CENTREONPLUGINS$/centreon_postgres.pl --plugin=database::postgres::plugin --mode=locks --host=$HOSTADDRESS$ --port='$_HOSTPGPORT$' --username='$_HOSTPGUSERNAME$' --password='$_HOSTPGPASSWORD$' --database='$_HOSTPGDATABASE$' $_HOSTPGEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
macros:
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
- name: Query-Time
alias: Query-Time
description: Duree de la requete la plus longue
default: false
line: "$CENTREONPLUGINS$/centreon_postgres.pl --plugin=database::postgres::plugin --mode=query-time --host=$HOSTADDRESS$ --port='$_HOSTPGPORT$' --username='$_HOSTPGUSERNAME$' --password='$_HOSTPGPASSWORD$' --database='$_HOSTPGDATABASE$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTPGEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
macros:
- {name: WARNING, value: "60", description: "Seuil warning en secondes"}
- {name: CRITICAL, value: "300", description: "Seuil critical en secondes"}
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}