From 59f9789f7584a2c31ea0d4a2294e5b998342a354 Mon Sep 17 00:00:00 2001 From: Hachino Date: Sun, 3 May 2026 18:28:06 +0200 Subject: [PATCH] Ajout de l'auth imprimante et retrait du monitoring UPS --- host_vars/fyre.adm.crans.org.yml | 40 ++++++++++--------- .../templates/prometheus/snmp.yml.j2 | 7 ++++ 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/host_vars/fyre.adm.crans.org.yml b/host_vars/fyre.adm.crans.org.yml index 6f6db9a0..ca88384a 100644 --- a/host_vars/fyre.adm.crans.org.yml +++ b/host_vars/fyre.adm.crans.org.yml @@ -226,6 +226,8 @@ loc_prometheus: params: module: - printer_mib + auth: + - auth_printer relabel_configs: - source_labels: [__address__] target_label: __param_target @@ -261,22 +263,22 @@ loc_prometheus: retention_time: "180d" retention_size: "200GB" - ups_snmp: - config: - - job_name: ups_snmp - file_sd_configs: - - files: - - '/etc/prometheus/targets/ups_snmp.json' - metrics_path: '/snmp' - params: - module: - - apc - relabel_configs: - - source_labels: - - __address__ - target_label: __param_target - - source_labels: - - __param_target - target_label: instance - - replacement: 127.0.0.1:9116 - target_label: __address__ + #ups_snmp: + # config: + # - job_name: ups_snmp + # file_sd_configs: + # - files: + # - '/etc/prometheus/targets/ups_snmp.json' + # metrics_path: '/snmp' + # params: + # module: + # - apc + # relabel_configs: + # - source_labels: + # - __address__ + # target_label: __param_target + # - source_labels: + # - __param_target + # target_label: instance + # - replacement: 127.0.0.1:9116 + # target_label: __address__ diff --git a/roles/prometheus-snmp-exporter/templates/prometheus/snmp.yml.j2 b/roles/prometheus-snmp-exporter/templates/prometheus/snmp.yml.j2 index 58f845e6..feefbe46 100644 --- a/roles/prometheus-snmp-exporter/templates/prometheus/snmp.yml.j2 +++ b/roles/prometheus-snmp-exporter/templates/prometheus/snmp.yml.j2 @@ -22,6 +22,13 @@ auths: auth_protocol: SHA priv_protocol: AES priv_password: {{ snmp_exporter.ilo_priv_password }} + auth_printer: + auth_printer: + community: public + security_level: noAuthNoPriv + auth_protocol: MD5 + priv_protocol: DES + version: 2 eatonups: