[collectd] users plugin
Niki Waibel
niki.waibel at newlogic.com
Mon Dec 5 14:17:10 CET 2005
On 04-Dec-2005 Sebastian Harl wrote:
>> I
>> could only test it on my Linux box, but it should work on any other Unix
>> System as well - any feedback is appreciated ;-)
>
> Well, I should have read all of getutent(3). Close to the end it says:
>
> All these functions are obsolete now on non-Linux systems. POSIX
> 1003.1-2001, following XPG4.2, does not have any of these functions,
> but instead uses
>
> #include <utmpx.h>
>
> I fixed this issue and commited the new version to the SVN repository.
make sure that in configure.in you check for the header.
if it fails, also check for utmp.h.
i remember some older versions of solaris (sol8?) had problems
with [uw]tmp{x}?.
there is getutxent and getutent (at least on solaris9). so you might
check the function in configure.in as well...
niki
More information about the Collectd
mailing list