From 3b824749559a044e9de1e596aaef87de728df847 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 18 Sep 2019 16:19:57 -0700 Subject: [PATCH] fix slave IP display --- httemplate/view/Status.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/httemplate/view/Status.html b/httemplate/view/Status.html index 7fb03eb2f..af58f3509 100644 --- a/httemplate/view/Status.html +++ b/httemplate/view/Status.html @@ -121,7 +121,7 @@ if ( $db eq 'PostgreSQL' ) { && FS::Record->scalar_sql('SHOW archive_mode') eq 'on'; my $slave = - FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]+): / + FS::Record->scalar_sql('SHOW archive_command') =~ / postgres\@([\w\.\-]+):/ ? $1 : ''; $status{'Replication'} = [ @@ -141,11 +141,11 @@ if ( $db eq 'PostgreSQL' ) { # http://www.keithf4.com/monitoring_streaming_slave_lag/ # except pg_stat_replication still doesn't fill in the columns we need as # non-Pg user :/ - push @{ $status{'Replication'} }, - { 'title' => 'Slave', - 'value' => $slave || '(Missing, or unparseable archive_command)', - }, - ; + #push @{ $status{'Replication'} }, + # { 'title' => 'Slave', + # 'value' => $slave || '(Missing, or unparseable archive_command)', + # }, + #; } } -- 2.11.0