This is a multi-part message in MIME format.
------=_NextPart_000_00B5_01C39ED1.F0FB9980
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_00B6_01C39ED1.F0FB9980"
------=_NextPart_001_00B6_01C39ED1.F0FB9980
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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
I really don=B4t have time to see what was happening, but I collect some =
information to send to you. I attached some files here to demonstrate =
what I did and what error I got trying to use nagios after I compiled it =
with --enable-embedded-perl.
I used output redirect to create the files.
[root@axeh nagios-source-1.1]# ./configure =
--prefix=3D/tools/nagios/bin-1.1 --with-gd --enable-embedded-perl =
--with-nagios-user=3Dnagios --with-nagios-grp=3Dnagios 1> configure.out =
2> configure.err
[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 =3D> =
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so =
(0x40014000)
libnsl.so.1 =3D> /lib/libnsl.so.1 (0x40145000)
libdl.so.2 =3D> /lib/libdl.so.2 (0x4015b000)
libm.so.6 =3D> /lib/i686/libm.so.6 (0x4015e000)
libpthread.so.0 =3D> /lib/i686/libpthread.so.0 (0x40180000)
libc.so.6 =3D> /lib/i686/libc.so.6 (0x42000000)
libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0x401d0000)
libutil.so.1 =3D> /lib/libutil.so.1 (0x401fe000)
/lib/ld-linux.so.2 =3D> /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
[root@axeh bin-1.1]# gdb bin/nagios
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you =
are
welcome to change it and/or distribute copies of it under certain =
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for =
details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols =
found)...
(gdb) run
Starting program: /tools/nagios/bin-1.1/bin/nagios
[New Thread 16384 (LWP 4892)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 4892)]
Perl_PerlIO_stdout (my_perl=3D0x0) at perlio.c:4370
4370 perlio.c: No such file or directory.
in perlio.c
(gdb) quit
The program is running. Exit anyway? (y or n) y
[root@axeh bin-1.1]#
So, I don=B4t have any idea on what is going on.
This is a RedHat 8.0 on a Intel machine with perl 5.8 (default =
instalation of perl package)
2) Using --with-file-perfdata on the configure script
Trying to use nagios configured with --with-file-perfdata I have no =
$USER?$ macros more than $USER1$. I noticed that when I was using =
$USER2$ variable
to set a password to access a webserver using check_http. I did this =
test only one time and I got this behaviour, so I recompiled nagios =
without this option and everythink is ok now.
the configure line I used was: ./configure =
--prefix=3D/tools/nagios/bin-1.1 --with-gd --with-nagios-user=3Dnagios =
--with-nagios-grp=3Dnagios --with-file-perfdata
3) Tests on passive checks.
I tested passive checks on Nagios and I had this problem:
host: test
service: procs
I configured nagios to accept passive checks on service 'procs' of host =
'test'. I used (by force) the check_command called dummy, this is =
configured on the checkcommand.cfg file to run check_dummy with =
parameter 2 (return critical state, you will understand...) command . =
So, when freshness limit exceeds to this service, the check command =
'dummy' runs and change the state of this service to 'critical' (that is =
why i used 2 on the parameter line). Well. this is my point. At this =
time If the host that send information that this service is CRITICAL
...[email truncated]...
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]