@sysconfdir@/cgi.cfg - Installation setup problem

Subhendu Ghosh sghosh at sghosh.org
Thu Sep 1 07:32:10 CEST 2005


On Thu, 1 Sep 2005, Elizar M. Palad wrote:

> Hi! Ok, i rerun configure script after installed perl, seems ok. no error
> and all
> the .h files are created and there's no more error in make install-config (i
> had one before)
> i am using the minimal.cfg to test nagios.
> I started nagios without any options.
> /usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg
> and it says:
> sh: @libexecdir@/check_ping: not found
> sh: @libexecdir@/check_users: not found
> sh: @libexecdir@/check_procs: not found
> Is this ok?

No - @libexecdir@ should have been fixed by configure.

For nagios - there should be no errors in the configure process...


> The IE page now has an error...
>  It appears as though you do not have permission to view information for
> any of the hosts you requested...
>
> If you believe this is an error, check the HTTP server authentication
> requirements for accessing this CGI
> and check the authorization options in your CGI configuration file.
>  I didn't set up any authentication for nagios. Maybe it caused the error
> above?
> if it does, how to use nagios without authentication?
> thanks!
>
>
> On 8/31/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
>>
>>
>> Yes - autoconf which creates configure uses perl :)
>>
>> You can either compile your own or sunfreeware.com<http://sunfreeware.com>has some nice pkgadd
>> versions.
>>
>> -sg
>>
>>
>> On Wed, 31 Aug 2005, Elizar M. Palad wrote:
>>
>>> Hi, thanks!
>>> from ./configure's output:
>>>
>>> creating html/index.html
>>> creating html/side.html
>>> creating include/config.h
>>> creating include/snprintf.h
>>> creating include/nagios.h
>>> creating include/cgiutils.h
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>>
>>> Creating sample config files in sample-config/ ...
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>> ./configure: perl: not found
>>>
>>>
>>> *** Configuration summary for nagios 2.0b4 08-02-2005 ***:
>>>
>>> General Options:
>>> -------------------------
>>> Nagios executable: nagios
>>> Nagios user/group: nagios,nagios
>>> Command user/group: nagios,nagios
>>> Embedded Perl: no
>>> Event Broker: yes
>>> Install ${prefix}: /usr/local/nagios
>>> Lock file: ${prefix}/var/nagios.lock
>>> Init directory: /etc/init.d
>>> Host OS: solaris2.6
>>> ....
>>> Im going to install now perl and see if it will create the location.hfile.
>>> Thanks!
>>> eli
>>>
>>> On 8/31/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
>>>>
>>>> On Wed, 31 Aug 2005, Elizar M. Palad wrote:
>>>>
>>>>> I rerun ./configure --prefix=/usr/local/nagios
>>>> --with-cgiurl=/nagios/cgi-bin
>>>>> --with-htmlurl=/nagios --with-nagios-user=nagios
>>>> --with-nagios-groupp=nagios
>>>>> --with-gd-lib=/usr/local/lib
>>>>> and summary is below:
>>>>> *** Configuration summary for nagios 2.0b4 08-02-2005 ***:
>>>>>
>>>>> General Options:
>>>>> -------------------------
>>>>> Nagios executable: nagios
>>>>> Nagios user/group: nagios,nagios
>>>>> Command user/group: nagios,nagios
>>>>> Embedded Perl: no
>>>>> Event Broker: yes
>>>>> Install ${prefix}: /usr/local/nagios
>>>>> Lock file: ${prefix}/var/nagios.lock
>>>>> Init directory: /etc/init.d
>>>>> Host OS: solaris2.6
>>>>>
>>>>> Web Interface Options:
>>>>> ------------------------
>>>>> HTML URL: http://localhost/nagios/
>>>>> CGI URL: http://localhost/nagios/cgi-bin/
>>>>> Traceroute (used by WAP):
>>>>>
>>>>>
>>>>> Review the options above for accuracy. If they look okay,
>>>>> type 'make all' to compile the main program and CGIs.
>>>>> ------------------
>>>>> Looks ok isn't it?
>>>>> then when i do 'make all', i have this error:
>>>>> # make all
>>>>> cd ./base && make
>>>>> make: Fatal error: Don't know how to make target
>>>> `../include/locations.h'
>>>>> Current working directory /packages/nagios-2.0b4/base
>>>>> *** Error code 1
>>>>> make: Fatal error: Command failed for target `all'
>>>>> This is also my second time with this error. What I did was i copy
>>>>> locations.h.in <http://locations.h.in> <http://locations.h.in> <
>> http://locations.h.in> as
>>>> locations.h :-)
>>>>> and the compilation continues.. (was that not right? :)
>>>>> thanks!
>>>>
>>>>
>>>> NOOOOO - configure must have produced an error before the summary was
>>>> printed.
>>>>
>>>> configure should create a locations.h from locations.h.in<http://locations.h.in>
>> <http://locations.h.in>after
>>>> appropriate substitutions.
>>>>
>>>> If the file is not being created properly - you may have a file
>> permission
>>>> issue.
>>>>
>>>> run "chown -R user:group nagios_src_dir/"
>>>>
>>>> replace the user and group with the user and group info fort he person
>>>> running configure
>>>>
>>>> replace nagios_src_dir with the dir that contains the nagios src.
>>>>
>>>> Never copy a *.*.in file into a *.* file.
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> -sg
>>>>
>>>
>>>
>>>
>>>
>>
>> --
>>
>>
>
>
>

-- 



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list