summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-07-12 01:58:56 +0000
committerGreg Sabino Mullane2009-07-12 01:58:56 +0000
commitc647d3205012681167d60400d084e2c7946f4aa2 (patch)
tree5c7b1d0cf9a753110074eaf160ffe8e3bd55a5f6 /check_postgres.pl
parentc4b0db5670e4dcfa6011c0828fdfb4870c1b0d5e (diff)
Make checkpoint regex a real 'po' so we can programtically update it.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl73
1 files changed, 59 insertions, 14 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 5e443cdd2..559c9607d 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -104,7 +104,7 @@ our %msg = (
'checkpoint-nosys' => q{Could not call pg_controldata: $1},
'checkpoint-ok' => q{Last checkpoint was 1 second ago},
'checkpoint-ok2' => q{Last checkpoint was $1 seconds ago},
- 'checkpoint-regex' => q{Time of latest checkpoint:},
+ 'checkpoint-po' => q{Time of latest checkpoint:},
'checksum-badline' => q{Invalid pg_setting line: $1},
'checksum-msg' => q{checksum: $1},
'checksum-nomd' => q{Must install the Perl module Digest::MD5 to use the checksum action},
@@ -297,7 +297,7 @@ our %msg = (
'checkpoint-nosys' => q{N'a pas pu appeler pg_controldata : $1},
'checkpoint-ok' => q{Le dernier CHECKPOINT est survenu il y a une seconde},
'checkpoint-ok2' => q{Le dernier CHECKPOINT est survenu il y a $1 secondes},
- 'checkpoint-regex' => q{Heure du dernier point de contrôle :},
+ 'checkpoint-po' => q{Heure du dernier point de contr�le :},
'checksum-badline' => q{Ligne pg_setting invalide : $1},
'checksum-msg' => q{somme de contrôle : $1},
'checksum-nomd' => q{Vous devez installer le module Perl Digest::MD5 pour utiliser l'action checksum},
@@ -469,26 +469,71 @@ our %msg = (
'version-fail' => q{version $1, alors que la version attendue est $2},
'version-ok' => q{version $1},
},
-'de' => {
- 'checkpoint-regex' => q{Zeit des letzten Checkpoints:},
+'af' => {
},
-'ru' => {
- 'checkpoint-regex' => q{Время последней checkpoint:},
+'cs' => {
+ 'checkpoint-po' => q{�as posledn�ho kontroln�ho bodu:},
},
-'pl' => {
- 'checkpoint-regex' => q{Czas najnowszego punktu kontrolnego:},
+'de' => {
+ 'checkpoint-po' => q{Zeit des letzten Checkpoints:},
},
'es' => {
- 'checkpoint-regex' => q{Instante de último checkpoint:},
+ 'checkpoint-po' => q{Instante de �ltimo checkpoint:},
+},
+'fa' => {
+ 'checkpoint-po' => q{زمان آخرین وارسی:},
+},
+'hr' => {
+},
+'hu' => {
+ 'checkpoint-po' => q{A legut�bbi ellen�rz�pont ideje:},
},
'it' => {
- 'checkpoint-regex' => q{Orario ultimo checkpoint:},
+ 'checkpoint-po' => q{Orario ultimo checkpoint:},
},
-'tr' => {
- 'checkpoint-regex' => q{En son checkpoint'in zamanı:},
+'ja' => {
+ 'checkpoint-po' => q{最終チェックポイント時刻:},
+},
+'ko' => {
+ 'checkpoint-po' => q{������ üũ����Ʈ �ð�:},
+},
+'nb' => {
+ 'checkpoint-po' => q{Tidspunkt for nyeste kontrollpunkt:},
+},
+'nl' => {
+},
+'pl' => {
+ 'checkpoint-po' => q{Czas najnowszego punktu kontrolnego:},
+},
+'pt_BR' => {
+ 'checkpoint-po' => q{Hora do último ponto de controle:},
+},
+'ro' => {
+ 'checkpoint-po' => q{Timpul ultimului punct de control:},
+},
+'ru' => {
+ 'checkpoint-po' => q{����� ��������� checkpoint:},
+},
+'sk' => {
+ 'checkpoint-po' => q{Čas posledného kontrolného bodu:},
+},
+'sl' => {
+ 'checkpoint-po' => q{�as zadnje kontrolne to�ke ............},
},
'sv' => {
- 'checkpoint-regex' => q{Tidpunkt för senaste kontrollpunkt:},
+ 'checkpoint-po' => q{Tidpunkt f�r senaste kontrollpunkt:},
+},
+'ta' => {
+ 'checkpoint-po' => q{நவீன சோதனை மையத்தின் நேரம்:},
+},
+'tr' => {
+ 'checkpoint-po' => q{En son checkpoint'in zamanı:},
+},
+'zh_CN' => {
+ 'checkpoint-po' => q{���¼����ʱ��:},
+},
+'zh_TW' => {
+ 'checkpoint-po' => q{最新的檢查點時間:},
},
);
## use critic
@@ -5621,7 +5666,7 @@ sub check_checkpoint {
}
## See pgsql/src/bin/pg_controldata/po/*
- my $regex = msg('checkpoint-regex');
+ my $regex = msg('checkpoint-po');
if ($res !~ /$regex\s*(.+)/) { ## no critic (ProhibitUnusedCapture)
## Just in case, check the English one as well
if ($res !~ /Time of latest checkpoint:\s*(.+)/) {