[collectd] collectd on mac osx
Florian Forster
octo<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>verplant.org
Fri Mar 16 15:40:19 CET 2007
Hi Adrian,
On Fri, Mar 16, 2007 at 03:24:56PM +0100, Adrian Immler wrote:
> i start collectd with "cpu" module enabled: and it crashes (segfault)
> Mar 16 15:09:23 server collectd[3737]: cpu-plugin: processor_info
> failed: (os/kern) failure
The error above is printed by some code I coulnd't test myself, because
my Macs don't support reading the CPU temperature using the the
interface the cpu plugin uses. The code is there more as a proof-of-
concept and doesn't entirely work.
You can disable the code by adding the marked line at or near line 85 of
`src/cpu.c':
-- 8< --
static processor_port_array_t cpu_list;
static mach_msg_type_number_t cpu_list_len;
+#undef PROCESSOR_TEMPERATURE
#if PROCESSOR_TEMPERATURE
static int cpu_temp_retry_counter = 0;
static int cpu_temp_retry_step = 1;
-- >8 --
> can anyone help? if it helps i can submit the crashdump report.
That'd be great :) Also, if you'd be willing to test an updated version
of `cpu.c' that might help fix the problem and, if we're successfull,
will provide you with cpu-temperature graphs ;)
Regards,
-octo
--
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20070316/8b0a44e7/attachment.pgp
More information about the collectd
mailing list