diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2019-09-18 16:19:54 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2019-09-18 16:19:54 -0700 |
| commit | d6197d0cce537b7bbdd0f47db1351031e2c79bfa (patch) | |
| tree | 7bb329b385a9c017b13ae862a0d851f01049bf22 | |
| parent | 2ca291caff85cdd292370a944be1e4bacd4583a7 (diff) | |
fix slave IP display
| -rw-r--r-- | httemplate/view/Status.html | 12 |
1 files 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)', + # }, + #; } } |
