Hi, everyone
I have recently started testing for Ganglia. It's very
powerful package and very interested for me.
As a result of test on solaris, 2.5.7 has some
problem.
But arccording to Matin's mail, the new Solaris code
in 2.5.8 will no longer use any "kvm_" routines and
some problem will be solved.
So, I attache some patch code before 2.5.8 version
will be released.
Attached patch code is solved some problem.
1. Gmond is not execute daemon.
2. valueless error msg.
cpustuff: permission denied.
cpustuff: enough space
...
3. Do not reporting about cpu utilization.
Thanks
Sanghyun
___________________________________
최대 100MB, 더 이상 용량 고민없는 - 야후! 메일 (http://mail.yahoo.co.kr)
최신곡, 추천곡, 가요, OST, 팝송, 뮤직비디오 - 야후! 비트박스 (http://kr.music.yahoo.com)
최신 휴대폰 정보, 벨소리, 캐릭터, 문자메세지 - 야후! 모바일 (http://kr.mobile.yahoo.com)diff -urN lib/daemon_init.c ../ganglia-bugfix/lib/daemon_init.c
--- lib/daemon_init.c 2002-06-20 12:23:24.000000000 +0900
+++ ../ganglia-bugfix/lib/daemon_init.c 2004-11-26 11:41:36.150000000 +0900
@@ -39,8 +39,9 @@
umask (0); /* clear our file mode creation mask */
- for (i = 0; i < MAXFD; i++)
- close (i);
+ fclose(stdin);
+ fclose(stdout);
+ fclose(stderr);
openlog (pname, LOG_PID, facility);
}
diff -urN gmond/machines/solaris.c ../ganglia-bugfix/gmond/machines/solaris.c
--- gmond/machines/solaris.c 2002-09-13 10:06:55.000000000 +0900
+++ ../ganglia-bugfix/gmond/machines/solaris.c 2004-11-26 11:42:28.540006000
+0900
@@ -424,7 +424,7 @@
* buffers[0..2] holds past, present and diff info for the "other" CPU stats.
*/
struct cpu cpu_snap;
- static struct cpu_info buffers[2];
+ static struct cpu_info buffers[3];
static struct timeval lasttime = {0, 0};
struct timeval thistime;
double timediff;
@@ -507,7 +507,7 @@
for (i = 0; i < ncpus; i++)
{
/* it places the kval in the basket ... errr cpu struct */
- if (getkval (cpu_offset[i], &cpu_snap, sizeof (struct cpu), "cpu") )
+ if (!getkval (cpu_offset[i], &cpu_snap, sizeof (struct cpu), "cpu") )
{
perror("cpustuff");
}