@sysconfdir@/cgi.cfg - Installation setup problem

Elizar M. Palad elizar.palad at gmail.com
Wed Aug 31 05:15:00 CEST 2005


Should i uncomment some of its entries? I think configure should have than 
that itself..
But if i must, which one? thanks!
 #define DEFAULT_TEMP_FILE "@localstatedir@/tempfile"
#define DEFAULT_STATUS_FILE "@localstatedir@/status.dat"
#define DEFAULT_LOG_FILE "@localstatedir@/nagios.log"
#define DEFAULT_LOG_ARCHIVE_PATH "@localstatedir@/archives/"
#define DEFAULT_COMMENT_FILE "@localstatedir@/comments.dat"
#define DEFAULT_DOWNTIME_FILE "@localstatedir@/downtime.dat"
#define DEFAULT_RETENTION_FILE "@localstatedir@/retention.dat"
#define DEFAULT_COMMAND_FILE "@localstatedir@/rw/nagios.cmd"
#define DEFAULT_CONFIG_FILE "@sysconfdir@/nagios.cfg"
#define DEFAULT_PHYSICAL_HTML_PATH "@datadir@"
#define DEFAULT_URL_HTML_PATH "@htmurl@"
#define DEFAULT_PHYSICAL_CGIBIN_PATH "@sbindir@"
#define DEFAULT_URL_CGIBIN_PATH "@cgiurl@"
#define DEFAULT_CGI_CONFIG_FILE "@sysconfdir@/cgi.cfg"
#define DEFAULT_LOCK_FILE "@lockfile@"
#define DEFAULT_OBJECT_CACHE_FILE "@localstatedir@/objects.cache"
#define DEFAULT_EVENT_BROKER_FILE "@localstatedir@/broker.socket"
#define DEFAULT_P1_FILE "@bindir@/p1.pl" /**** EMBEDDED PERL ****/
#define DEFAULT_AUTH_FILE "" /**** EMBEDDED PERL - IS THIS USED? ****/
 

 On 8/31/05, Elizar M. Palad <elizar.palad at gmail.com> 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/> as locations.h :-)
> and the compilation continues.. (was that not right? :)
>  thanks!
>  
> 
>  On 8/31/05, Subhendu Ghosh <sghosh at sghosh.org> wrote: 
> > 
> > 
> > 
> > yes - please run configure again - check for errors
> > 
> > 
> > On Wed, 31 Aug 2005, Elizar M. Palad wrote: 
> > 
> > > Hi Subhendu!
> > > I did my own compile. I am running it in solaris 2.6 machine with
> > > gcc/make.
> > > I just followed the instruction in the documentation and all went 
> > well.
> > > Should i redo it from ./configure? thanks! 
> > > eli
> > >
> > > On 8/31/05, Subhendu Ghosh <sghosh at sghosh.org> wrote:
> > >>
> > >> On Wed, 31 Aug 2005, Elizar M. Palad wrote:
> > >>
> > >>> Hi list! 
> > >>> This is my first time in nagios and first time in this list.
> > >>> I tried following the direction in the documentation in the source
> > >>> and browsed the archive for this basic/common (iguess) problem 
> > >>> in setting up nagios. I hope someone out there can help me.
> > >>> When i access nagios using IE (http://localhosts/nagios) the
> > >>> web interface shows up, but clicking the monitoring links (cgis) 
> > >>> i have this:
> > >>> Whoops!
> > >>>
> > >>> *Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for
> > >> reading!*
> > >>> I have every config file in /usr/local/nagios/etc 
> > >>> (cgi.cfg, nagios.cfg and other cfg files)
> > >>> pre-flight check shows no errors
> > >>>
> > >>> Total Warnings: 0
> > >>> Total Errors: 0
> > >>>
> > >>> Things look okay - No serious problems were detected during the 
> > >> pre-flight
> > >>> check
> > >>>
> > >>> What could be wrong? what did i miss? no errors in apache logs or in
> > >>> configuation of httpd.conf.
> > >>> Help me please? someone? if there's additional info you guys might 
> > need, 
> > >>> please let me know..
> > >>> thanks!
> > >>> eli
> > >>>
> > >>>
> > >>
> > >> Did you do your own compile or install from somewhere else?
> > >>
> > >> 1. Pre-flight check does not looks at cgi.cfg (not needed for nagios 
> > to
> > >> function - only the UI)
> > >> 2. @sysconfdir@ is supposed to be replaced at "configure" time before
> > >> compile. The base path is hardcoded into the cgis. 
> > >>
> > >> Looks like either the compile process bombed or you have a bad 
> > package.
> > >>
> > >> --
> > >> -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
> > 
> 
> 
> 
> -- 
> ----
> Don't Tell Me How Hard You Work..
> Show Me How Much You'd Accomplished.. 
> 



-- 
----
Don't Tell Me How Hard You Work..
Show Me How Much You'd Accomplished..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050831/13eb4e73/attachment.html>


More information about the Users mailing list