Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Nagios 1.0 ebuild
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
davidr
n00b
n00b


Joined: 13 Nov 2002
Posts: 11
Location: Tampa, FL

PostPosted: Wed Feb 05, 2003 4:05 pm    Post subject: Problems with Nagios 1.0 ebuild Reply with quote

Nagios 1.0 builds fine, however, the CGI pages do not appear to work correctly. The tactical overview does not list hosts, everything says permission is denied, etc.

I know it is not my configuration files because I am migrating from a working 1.0 setup.

Interestingly enough, if I substitute the binaries from the working Nagios 1.0 system (from a RedHat 7.3 box) on my Gentoo box, everything works fine.

I thought it may be a GCC 3.2 problem, so I emerged GCC 2.95.3 and rebuilt nagios with no change.

Any suggestions?
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Feb 05, 2003 6:48 pm    Post subject: nagios Reply with quote

hmmm I had no problems building it last week, here's a few things to check.

1. Are the files in /etc/nagios/ owned by nagios:nagios and set to permissions 664? Also my nrpe.cfg, nsca.cfg, and send_nsca.cfg is owned by root:root.

2. Are you starting Apache with a -D NAGIOS, it should show up in the last line of your /etc/conf.d/apache

3. Does your /etc/apache/conf/apache.conf include the nagios.conf in a line like this:
Include conf/addon-modules/nagios.conf

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
davidr
n00b
n00b


Joined: 13 Nov 2002
Posts: 11
Location: Tampa, FL

PostPosted: Wed Feb 05, 2003 7:04 pm    Post subject: Problem with Nagios 1.0 ebuild Reply with quote

Thanks for the quick response...

To answer your questions:

1 - Checked permissions, everything is as you mentioned.

2 - Yes, I'm using -D NAGIOS

3 - apache.conf is as stated.

The problem only occurs with the binaries resulting from the ebuild. Oddly enough, if I use binaries compiled on one of my RH7.3 systems, it works fine. I thought this might be a GCC issue, but building with 2.95.3 instead of 3.2.1 had no effect.

Maybe there's a USE I'm missing? Are you logging to a MySQL database or files?
Back to top
View user's profile Send private message
davidr
n00b
n00b


Joined: 13 Nov 2002
Posts: 11
Location: Tampa, FL

PostPosted: Wed Feb 05, 2003 7:10 pm    Post subject: Problem with Nagios 1.0 ebuild Reply with quote

To elaborate a little more, the error I get when accessing any of the overview sections is either:

Code:
Error: Could not read host and service status information! (when nagios is not running)
or
Code:
It appears as though you do not have permission to view information for any of the services 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. (when nagios is running)
---
This is misleading because it is not my config files, that I can tell...
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Wed Feb 05, 2003 7:22 pm    Post subject: strangestupid nagios tricks Reply with quote

Nope, no mysql. This was a test box before we migrated from netsaint to nagios on the main systems.

Here's a bit of info from my install, maybe it'll give you some clues.

Code:

using gcc-3.2.1-r6
checking whether the C compiler (gcc -march=pentium4 -O3 -pipe ) works... yes


*** Configuration summary for nagios 1.0 11-24-2002 ***:

 General Options:
 -------------------------
        Nagios executable:  nagios
        Nagios user/group:  nagios,nagios
       Command user/group:  nagios,nagios
            Embedded Perl:  yes, with caching
        Install ${prefix}:  /usr/nagios
                Lock file:  /var/nagios/nagios.lock
           Init directory:  /etc/init.d

 Web Interface Options:
 ------------------------
                 HTML URL:  http://localhost/nagios/
                  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):  /usr/bin/traceroute

 External Data Routines:
 ------------------------
              Status data:  Default (text file)
              Object data:  Template-based (text file)
             Comment data:  Default (text file)
            Downtime data:  Default (text file)
           Retention data:  Default (text file)
          Peformance data:  Default (external commands)
       Extended info data:  Template-based (text file)

Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.


kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
smouge
n00b
n00b


Joined: 22 Jan 2003
Posts: 66
Location: Oosterhout, the Netherlands

PostPosted: Mon Oct 06, 2003 6:30 am    Post subject: Reply with quote

I had the same problem.

To solve:

place apache or apache2 in your USE flags in /etc/make.conf

plus..

place gd in your USE flags in /etc/make.conf

if gd isn't in your USE flag then the nagios components are not copied to your apache directory.
_________________
Can't think about anything funny to place here
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum