<div>Hi,</div>
<div>Actually, in /usr/local/nagios/etc there are now some *sample files.</div>
<div>the resource.cfg that i do use has the @libexec@ and the resource.cfg-sample</div>
<div>file has the one set in /usr/local/nagios/libexec, so used that one.</div>
<div> </div>
<div>When i rerun nagios, i got the </div>
<div> </div>
<div>Return code of 137 is out of bounds</div>
<div> </div>
<div>in the webpage and</div>
<div>ld.so.1: /usr/local/nagios/libexec/check_ping: fatal: libiconv.so.2: open failed: No such file or directory</div>
<div>ing the terminal..<br> </div>
<div>although i have the libiconv.so.2 file in /usr/local/lib</div>
<div>I read somewhere that i have to set some variable to the path</div>
<div>of the library but i forgot where/what it is? LIB_... something.. :)</div>
<div> </div>
<div>Thanks!</div>
<div><br> </div>
<div><span class="gmail_quote">On 9/1/05, <b class="gmail_sendername">Subhendu Ghosh</b> <<a href="mailto:sghosh@sghosh.org">sghosh@sghosh.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">configure looks good here.<br><br>In /usr/local/nagios/etc - do you only have one resource.cfg file? or do
<br>you have <a href="http://resource.cfg.in">resource.cfg.in</a> as well?<br><br>you might want to delete every thing in /usr/local/nagios/etc and run<br>"make install-config" again to get the base sample-config
<br><br>-sg<br><br>On Thu, 1 Sep 2005, Elizar M. Palad wrote:<br><br>> Hi Subhendu,<br>> I rerun the ./configure... same options and i couldn't find any critical<br>> errors.<br>> I attached the output produced. The only thing that looks like an error is
<br>> the gd, which, according to the documentation, nagios will run without it.<br>><br>> # ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin<br>> --with-htmlurl=/nagios --with-nagios-user=na
<br>> gios --with-nagios-groupp=nagios --with-gd-lib=/usr/local/lib<br>> checking for a BSD compatible install... ./install-sh -c<br>> checking host system type... sparc-sun-solaris2.6<br>> checking for gcc... gcc
<br>> checking whether the C compiler (gcc ) works... yes<br>> checking whether the C compiler (gcc ) is a cross-compiler... no<br>> checking whether we are using GNU C... yes<br>> checking whether gcc accepts -g... yes
<br>> checking whether make sets ${MAKE}... yes<br>> checking for strip... /usr/ccs/bin/strip<br>> checking how to run the C preprocessor... gcc -E<br>> checking for ANSI C header files... yes<br>> checking whether
time.h and sys/time.h may both be included... yes<br>> checking for sys/wait.h that is POSIX.1 compatible... yes<br>> checking for arpa/inet.h... yes<br>> checking for ctype.h... yes<br>> checking for dirent.h..
. yes<br>> checking for errno.h... yes<br>> checking for fcntl.h... yes<br>> checking for getopt.h... no<br>> checking for grp.h... yes<br>> checking for limits.h... yes<br>> checking for math.h... yes<br>
> checking for netdb.h... yes<br>> checking for netinet/in.h... yes<br>> checking for pthread.h... yes<br>> checking for pthreads.h... no<br>> checking for pwd.h... yes<br>> checking for regex.h... yes<br>
> checking for signal.h... yes<br>> checking for socket.h... no<br>> checking for string.h... yes<br>> checking for strings.h... yes<br>> checking for sys/mman.h... yes<br>> checking for sys/types.h... yes
<br>> checking for sys/time.h... yes<br>> checking for sys/resource.h... yes<br>> checking for sys/wait.h... (cached) yes<br>> checking for sys/socket.h... yes<br>> checking for sys/stat.h... yes<br>> checking for sys/timeb.h... yes
<br>> checking for sys/un.h... yes<br>> checking for sys/ipc.h... yes<br>> checking for sys/msg.h... yes<br>> checking for sys/poll.h... yes<br>> checking for syslog.h... yes<br>> checking for uio.h... no
<br>> checking for unistd.h... yes<br>> checking for working const... yes<br>> checking whether struct tm is in sys/time.h or time.h... time.h<br>> checking for tm_zone in struct tm... no<br>> checking for tzname... yes
<br>> checking for mode_t... yes<br>> checking for pid_t... yes<br>> checking for size_t... yes<br>> checking return type of signal handlers... void<br>> checking for uid_t in sys/types.h... yes<br>> checking type of array argument to getgroups... gid_t
<br>> checking for initgroups... yes<br>> checking for setenv... no<br>> checking for strdup... yes<br>> checking for strstr... yes<br>> checking for strtoul... yes<br>> checking for unsetenv... no<br>> checking for type of socket size... size_t
<br>> checking for pthread_create in -lcma... no<br>> checking for pthread_create in -lpthread... yes<br>> checking for library containing nanosleep... -lposix4<br>> checking for mail... /usr/bin/mail<br>> Init script directory: /etc/init.d
<br>> We'll use default routines (in xdata/xsddefault.*) for status data I/O...<br>> We'll use default routines (in xdata/xcddefault.*) for comment data I/O...<br>> We'll use default routines (in xdata/xrddefault.*) for retention data I/O...
<br>> We'll use template-based routines (in xdata/xodtemplate.*) for object data<br>> I/O...<br>> We'll use default routines (in xdata/xpddefault.*) for performance data<br>> I/O...<br>> We'll use default routines (in xdata/xdddefault.*) for scheduled downtime
<br>> data I/O...<br>> checking for main in -liconv... yes<br>> checking for gdImagePng in -lgd (order 1)... no<br>> checking for gdImagePng in -lgd (order 2)... no<br>> checking for gdImagePng in -lgd (order 3)... no
<br>> checking for gdImagePng in -lgd (order 4)... no<br>><br>><br>> *** GD, PNG, and/or JPEG libraries could not be located... *********<br>><br>> Boutell's GD library is required to compile the statusmap, trends
<br>> and histogram CGIs. Get it from <a href="http://www.boutell.com/gd/">http://www.boutell.com/gd/</a>, compile<br>> it, and use the --with-gd-lib and --with-gd-inc arguments to specify<br>> the locations of the GD library and include files.
<br>><br>> NOTE: In addition to the gd-devel library, you'll also need to make<br>> sure you have the png-devel and jpeg-devel libraries installed<br>> on your system.<br>><br>> NOTE: After you install the necessary libraries on your system:
<br>> 1. Make sure /etc/ld.so.conf has an entry for the directory in<br>> which the GD, PNG, and JPEG libraries are installed.<br>> 2. Run 'ldconfig' to update the run-time linker options.<br>> 3. Run 'make clean' in the Nagios distribution to clean out
<br>> any old references to your previous compile.<br>> 4. Rerun the configure script.<br>><br>> NOTE: If you can't get the configure script to recognize the GD libs<br>> on your system, get over it and move on to other things. The
<br>> CGIs that use the GD libs are just a small part of the entire<br>> Nagios package. Get everything else working first and then<br>> revisit the problem. Make sure to check the nagios-users<br>> mailing list archives for possible solutions to GD library
<br>> problems when you resume your troubleshooting.<br>><br>> ********************************************************************<br>><br>><br>> checking for ltdl.h... no<br>> checking for dlfcn.h..
. yes<br>> checking for dlopen in -ldl... yes<br>> checking for extra flags needed to export symbols... none<br>> checking for linker flags for loadable modules... -G<br>> checking for linker flags for loadable modules... -G
<br>> checking for traceroute... no<br>> checking for snprintf... yes<br>> checking for type va_list... yes<br>> checking for perl... /usr/local/bin/perl<br>> creating ./config.status<br>> creating Makefile
<br>> creating subst<br>> creating pkginfo<br>> creating base/Makefile<br>> creating common/Makefile<br>> creating contrib/Makefile<br>> creating cgi/Makefile<br>> creating html/Makefile<br>> creating module/Makefile
<br>> creating include/Makefile<br>> creating xdata/Makefile<br>> creating daemon-init<br>> creating html/index.html<br>> creating html/side.html<br>> creating include/config.h<br>> include/config.h is unchanged
<br>> creating include/snprintf.h<br>> include/snprintf.h is unchanged<br>> creating include/nagios.h<br>> creating include/cgiutils.h<br>> include/cgiutils.h is unchanged<br>><br>> Creating sample config files in sample-config/ ...
<br>><br>><br>> *** Configuration summary for nagios 2.0b4 08-02-2005 ***:<br>><br>> General Options:<br>> -------------------------<br>> Nagios executable: nagios<br>> Nagios user/group: nagios,nagios
<br>> Command user/group: nagios,nagios<br>> Embedded Perl: no<br>> Event Broker: yes<br>> Install ${prefix}: /usr/local/nagios<br>> Lock file: ${prefix}/var/nagios.lock<br>> Init directory: /etc/init.d<br>
> Host OS: solaris2.6<br>><br>> Web Interface Options:<br>> ------------------------<br>> HTML URL: <a href="http://localhost/nagios/">http://localhost/nagios/</a><br>> CGI URL: <a href="http://localhost/nagios/cgi-bin/">
http://localhost/nagios/cgi-bin/</a><br>> Traceroute (used by WAP):<br>><br>><br>> Review the options above for accuracy. If they look okay,<br>> type 'make all' to compile the main program and CGIs.<br>>
<br>><br>> On 9/1/05, Subhendu Ghosh <<a href="mailto:sghosh@sghosh.org">sghosh@sghosh.org</a>> wrote:<br>>><br>>> On Thu, 1 Sep 2005, Elizar M. Palad wrote:<br>>><br>>>> Hi! Ok, i rerun configure script after installed perl, seems ok. no
<br>>> error<br>>>> and all<br>>>> the .h files are created and there's no more error in make<br>>> install-config (i<br>>>> had one before)<br>>>> i am using the minimal.cfg
to test nagios.<br>>>> I started nagios without any options.<br>>>> /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg<br>>>> and it says:<br>>>> sh: @libexecdir@/check_ping: not found
<br>>>> sh: @libexecdir@/check_users: not found<br>>>> sh: @libexecdir@/check_procs: not found<br>>>> Is this ok?<br>>><br>>> No - @libexecdir@ should have been fixed by configure.<br>
>><br>>> For nagios - there should be no errors in the configure process...<br>>><br>>><br>>>> The IE page now has an error...<br>>>> It appears as though you do not have permission to view information for
<br>>>> any of the hosts you requested...<br>>>><br>>>> If you believe this is an error, check the HTTP server authentication<br>>>> requirements for accessing this CGI<br>>>> and check the authorization options in your CGI configuration file.
<br>>>> I didn't set up any authentication for nagios. Maybe it caused the error<br>>>> above?<br>>>> if it does, how to use nagios without authentication?<br>>>> thanks!<br>>>>
<br>>>><br>>>> On 8/31/05, Subhendu Ghosh <<a href="mailto:sghosh@sghosh.org">sghosh@sghosh.org</a>> wrote:<br>>>>><br>>>>><br>>>>> Yes - autoconf which creates configure uses perl :)
<br>>>>><br>>>>> You can either compile your own or <a href="http://sunfreeware.com">sunfreeware.com</a><<a href="http://sunfreeware.com">http://sunfreeware.com</a>><br>>> <<a href="http://sunfreeware.com">
http://sunfreeware.com</a>>has some nice pkgadd<br>>>>> versions.<br>>>>><br>>>>> -sg<br>>>>><br>>>>><br>>>>> On Wed, 31 Aug 2005, Elizar M. Palad wrote:
<br>>>>><br>>>>>> Hi, thanks!<br>>>>>> from ./configure's output:<br>>>>>><br>>>>>> creating html/index.html<br>>>>>> creating html/side.html
<br>>>>>> creating include/config.h<br>>>>>> creating include/snprintf.h<br>>>>>> creating include/nagios.h<br>>>>>> creating include/cgiutils.h<br>>>>>> ./configure: perl: not found
<br>>>>>> ./configure: perl: not found<br>>>>>><br>>>>>> Creating sample config files in sample-config/ ...<br>>>>>> ./configure: perl: not found<br>>>>>> ./configure: perl: not found
<br>>>>>> ./configure: perl: not found<br>>>>>> ./configure: perl: not found<br>>>>>> ./configure: perl: not found<br>>>>>> ./configure: perl: not found<br>>>>>> ./configure: perl: not found
<br>>>>>> ./configure: perl: not found<br>>>>>><br>>>>>><br>>>>>> *** Configuration summary for nagios 2.0b4 08-02-2005 ***:<br>>>>>><br>>>>>> General Options:
<br>>>>>> -------------------------<br>>>>>> Nagios executable: nagios<br>>>>>> Nagios user/group: nagios,nagios<br>>>>>> Command user/group: nagios,nagios<br>>>>>> Embedded Perl: no
<br>>>>>> Event Broker: yes<br>>>>>> Install ${prefix}: /usr/local/nagios<br>>>>>> Lock file: ${prefix}/var/nagios.lock<br>>>>>> Init directory: /etc/init.d<br>>>>>> Host OS:
solaris2.6<br>>>>>> ....<br>>>>>> Im going to install now perl and see if it will create the<br>>> location.hfile.<br>>>>>> Thanks!<br>>>>>> eli<br>>>>>>
<br>>>>>> On 8/31/05, Subhendu Ghosh <<a href="mailto:sghosh@sghosh.org">sghosh@sghosh.org</a>> wrote:<br>>>>>>><br>>>>>>> On Wed, 31 Aug 2005, Elizar M. Palad wrote:
<br>>>>>>><br>>>>>>>> I rerun ./configure --prefix=/usr/local/nagios<br>>>>>>> --with-cgiurl=/nagios/cgi-bin<br>>>>>>>> --with-htmlurl=/nagios --with-nagios-user=nagios
<br>>>>>>> --with-nagios-groupp=nagios<br>>>>>>>> --with-gd-lib=/usr/local/lib<br>>>>>>>> and summary is below:<br>>>>>>>> *** Configuration summary for nagios
2.0b4 08-02-2005 ***:<br>>>>>>>><br>>>>>>>> General Options:<br>>>>>>>> -------------------------<br>>>>>>>> Nagios executable: nagios<br>
>>>>>>> Nagios user/group: nagios,nagios<br>>>>>>>> Command user/group: nagios,nagios<br>>>>>>>> Embedded Perl: no<br>>>>>>>> Event Broker: yes
<br>>>>>>>> Install ${prefix}: /usr/local/nagios<br>>>>>>>> Lock file: ${prefix}/var/nagios.lock<br>>>>>>>> Init directory: /etc/init.d<br>>>>>>>> Host OS:
solaris2.6<br>>>>>>>><br>>>>>>>> Web Interface Options:<br>>>>>>>> ------------------------<br>>>>>>>> HTML URL: <a href="http://localhost/nagios/">
http://localhost/nagios/</a><br>>>>>>>> CGI URL: <a href="http://localhost/nagios/cgi-bin/">http://localhost/nagios/cgi-bin/</a><br>>>>>>>> Traceroute (used by WAP):<br>>>>>>>>
<br>>>>>>>><br>>>>>>>> Review the options above for accuracy. If they look okay,<br>>>>>>>> type 'make all' to compile the main program and CGIs.<br>>>>>>>> ------------------
<br>>>>>>>> Looks ok isn't it?<br>>>>>>>> then when i do 'make all', i have this error:<br>>>>>>>> # make all<br>>>>>>>> cd ./base && make
<br>>>>>>>> make: Fatal error: Don't know how to make target<br>>>>>>> `../include/locations.h'<br>>>>>>>> Current working directory /packages/nagios-2.0b4/base<br>
>>>>>>> *** Error code 1<br>>>>>>>> make: Fatal error: Command failed for target `all'<br>>>>>>>> This is also my second time with this error. What I did was i copy
<br>>>>>>>> <a href="http://locations.h.in">locations.h.in</a> <<a href="http://locations.h.in">http://locations.h.in</a>> <<a href="http://locations.h.in">http://locations.h.in</a>> <<br>
>> <a href="http://locations.h.in">http://locations.h.in</a>> <<br>>>>> <a href="http://locations.h.in">http://locations.h.in</a>> as<br>>>>>>> locations.h :-)<br>>>>>>>> and the compilation continues.. (was that not right? :)
<br>>>>>>>> thanks!<br>>>>>>><br>>>>>>><br>>>>>>> NOOOOO - configure must have produced an error before the summary was<br>>>>>>> printed.
<br>>>>>>><br>>>>>>> configure should create a locations.h from <a href="http://locations.h.in">locations.h.in</a><<a href="http://locations.h.in">http://locations.h.in</a>><br>>> <
<a href="http://locations.h.in">http://locations.h.in</a>><br>>>>> <<a href="http://locations.h.in">http://locations.h.in</a>>after<br>>>>>>> appropriate substitutions.<br>>>>>>>
<br>>>>>>> If the file is not being created properly - you may have a file<br>>>>> permission<br>>>>>>> issue.<br>>>>>>><br>>>>>>> run "chown -R user:group nagios_src_dir/"
<br>>>>>>><br>>>>>>> replace the user and group with the user and group info fort he<br>>> person<br>>>>>>> running configure<br>>>>>>><br>>>>>>> replace nagios_src_dir with the dir that contains the nagios src.
<br>>>>>>><br>>>>>>> Never copy a *.*.in file into a *.* file.<br>>>>>>><br>>>>>>><br>>>>>>><br>>>>>>> --<br>>>>>>>
<br>>>>>>> -sg<br>>>>>>><br>>>>>><br>>>>>><br>>>>>><br>>>>>><br>>>>><br>>>>> --<br>>>>><br>
>>>><br>>>><br>>>><br>>>><br>>><br>>> --<br>>><br>>><br>>><br>>> -------------------------------------------------------<br>>> SF.Net email is Sponsored by the Better Software Conference & EXPO
<br>>> September 19-22, 2005 * San Francisco, CA * Development Lifecycle<br>>> Practices<br>>> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA<br>>> Security * Process Improvement & Measurement *
<a href="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</a><br>>> _______________________________________________<br>>> Nagios-users mailing list<br>>> <a href="mailto:Nagios-users@lists.sourceforge.net">
Nagios-users@lists.sourceforge.net</a><br>>> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>>> ::: Please include Nagios version, plugin version (-v) and OS when
<br>>> reporting any issue.<br>>> ::: Messages without supporting info will risk being sent to /dev/null<br>>><br>><br>><br>><br>><br><br>--<br><br></blockquote></div><br><br clear="all"><br>
-- <br>----<br>Don't Tell Me How Hard You Work..<br> Show Me How Much You'd Accomplished..