Files
Enclume/catalog/application/app-postgresql.yml
T
hcornet b063d59525
build / Garde-fou (pull_request) Failing after 7s
build / Images Harbor (catalog-sync, Dockerfile.catalog-sync) (pull_request) Skipped
build / Images Harbor (web, Dockerfile) (pull_request) Skipped
build / Garde-fou (push) Failing after 8s
build / Images Harbor (catalog-sync, Dockerfile.catalog-sync) (push) Skipped
build / Images Harbor (web, Dockerfile) (push) Skipped
Partage par lien, comptes Authentik, soumission et moderation de packs, prerequis des sondes ; corrige le lien casse vers le script de l'editeur
2026-09-10 16:28:26 +02:00

68 lines
4.3 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"}
prerequis:
paquets:
debian: [libdbd-pg-perl]
rhel: [perl-DBD-Pg]
notes: |
Compte de supervision avec le role pg_monitor :
CREATE ROLE centreon LOGIN PASSWORD '...';
GRANT pg_monitor TO centreon;
verifications:
- "/usr/lib/centreon/plugins/centreon_postgres.pl --plugin=database::postgres::plugin --list-mode"
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"}