diff options
author | pengbo | 2017-02-26 07:48:03 +0000 |
---|---|---|
committer | pengbo | 2017-02-26 07:48:03 +0000 |
commit | 2b1c01ce2800a7bb74d92ffa86429a63ee889b0d (patch) | |
tree | 556cf5331c65dd858e7a1c85637e45539702299a | |
parent | d1db58f6b08c8d3409d0bcecd1b7234f8a54a9f2 (diff) |
Fix incorrect display of watchdog status when using Pgpool-II 3.6.x.
-rw-r--r-- | command.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/command.php b/command.php index 8f8c9be..dde45fb 100644 --- a/command.php +++ b/command.php @@ -236,7 +236,14 @@ function getWatchdogInfo($i = '') $arr = explode(' ', $result['SUCCESS']); - if (3.5 <= _PGPOOL2_VERSION) { + if (3.6 <= _PGPOOL2_VERSION) { + $rtn['hostname'] = $arr[1]; + $rtn['pgpool_port'] = $arr[2]; + $rtn['wd_port'] = $arr[3]; + $rtn['status'] = $arr[6]; + $rtn['status_str'] = $arr[7]; + + } elseif (3.5 <= _PGPOOL2_VERSION) { // ex.) Linux_dhcp-177-180_9999 133.137.177.180 9999 9000 4 MASTER $rtn['hostname'] = $arr[1]; $rtn['pgpool_port'] = $arr[2]; |