Re: [Nagios-devel] My experience with Nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] My experience with Nagios

Post by Guest »

Dear Sir,

I am writing to thank you for your letter and comment on the problem
with embedded Perl Nagios (ePN).

Unfortunately I can't comment on the other matters.

On Thu, Oct 30, 2003 at 10:38:22AM -0200, Fabiano Reis wrote:
> Hi,
>
> I have had installed nagios on my net{work} and now I would like to report a little about this operation.
>
> 1) Using --enable-embedded-perl on the configure script
>
> [root@axeh nagios-source-1.1]# ./configure --prefix=/tools/nagios/bin-1.1 --with-gd --enable-embedded-perl --with-nagios-user=nagios --with-nagios-grp=nagios 1> configure.out 2> configure.err
>

If you use ePN, you probably should consider using --perl-caching also

> [root@axeh nagios-source-1.1]# make all 1> make.out 2> make.err
> [root@axeh nagios-source-1.1]# make install 1> make.install.out 2>make.install.err
> # this is where I installed
> [root@axeh nagios-source-1.1]# cd ../bin-1.1/
> [root@axeh bin-1.1]# ldd bin/nagios
> libperl.so => /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so (0x40014000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x40145000)
> libdl.so.2 => /lib/libdl.so.2 (0x4015b000)
> libm.so.6 => /lib/i686/libm.so.6 (0x4015e000)
> libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40180000)
> libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
> libcrypt.so.1 => /lib/libcrypt.so.1 (0x401d0000)
> libutil.so.1 => /lib/libutil.so.1 (0x401fe000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
> [root@axeh bin-1.1]# bin/nagios
> Segmentation fault
> [root@axeh bin-1.1]# bin/nagios -v
> Segmentation fault

I think this is the characteristic problem of ePN with Netsaint, Nag
1.0, Nag 1.1 _and_ a threaded Perl such as you have (the thread support
is OS specific: while all contemporary Perls provide a thread API it
depends on whether the OS provides that facility. You are lucky enough
to have one)

AFAIK, the necessary surgery was committed to the CVS (in the 1.x
branch) in the last 3-6 months.

You should be able to get the modified files from the CVS

I think this would be done by selecting the Nagios-1.x-bugfix branch and
then checking out the files

nagios.c
checks.c
utils.c

or simply get the last branch of everything.

The modified files mainly have new function prototypes to accomodate the
changes in the Perl API.

HTH.

>
> Fabiano


Yours sincerely.


--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked