Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20617 - net-analyser/nagios-core wrongly depends on apache
Summary: net-analyser/nagios-core wrongly depends on apache
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Michael Boman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 23669
  Show dependency tree
 
Reported: 2003-05-07 22:49 UTC by Michael Boman
Modified: 2004-01-27 03:51 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
USE gd and apache2 flags (diff-nagios-core-1.1-r3.ebuild,6.29 KB, patch)
2003-07-09 17:27 UTC, Jasmine Chua
Details | Diff
determine if apache is installed, install fe if yes (nagios-core-1.1-r4.ebuild.patch,1.27 KB, patch)
2003-11-19 07:37 UTC, Dave Josephsen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Boman 2003-05-07 22:49:01 UTC
Nagios core does not require apache to run. Especially if it is in a distributed
setup. The dependency on apache should be removed.
Comment 1 Dean Bailey 2003-06-17 21:59:35 UTC
I'll see what I can do about making it work on apache free nodes. Might 
take me a few days, but I'm pretty sure I'll get it working for you. 
 
 
Comment 2 Jasmine Chua 2003-07-09 17:27:41 UTC
Created attachment 14323 [details, diff]
USE gd and apache2 flags 

For gd, use = "gd" which includes apache. For apache2, use = "gd apache2".
Otherwise, default will install without graphical.
Comment 3 Kurt Lieber (RETIRED) gentoo-dev 2003-07-19 08:29:19 UTC
just to pitch in my support for removing the apache dep on nagios.  It limits the usefullness of nagios if all client machines are required to have apache installed in order to monitor their processes, disk space, etc.

Comment 4 smouge 2003-10-05 23:26:20 UTC
Would be nice to give some output (warning) when emerging nagios that you
will need the USE flag gd if you want to have the url http://localhost/nagios/
working. Without this flag, the nagios components are not copied into the
apache directories.

It isn't such a big deal but may prevent users from scratching there bold
head why the apache/nagios isn't working 
Comment 5 Dave Josephsen 2003-11-19 05:34:49 UTC
hey all. The way the package currently works is that 'use apache2' changes the apache conf settings, which is pretty much what is expected.  

'use libgd' on the other hand, is highly non-sequitor.  If use libgd is absent, the ebuild installs nagios as normal with make fullinstall and install-conf, and then recursivly deletes the /usr/local/nagios/{share,sbin} (html and cgi) directories it just built.  

This behavior is non-intuitive since none of the cgi's actually depend on libgd to operate. The only two cgi's that use libgd are alert histogram and status map, and they will work without it, they just wont look very pretty. There is no logical explaination I can think of for deleting the html files based on the absense of libgd as they of course do not need it.

In other words, making the installation of the html and cgi files contingent on libgd is silly, and is causing headaches. Please figure out some other way to detect if the user wants the web front end. 
Comment 6 Dave Josephsen 2003-11-19 07:37:55 UTC
Created attachment 20950 [details, diff]
determine if apache is installed, install fe if yes

We could check /var/db/pkg to see if apache has been installed,
and use that as criteria for installing the front end.
This is probably not the way gentoo developers want to do things,
and just having apache installed doesn't necessarily mean you want
a nagios fe, but it's better than libgd for a criteria, and 
I didn't find anything in the developer docs specifically saying it was 
a no-no.
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2003-11-26 12:45:37 UTC
the ebuild is in cvs
Comment 8 Michael Boman (RETIRED) gentoo-dev 2004-01-27 03:48:18 UTC
Sorry to bark in like this, but I just had to do this. Suddenly I had a irristable itch I just _had_ to scratch. You can find nagios-1.1-r5 on the mirrors shortly. I have introduced a "noweb" local USE flag. If that flag is set no HTML/CGI will be installed.

I also added a metadata.xml to it, stating that I'll take the fame and blame for the meantime until someone else steps up to take propper care of it.
Comment 9 Michael Boman (RETIRED) gentoo-dev 2004-01-27 03:51:12 UTC
Can't take ownership and close the bug at the same time...