zmstats :: zmstat-ldap can't exec zmlocalconfig

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
drb
Posts: 15
Joined: Fri Sep 12, 2014 11:17 pm

zmstats :: zmstat-ldap can't exec zmlocalconfig

Postby drb » Sat Mar 01, 2014 2:42 pm

Running Zimbra 8.0.5_GA_5839 (build 20130910124038) on a single Ubuntu amd64 box.
I have had intermittent problems with zmstats stopping for no clear reason.

I noticed an entry in /opt/zimbra/zmstats/zmstats.out beginning

---

Can't exec "zmlocalconfig": No such file or directory at /opt/zimbra/libexec/zmstat-ldap line 94.

Use of uninitialized value $pass in scalar chomp at /opt/zimbra/libexec/zmstat-ldap line 95.

Can't exec "zmlocalconfig": No such file or directory at /opt/zimbra/libexec/zmstat-ldap line 100.

Use of uninitialized value $userdn in scalar chomp at /opt/zimbra/libexec/zmstat-ldap line 101.

---

with subsequent messages apparently showing the consequences of failure to set $userdn and $pass
The code in question is:

---

sub getZimbraLdapPassword() {

my $pass = `zmlocalconfig -m nokey -s zimbra_ldap_password`;

chomp $pass;

return $pass;

}
sub getZimbraUserDN() {

my $userdn = `zmlocalconfig -m nokey -s zimbra_ldap_userdn`;

chomp $userdn;

return $userdn;

}

---
I guess that at time of execution $PATH does not include /opt/zimbra/bin/ so I prepended that to zmlocalconfig

in those lines and the error message has gone away.
Do others see the same issue?
Cheers -- Ross


Return to “Administrators”

Who is online

Users browsing this forum: No registered users and 12 guests