CGI Error

Josh josh2780 at yahoo.com
Mon May 2 16:36:51 CEST 2005


The only thing that is different between this new
install and and install on a previously working Nagios
is the OS version.

I previously had Nagios 1.2 running on a RedHat 9 box.
This new install (Nagios 2.0) is on a RedHat ES4
machine.

Just to sum up... in case a light flicks on... Nagios
starts without errors.  ../bin/nagios -v nagios.cfg
returns 0 errors. The CGIs can see the cgi.cfg file (A
test: renaming cgi.cfg results in a different error
that says it can't find the config file).. so no
problems reading the configs.

Still get the "Error: Could not read object
configuration data!".

In fact, I tried installing 1.2 on the ES4 machine and
get the following error: "Error: Could not read host
and service status information!".  In this case, there
were also no errors reported and nagios is running.

I'll test Nagios 2.0 on an old RH9 box shortly.  Has
anyone else been successful on installing Either
version of Nagios on an RedHat ES3 or ES4 machine?

-Josh


--- Josh <josh2780 at yahoo.com> wrote:

> Hi Sally.  I'm running Apache 1.3.33 with mod_perl
> 1.29.
> 
> I've tried reinstalling nagios 2.0 with the defaults
> when running ./configure.  Basic install,
> authentication shut off ...  still get the same
> result
> on the CGIs.
> 
> Any thoughts from anyone?
> 
> 
> --- Sally <frogmist at gmail.com> wrote:
> 
> > Hi Josh,
> > I'm encountering the same problem... wat's the
> > version of apache that
> > you are using? mine's 2.0.54... din have any
> > problems on 2.0.52, so
> > wondering whether it's the apache that's causing
> the
> > problem.
> > 
> > 
> > Thanks!
> > 
> > 
> > 
> > 
> > From: Josh <josh2780 at ya...>
> >  Re: CGI Error   
> > 2005-04-29 08:27  
> >  Thanks for the reply, Guillaume.
> >  
> >  Yes, the user is authorized.  After no luck I
> then
> >  disabled authentication and tried again.  Still
> >  nothing.
> >  
> >  Yes, nagios is running...  and again, starts up
> > with
> >  no errors in nagios.log.
> >  
> >  While I"m awaiting any reponses I"ve been digging
> >  through the source to find the root of the
> problem.
> > 
> >  The cgi.cfg file is definitely being read. 
> > Changing
> >  the filename results in a different error that
> the
> >  config can"t be found.
> >  
> >  Taking a closer look at the error... "Make sure
> > you"ve
> >  compiled the main program and the CGIs to use the
> > same
> >  object data storage options (i.e. default text
> file
> > or
> >  template-based file)."  Is there an options
> > somewhere
> >  to switch between the two?  This was a new
> install
> > and
> >  I only changed what needed to be changed
> > (host/service
> >  defs, file locations, etc.).
> >  
> >  -Josh
> >  
> >  
> >  --- guillaume LOHEZ <guillaume.lohez at li...>
> >  wrote:
> >  > Hi
> >  > 
> >  > Maybe, it is an authentification problem with
> >  > Apache.....
> >  > Or a config problem in cgi.cfg
> >  > 
> >  > What user do you use to login ????
> >  > Is this user authorized to view the page you
> want
> > to
> >  > display ????
> >  > 
> >  > Ok, there is no error for the dry run..... but
> >  > nagios is running or not ????
> >  > 
> >  > That"s my first clues...
> >  > 
> >  > Regards
> >  > Guillaume
> >  > 
> >  > 
> >  > Josh a écrit :
> >  > 
> >  > >OK.  I know this must be a common error but I
> > can"t
> >  > >find a solution for my situation anywhere
> > online,
> >  > >FAQs, or forums.
> >  > >
> >  > >Here"s the error I get when clicking on one of
> > the
> >  > >CGIs on the left frame of the web interface:
> >  > >
> >  > >----
> >  > >Whoops!
> >  > >Error: Could not read object configuration
> data!
> >  > >
> >  > >Here are some things you should check in order
> > to
> >  > >resolve this error: 
> >  > >
> >  > >
> >  > >Verify configuration options using the -v
> >  > command-line
> >  > >option to check for errors. 
> >  > >Check the Nagios log file for messages
> relating
> > to
> >  > >startup or status data errors. 
> >  > >Make sure you"ve compiled the main program and
> > the
> >  > >CGIs to use the same object data storage
> options
> >  > (i.e.
> >  > >default text file or template-based file). 
> >  > >----
> >  > >
> >  > >Here"s how I configured nagios-2.0b3:
> >  > >
> >  > >./configure \
> >  > >  --prefix=/usr/local/nagios-2.0b3 \
> >  > >  --with-lockfile=/var/lock/subsys/nagios \
> >  > >  --with-nagios-user=nagios \
> >  > >  --with-nagios-grp=nagios \
> >  > >  --with-perlcache \
> >  > >  --enable-embedded-perl \
> >  > >  --with-gd-inc=/usr/local/include \
> >  > >  --with-gd-lib=/usr/local/lib \
> >  > >  --with-template-objects \
> >  > >  --with-cgiurl="/cgi-bin/nagios" \
> >  > >  --with-htmurl="/nagios"
> >  > >
> >  > >I don"t get any errors when running:
> >  > >/usr/local/nagios-2.0b3/bin/nagios -v
> >  > >/usr/local/nagios-2.0b3/etc/nagios.cfg
> >  > >
> >  > >
> >  > >No errors in /var/log/nagios/nagios.log and no
> >  > errors
> >  > >in apache.  Any ideas on what I can try?
> >  > >
> >  > >Thanks.
> >  > >
> >  > >-Josh
> >  > >
> >  >
> >
> >__________________________________________________
> >  > >Do You Yahoo!?
> >  > >Tired of spam?  Yahoo! Mail has the best spam
> >  > protection around 
> >  > >http://mail.yahoo.com 
> >  > >
> >  > >
> >  >
> > 
> >
>
>-------------------------------------------------------
> >  > >SF.Net email is sponsored by: Tell us your
> > software
> >  > development plans!
> >  > >Take this survey and enter to win a one-year
> sub
> > to
> >  > SourceForge.net
> >  > >Plus IDC"s 2005 look-ahead and a copy of this
> >  > survey
> >  > >Click here to start! 
> >  > http://www.idcswdc.com/cgi-bin/survey?id=105hix
> >  >
> >_______________________________________________
> >  > >Nagios-users mailing list
> >  > >Nagios-users at li...
> >  >
> > 
> >
>
>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
> >  > >
> >  > >  
> >  > >
> >  > 
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
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