Nagios 2.0 problems starting

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Nov 4 00:17:32 CET 2004


Dear Folks,

I am writing to thank you for your letter and say,


On Wed, Nov 03, 2004 at 11:03:49AM +0000, Matthew Kent wrote:
> On Wed, 2004-11-03 at 17:08, Justin Lambert wrote:
>

  .. prob report and sensible advice snipped.
 
> Beyond that, initially I had very little luck getting embedded perl to 
work on my RedHat 7.3 install with nagios 2.0, unless you need it.

> I'd remove --enable-embedded-perl and --with-perlcache.

Unfortunately I concur.

The 2.0a nagios embedded Perl has some mistakes in it that prevent it's 
use on other than old Perls (ie Perl 5 < 5.6 prob). 

With a 5.6 or greater Perl, I think it will SEGV in the perl_alloc or 
perl_construct() calls.

The fix is simple if you would like to try it, in

utils.c and any other souce of decls of PerlInterpreter,


1 remove the decl of *perl

- static PerlInterpreter *perl=NULL; 

/* dupped from earlier correct decl of my_perl */

2 change the use of perl to my_perl

(in any call or result to Perl library functions (eg perl_construct()), 
change the arg named perl to my_perl)

! perl_construct(perl);
---
! perl_construct(my_perl);

  .. snip other sound comments 


I will try and submit a patch.

My comments are about utils.c 1.81 in the HEAD branch of the CVS (viewed 
through the CVS browser).

Unfortch I don't have access to threaded Perls where most of these probs 
occur.

> 
> Best of luck,
> -- 
> Matthew Kent <mkent at magoazul.com>
> http://magoazul.com
> 
> 
> 

Yours sincerely.

-- 
Stanley Hopcroft

Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20041104/e3498380/attachment.txt>


More information about the Developers mailing list