Hi everyone

I'm running gmond v2.5.6 on Solaris8/SPARK and it was
compiled gcc 3.3.2.
When I execute it on daemon mode, it always fail. 
But, on debug mode, normally executes.

I trace the relevant code fragment (gmond/machine.c). 
If gmond is a deamon mode, kvm_read() has failed and
exit(23).
Debug msg is that,
  "gmond: kvm_read for cpu: Transport endpoint is not
connected"

Anyone else have any ideas?


int
getkval (unsigned long offset,
         int *ptr,
         int size,
         char *refstr)
{
  if (kvm_read (kd, offset, (char *) ptr, size) !=
size)
    {
        debug_msg("There was a problem!  I'll try to
reload.");
        kvm_close(kd);
        kd = kvm_open (NULL, NULL, NULL, O_RDONLY,
NULL);

      if (*refstr == '!')
        {
          debug_msg("*refstr == ! : gmond: kvm_read
for %s: %s", 
          refstr, strerror(errno));
          return (1);
        }
      else
        {
          debug_msg ("gmond: kvm_read for %s: %s",
refstr, strerror(errno));
          exit (23);  <-- On daemon mode, has failed
($gmond)
        }
    } <-- On debug mode, normally executes ($gmond
-d1)
}

Thanks,
Sanghyun

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to