From b41fbe5c4cc0162570bea405ace76ab0afe45665 Mon Sep 17 00:00:00 2001 From: jeremyj <305674+jeremyj@users.noreply.github.com> Date: Mon, 18 May 2026 11:42:52 +0200 Subject: [PATCH] hot_standby_delay: rename receive-delay perfdata label to receive_delay Nagios perfdata label names should not contain hyphens; while Nagios itself is permissive, strict consumers (e.g. Checkmk) reject the label and raise an UNKNOWN/crash. The sibling labels (replay_delay, time_delay) already use underscores; this aligns receive-delay with them. Updated the English and Spanish translation entries that emit the perfdata label literally. The hash key 'hs-receive-delay' is left unchanged. --- check_postgres.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_postgres.pl b/check_postgres.pl index 928f39a..d9a744b 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -151,7 +151,7 @@ package check_postgres; 'hs-future-replica' => q{Slave reporting master server clock is ahead, check time sync}, 'hs-no-role' => q{Not a master/slave couple}, 'hs-no-location' => q{Could not get current xlog location on $1}, - 'hs-receive-delay' => q{receive-delay}, + 'hs-receive-delay' => q{receive_delay}, 'hs-replay-delay' => q{replay_delay}, 'hs-time-delay' => q{time_delay}, 'hs-time-version' => q{Database must be version 9.1 or higher to check slave lag by time}, @@ -422,7 +422,7 @@ package check_postgres; 'hs-future-replica' => q{El esclavo reporta que el reloj del maestro está adelantado, comprobar sincronización de tiempo}, 'hs-no-role' => q{No es un par maestro/esclavo}, 'hs-no-location' => q{No pude obtener ubicación actual de xlog en $1}, -'hs-receive-delay' => q{receive-delay}, +'hs-receive-delay' => q{receive_delay}, 'hs-replay-delay' => q{replay_delay}, 'hs-time-delay' => q{time_delay}, 'hs-time-version' => q{La base de datos debes ser versión 9.1 or superior para comprobar el tiempo de retraso del esclavo},