View Single Post
  #3 (permalink)  
Old 09-25-2007, 11:47 PM
ppearl ppearl is offline
Zimbra Employee
 
Posts: 11
Default Two hacks for Admin UI showing stats as an "x" in 4.5.7

Here are two hacks to get the status in the Admin UI to show properly in 4.5.7 if your stats always shows as an "x" even when 'zmcontrol status' show that stats are running properly...

Code:
zimbra$ diff -c ./bin/zmstatctl.ORIG ./bin/zmstatctl
*** ./bin/zmstatctl.ORIG        Wed Sep 26 01:05:41 2007
--- ./bin/zmstatctl     Wed Sep 26 01:06:20 2007
***************
*** 26,31 ****
--- 26,33 ----

  use strict;
  use File::Basename;
+
+ use lib "/opt/zimbra/zimbramon/lib";
  use Zimbra::Mon::Zmstat;

  zmstatInit();
--- and ---

Code:
zimbra$ diff -c ./zimbramon/lib/Zimbra/Mon/Zmstat.pm.ORIG ./zimbramon/lib/Zimbra/Mon/Zmstat.pm
*** ./zimbramon/lib/Zimbra/Mon/Zmstat.pm.ORIG   Sat Sep 15 00:42:14 2007
--- ./zimbramon/lib/Zimbra/Mon/Zmstat.pm        Wed Sep 26 01:36:28 2007
***************
*** 32,38 ****
  sub getLocalConfig(;@) {
      my @vars = @_;
      my $dir = dirname($0);
!     my $cmd = "zmlocalconfig -q -x";
      if (scalar(@vars) > 0) {
          $cmd .= ' ' . join(' ', @vars);
      }
--- 32,38 ----
  sub getLocalConfig(;@) {
      my @vars = @_;
      my $dir = dirname($0);
!     my $cmd = "/opt/zimbra/bin/zmlocalconfig -q -x";
      if (scalar(@vars) > 0) {
          $cmd .= ' ' . join(' ', @vars);
      }
Reply With Quote