steve-

you really need to run a version of ganglia newer than 2.2.3 on ia64.  if
you must run 2.2.3 for some reason then you can update your
machine_type_func() in ./gmond/machine/linux.c to look like this (from our 
CVS)

g_val_t
machine_type_func ( void )
{
   g_val_t val;

#ifdef __i386__
   snprintf(val.str, MAX_G_STRING_SIZE, "x86");
#endif
#ifdef __ia64__
   snprintf(val.str, MAX_G_STRING_SIZE, "ia64");
#endif
#ifdef __sparc__
   snprintf(val.str, MAX_G_STRING_SIZE, "sparc");
#endif
#ifdef __alpha__
   snprintf(val.str, MAX_G_STRING_SIZE, "alpha");
#endif
#ifdef __powerpc__
   snprintf(val.str, MAX_G_STRING_SIZE, "powerpc");
#endif
#ifdef __m68k__
   snprintf(val.str, MAX_G_STRING_SIZE, "m68k");
#endif
#ifdef __mips__
   snprintf(val.str, MAX_G_STRING_SIZE, "mips");
#endif
#ifdef __arm__
   snprintf(val.str, MAX_G_STRING_SIZE, "arm");
#endif
#ifdef __hppa__
   snprintf(val.str, MAX_G_STRING_SIZE, "hppa");
#endif
#ifdef __s390__
   snprintf(val.str, MAX_G_STRING_SIZE, "s390");
#endif

   return val;
}

Preston Smith in our development group has done some great coding and has 
ganglia running on every flavor of Linux out there.

-matt


Today, Steven A. DuChene wrote forth saying...

> OK, I added two lines to the configure.in script as follows:
> 
> case "$host" in
> *linux*)
>    case "$host" in
>       *alpha*)
>         metric_source="linux-alpha.c";;
>       *86*)
>         metric_source="linux.c";;
>       *ia64*)
>         metric_source="linux.c";;
>    esac
> 
> but the machine_type metric prints garbage. Using the ganglia python command
> line tool and class it returns:
> 
> [EMAIL PROTECTED] root]# ganglia
> 
> usage: ganglia < metric > [ metric metric ... ]
> 
> where "metric" is one of:
>     sys_clock cpu_nice proc_run boottime cpu_system mem_shared os_release
>     cpu_aidle load_one swap_total mem_buffers mem_cached proc_total os_name
>     cpu_speed machine_type mem_total load_five load_fifteen cpu_user swap_free
>     cpu_num cpu_idle mem_free
> 
> 
> [EMAIL PROTECTED] root]# ganglia machine_type
> Traceback (most recent call last):
>   File "/usr/sbin/ganglia", line 39, in ?
>     metrics_list = stats_program.run()
>   File "/usr/lib/python2.1/site-packages/gmon/ganglia.py", line 163, in run
>     metrics = self.handler.getStats(self.display_metrics)
>   File "/usr/lib/python2.1/site-packages/gmon/ganglia.py", line 75, in 
> getStats
>     metrics.append(host, host_metrics)
> TypeError: append() takes exactly 1 argument (2 given)
> 
> 


Reply via email to