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