Xymon Mailing List Archive search

4.2 Alpha Release - hobbit_rrd crashing

list Henrik Størner
Wed, 5 Apr 2006 18:00:52 +0200
Message-Id: <user-fc43b7164e7d@xymon.invalid>

On Wed, Apr 05, 2006 at 05:23:29PM +0200, Henrik Stoerner wrote:
On Wed, Apr 05, 2006 at 04:06:22PM +0100, Morris, Chris (Shared Services) wrote:
Hi,

I have just built the hobbit 4.2-alpha-20060404 release server on an AIX 5.2
system.

hobbit_rrd is crashing every 5 mins

hobbitlaunch.log : Task rrddata terminated, status 1

rrd-data.log : xcalloc: Out of memory!
Always seems to crash on the second message (ifstat) although all rrds are
updated execpt for vmstat!!
Ouch! This is a really bad oversight on my part. I've simply forgotten
to implement the "ifstat" handling for AIX, Solaris and HP-UX.
Until I get these implemented, the attached patch should at least
prevent it from crashing.


Henrik

-------------- next part --------------
--- hobbitd/rrd/do_ifstat.c	2005/12/29 23:20:20	1.1
+++ hobbitd/rrd/do_ifstat.c	2006/04/05 15:59:00
@@ -46,12 +46,14 @@
 	if (ifstat_tpl == NULL) ifstat_tpl = setup_template(ifstat_params);
 	if (pcres_compiled == 0) {
 		pcres_compiled = 1;
+#if 0
 		ifstat_aix_pcres = compile_exprs("AIX", ifstat_aix_exprs, 
 						 (sizeof(ifstat_aix_exprs) / sizeof(ifstat_aix_exprs[0])));
 		ifstat_hpux_pcres= compile_exprs("HP-UX", ifstat_hpux_exprs, 
 						 (sizeof(ifstat_hpux_exprs) / sizeof(ifstat_hpux_exprs[0])));
 		ifstat_sunos_pcres = compile_exprs("SOLARIS", ifstat_sunos_exprs, 
 						 (sizeof(ifstat_sunos_exprs) / sizeof(ifstat_sunos_exprs[0])));
+#endif
 		ifstat_linux_pcres = compile_exprs("LINUX", ifstat_linux_exprs, 
 						 (sizeof(ifstat_linux_exprs) / sizeof(ifstat_linux_exprs[0])));
 	}