[collectd] no rrd files created on solaris (Bad file number)

Mathijs Möhlmann collectd at mmrc.nl
Tue Mar 22 14:26:47 CET 2011


On Wed, Mar 16, 2011 at 10:35:07AM +0100, Mathijs Möhlmann wrote:
> I'm using collectd 4.10.2 on Solaris 10 (gcc 3.4.6). Sometimes when I
> start with a clean rrd directory or add a host the .rrd file (rrdtools
> plugin) don't get created and I get the following message:
> 
> collectd[2996]: [ID 702911 daemon.error] stat(/usr/local/var/lib/collectd/rrd/asterix/load/load.rrd) failed: Bad file number

I've created a patch thats fixed this issue for me. Is this the right fix?

	me

--- collectd-4.10.2.orig/configure.in   2010-11-27 11:10:38.000000000 +0100
+++ collectd-4.10.2/configure.in        2011-03-22 14:05:12.761263000 +0100
@@ -90,6 +90,7 @@
 if test "x$ac_system" = "xSolaris"
 then
        AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [Define to enforce POSIX thread semantics under Solaris.])
+       AC_DEFINE(_REENTRANT,               1, [Define to enable reentrancy interfaces.])
 fi
 if test "x$ac_system" = "xAIX"
 then

-- 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20110322/9e7e7d01/attachment.pgp>


More information about the collectd mailing list