Nagios 4 on Solaris 10

Eric Stanley estanley at nagios.com
Tue Feb 5 12:45:32 CET 2013


Ton,

I tried compiling it on my Solaris 10 (u10) x86 system and couldn't get 
it to compile even with gcc. Do you have some patches that make it 
compile? The issues I've run into thus far include

1. the fact that RLIMIT_NPROC does not exist and
2. 'typedef struct comment_struct' (core 3) in include/comments.h was 
changed to 'typedef struct comment' in core 4 which conflicts with a 
structure of the same name in /usr/include/pwd.h.

Eric

On 2/4/13 4:58 PM, Gaspar, Carson wrote:
> I was going to try and look at this, but the current code fails to build with anything that isn't gcc, and I don't have the time to fix those bugs just to look into another one.
>
> Bug 1: lib/Makefile.in hard-codes gcc, and hard-codes -Wall
>
> Bug 2: dkhash.c fails to compile, because of an undefined variable i in lnag-utils.h line 111
>
> And that's where I gave up.
>
> -----Original Message-----
> From: Andreas Ericsson [mailto:ae at op5.se]
> Sent: Monday, February 04, 2013 8:39 AM
> To: Nagios Developers List
> Subject: Re: [Nagios-devel] Nagios 4 on Solaris 10
>
> On 02/04/2013 12:36 PM, Ton Voon wrote:
>> Hi!
>>
>> Has anyone tried the latest Nagios 4 code on Solaris 10?
>>
>> We get "(Service check did not exit properly)" for every active check
>> result. It looks to me like the worker process code has something
>> which is not working in Solaris. I think the communication is okay.
>>
>> There is a lib/wproc which looks like a worker test executable, which
>> executes commands from stdin via the worker process. This seems to
>> execute on the Solaris worker process and gets the output and errors,
>> but doesn't finish correctly.
>>
>> The simplest reproduction is to use the worker test executable. cd
>> lib && make wproc. This will fail with some missing symbols. Compile
>> by adding '-lsocket -lnsl' to the compiler flags. Run ./wproc and
>> enter 'hostname'. This will timeout before returning the result.
>>
>> Any ideas? Any Solaris users?
>>
> Do the self-tests pass?
>    cd lib && make test
>
> ./test-iobroker and ./test-iocache are extra interesting.
>
> I'd be happy to help over ssh if that's an option.
>


-- 
Eric Stanley
___
Developer
Nagios Enterprises, LLC
Email:  estanley at nagios.com
Web:    www.nagios.com


------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb




More information about the Developers mailing list