Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332369 - icinga-web-1.0.2.ebuild (New Ebuild)
Summary: icinga-web-1.0.2.ebuild (New Ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Matthew Thode ( prometheanfire )
URL: http://www.icinga.org/
Whiteboard: sunrise-suggested
Keywords: EBUILD
Depends on: 271339
Blocks:
  Show dependency tree
 
Reported: 2010-08-11 21:04 UTC by Mike Becker
Modified: 2012-07-16 15:29 UTC (History)
11 users (show)

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


Attachments
icinga-web-1.0.1.ebuild (icinga-web-1.0.1.ebuild,1.23 KB, text/plain)
2010-08-11 21:07 UTC, Mike Becker
Details
modules.xml.patch (modules.xml.patch,1.37 KB, patch)
2010-08-11 21:07 UTC, Mike Becker
Details | Diff
mysql.sql (mysql.sql,9.91 KB, text/plain)
2010-08-11 21:08 UTC, Mike Becker
Details
icinga-web-1.2.0.ebuild (icinga-web-1.2.0.ebuild,1.03 KB, text/plain)
2010-10-15 22:15 UTC, Mike Becker
Details
icinga-enable-api.patch (icinga-enable-api.patch,546 bytes, patch)
2010-10-15 22:15 UTC, Mike Becker
Details | Diff
icinga-cmd-file.patch (icinga-cmd-file.patch,717 bytes, patch)
2010-10-15 22:16 UTC, Mike Becker
Details | Diff
icinga-web-9999-r1.ebuild (icinga-web-9999-r1.ebuild,1.51 KB, text/plain)
2010-10-15 22:17 UTC, Mike Becker
Details
icinga-web-1.2.1.ebuild (icinga-web-1.2.1.ebuild,1.46 KB, text/plain)
2010-10-25 13:25 UTC, Mike Becker
Details
icinga-web-1.2.1-r1.ebuild (icinga-web-1.2.1-r1.ebuild,1.52 KB, text/plain)
2010-11-02 13:07 UTC, Mike Becker
Details
icinga-web-1.3.0.ebuild (icinga-web-1.3.0.ebuild,1.45 KB, text/plain)
2011-02-16 16:37 UTC, Mike Becker
Details
version bump to 1.3.1 (icinga-web-1.3.1.ebuild,1.44 KB, text/plain)
2011-04-05 16:09 UTC, Marian Rudzynski
Details
icinga-web-1.4.0.ebuild (icinga-web-1.4.0.ebuild,1.63 KB, text/plain)
2011-05-11 09:18 UTC, Mike Becker
Details
icinga-1.5.0.ebuild (icinga-1.5.0.ebuild,5.82 KB, text/plain)
2011-08-24 15:22 UTC, Matthew Thode ( prometheanfire )
Details
icinga-web-1.5.1.ebuild (icinga-web-1.5.1.ebuild,1.50 KB, text/plain)
2011-09-07 11:41 UTC, Thomas Oettli
Details
fix_destinations_in_makefiles-1.5.1.patch (fix_destinations_in_makefiles-1.5.1.patch,2.49 KB, patch)
2011-09-07 11:42 UTC, Thomas Oettli
Details | Diff
Version bump to version 1.5.2 (icinga-web-1.5.2.ebuild,1.41 KB, text/plain)
2011-09-19 15:07 UTC, Thomas Oettli
Details
icinga-web-1.6.1.ebuild (icinga-web-1.6.1.ebuild,1.40 KB, text/plain)
2012-01-18 14:37 UTC, Thomas Oettli
Details
icinga-web-1.6.1-r1.ebuild (icinga-web-1.6.1-r1.ebuild,2.24 KB, text/plain)
2012-02-24 15:19 UTC, Thomas Oettli
Details
icinga-web-1.6.2.ebuild (icinga-web-1.6.2.ebuild,3.57 KB, text/plain)
2012-03-08 14:32 UTC, Thomas Oettli
Details
icinga-web-1.7.1.ebuild (icinga-web-1.7.1.ebuild,3.69 KB, text/plain)
2012-07-02 07:40 UTC, Thomas Oettli
Details
icinga-web-1.7.1-disable-compression.patch (icinga-web-1.7.1-disable-compression.patch,3.05 KB, patch)
2012-07-02 07:42 UTC, Thomas Oettli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Becker 2010-08-11 21:04:26 UTC
Icinga Web
is the new fontend to the Icinga the Nagios fork

http://icinga.org

Reproducible: Always
Comment 1 Mike Becker 2010-08-11 21:07:24 UTC
Created attachment 242497 [details]
icinga-web-1.0.1.ebuild
Comment 2 Mike Becker 2010-08-11 21:07:56 UTC
Created attachment 242499 [details, diff]
modules.xml.patch
Comment 3 Mike Becker 2010-08-11 21:08:20 UTC
Created attachment 242501 [details]
mysql.sql
Comment 4 Mike Becker 2010-08-11 21:09:09 UTC
Attached you find the ebuild itself and the patch for the API and a dump for creating the tables in the icinga-web Database

feel free to test
Comment 5 Dane Smith (RETIRED) gentoo-dev 2010-08-11 21:17:37 UTC
Hello, The Gentoo Team would like to firstly thank you for your ebuild 
submission. We also apologize for not being able to accommodate you in a timely
manner. There are simply too many new packages.

Allow me to use this opportunity to introduce you to Gentoo Sunrise. The 
sunrise overlay[1] is a overlay for Gentoo which we allow trusted users to 
commit to and all users can have ebuilds reviewed by Gentoo devs for entry 
into the overlay. So, the sunrise team is suggesting that you look into this 
and submit your ebuild to the overlay where even *you* can commit to. =)

Thanks,
On behalf of the Gentoo Sunrise Team,

[1]: http://www.gentoo.org/proj/en/sunrise/
[2]: http://overlays.gentoo.org/proj/sunrise/wiki/SunriseFaq
Comment 6 Mike Becker 2010-10-15 22:15:20 UTC
Created attachment 250761 [details]
icinga-web-1.2.0.ebuild

icinga-web-1.2.0.ebuild
Comment 7 Mike Becker 2010-10-15 22:15:50 UTC
Created attachment 250763 [details, diff]
icinga-enable-api.patch

icinga-enable-api.patch
Comment 8 Mike Becker 2010-10-15 22:16:04 UTC
Created attachment 250765 [details, diff]
icinga-cmd-file.patch

icinga-cmd-file.patch
Comment 9 Mike Becker 2010-10-15 22:17:11 UTC
Created attachment 250767 [details]
icinga-web-9999-r1.ebuild

icinga-web-9999-r1.ebuild (icinga web from git with some changes which will added in the next 1.2.0
Comment 10 Mike Becker 2010-10-25 13:25:30 UTC
Created attachment 251939 [details]
icinga-web-1.2.1.ebuild
Comment 11 Mike Becker 2010-10-25 13:26:51 UTC
version bump and added some fixes / features
Comment 12 Andreas Schürch gentoo-dev 2010-11-02 12:22:44 UTC
php needs to have USE="pdo", at least to work with mysql.

Now i'm stuck with a white page and an error 500:
2010-11-02 14:22:00: (mod_fastcgi.c.2711) FastCGI-stderr: PHP Fatal error:  Exception thrown without a stack frame in Unknown on line 0
Comment 13 Mike Becker 2010-11-02 13:07:52 UTC
Created attachment 252903 [details]
icinga-web-1.2.1-r1.ebuild
Comment 14 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2010-11-02 13:09:29 UTC
(In reply to comment #12)
> php needs to have USE="pdo", at least to work with mysql.
> 
> Now i'm stuck with a white page and an error 500:
> 2010-11-02 14:22:00: (mod_fastcgi.c.2711) FastCGI-stderr: PHP Fatal error: 
> Exception thrown without a stack frame in Unknown on line 0
> 

The new PHP does (5.3)
Comment 15 Mike Becker 2010-11-02 13:13:18 UTC
i modified the depencies now to the requirements of icinga-web 
please test the new ebuild. also try to make a ebuild icinga-web-1.2.1-r1.ebuild install and go to the workdir and make testdeps and paste the output in here

for the error 500 please take a look at the application log ( they're lying under /usr/share/icinga-web/app/data/log)

and feel free to file a bug at dev.icinga.org or drop by at the icinga-users@list.sourceforge.net
Comment 16 Tobias Scherbaum (RETIRED) gentoo-dev 2010-11-02 16:21:45 UTC
(In reply to comment #15)
> for the error 500 please take a look at the application log ( they're lying
> under /usr/share/icinga-web/app/data/log)

There shouldn't be logs placed there, something in /var/log fits much better!
Comment 17 Andreas Schürch gentoo-dev 2010-11-03 06:26:56 UTC
-DEPEND="dev-lany/php[pdo,mysql,xml,session,tokenizer]
+DEPEND="dev-lang/php[pdo,mysql,xml,session,tokenizer]
-	dev-php5/pear
+	dev-php/pear

I needed to give write permissions on the log folder to get rid of the error 500.
The site shows up now, but has a slight problem with css and stuff!
I just added a new alias.url withing lighttpd_icinga.conf like:
"/icinga-web" =>"/usr/share/icinga/icinga-web"
So the URL is now http://servername/icinga-web/pub. Is this how it should be done?
Because the source of the Page shows
<style type="text/css">
	@import url("/icinga-web/js/ext3/resources/css/ext-all-notheme.css");
	@import url("/icinga-web/js/ext3/resources/css/xtheme-gray.css");
	@import url("/icinga-web/js/ext3/examples/ux/css/ux-all.css");
	@import url("/icinga-web/styles/icinga.css");
	@import url("/icinga-web/styles/icinga-icons.css");
	@import url("/icinga-web/styles/statusmap.css");
</style>
And it should rather be /icinga-web/lib/ext3 and /icinga-web/pub/styles.
Comment 18 Thomas Oettli 2010-11-08 12:43:44 UTC
Today, I've tried to install the icinga-web application into my htdocs directory. Unfortunately, webapp-config was not installed on my system, so I think that you should add app-admin/webapp-config to the dependencies.
Comment 19 Thomas Oettli 2010-11-08 13:50:41 UTC
(In reply to comment #18)
> Today, I've tried to install the icinga-web application into my htdocs
> directory. Unfortunately, webapp-config was not installed on my system, so I
> think that you should add app-admin/webapp-config to the dependencies.
> 

Sorry about the last message, just saw that this isn't an ebuild with vhost-support. But it would be nice ;)
Comment 20 Jesse Adelman 2010-11-08 14:08:41 UTC
Should *any* webapp ebuild not be crafted to work with with webapp-config?
Comment 21 Mike Becker 2011-02-16 16:37:42 UTC
Created attachment 262761 [details]
icinga-web-1.3.0.ebuild

icinga-web-1.3.0.ebuild
Comment 22 Mike Becker 2011-02-16 16:39:28 UTC
version bump and fix for the cmd file 
Comment 23 Marian Rudzynski 2011-04-05 16:09:22 UTC
Created attachment 268605 [details]
version bump to 1.3.1
Comment 24 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-04-05 16:14:40 UTC
So what is this ebuild depending on?  I assume bug 271339.  I have yet to receive an answer on what that bug is waiting on though :|
Comment 25 Marian Rudzynski 2011-04-06 06:28:02 UTC
What's holding up your icinga ebuilds you mean? Small stuff, I suppose.

This one however is just absolutely bare-bones. It needs a lot of digging around to get it to work.
Comment 26 Mike Becker 2011-05-11 09:18:10 UTC
Created attachment 272839 [details]
icinga-web-1.4.0.ebuild

Version Bump to 1.4.0
Comment 27 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-08-24 15:22:10 UTC
Created attachment 284483 [details]
icinga-1.5.0.ebuild

removed the logdir sed and added --with-log-dir=/var/log/icinga

Tested amd64
Comment 28 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2011-08-24 15:22:48 UTC
(In reply to comment #27)
> Created attachment 284483 [details]
> icinga-1.5.0.ebuild
> 
> removed the logdir sed and added --with-log-dir=/var/log/icinga
> 
> Tested amd64

Added this to the wrong bug :|
Comment 29 Thomas Oettli 2011-09-07 11:41:00 UTC
Created attachment 285771 [details]
icinga-web-1.5.1.ebuild

Here is the ebuild for the version 1.5.1 of icinga-web.

Unfortunately, there are some bugs in this version, but they are independent of the ebuild.

Have fun!
Comment 30 Thomas Oettli 2011-09-07 11:42:44 UTC
Created attachment 285773 [details, diff]
fix_destinations_in_makefiles-1.5.1.patch

This patch corrects three bugs in the makefiles of icinga-web-1.5.1.

The patch is mandatory to get the ebuild for 1.5.1 to work.
Comment 31 Thomas Oettli 2011-09-19 15:07:40 UTC
Created attachment 287007 [details]
Version bump to version 1.5.2

The fix_destinations_in_makefiles patch was upplied by the icinga developers in upstream.

This is the new ebuild for icinga-web-1.5.2
Comment 32 Thomas Oettli 2012-01-18 14:37:44 UTC
Created attachment 299239 [details]
icinga-web-1.6.1.ebuild

New ebuild for icinga-web-1.6.1

Have fun ;-)
Comment 33 FlaTHunTeR 2012-01-19 08:34:44 UTC
(In reply to comment #32)
> Created attachment 299239 [details]
> icinga-web-1.6.1.ebuild
> 
> New ebuild for icinga-web-1.6.1
> 
> Have fun ;-)

-> grep -A2 "02 Dec 2011;" /usr/portage/net-analyzer/icinga/ChangeLog
  02 Dec 2011; mthode <mthode@gentoo.org> +icinga-1.6.1.ebuild,
  files/icinga-init.d-2, files/icinga-apache.conf:
  moved /var/icinga to /var/lib/icinga; init updated to remove redundant config

maybe a little changes needed here?
-> grep "localstat" icinga-web-1.6.1.ebuild
                  --localstatedir=/var/lib/icinga \
Comment 34 Thomas Oettli 2012-02-24 15:19:40 UTC
Created attachment 303069 [details]
icinga-web-1.6.1-r1.ebuild

Changed the localstatdir in the ebuild.

There is a new useflag called "pnp". If you activate it, the cronk extensions for the PNP integration will be installed.

All the logfiles are now written to /var/log/icinga-web/


Enjoy ;-)
Comment 35 Thomas Oettli 2012-03-08 14:32:52 UTC
Created attachment 304631 [details]
icinga-web-1.6.2.ebuild

Ebuild for icinga-web-1.6.2
Comment 36 Thomas Oettli 2012-07-02 07:40:50 UTC
Created attachment 316951 [details]
icinga-web-1.7.1.ebuild

New ebuild for icinga-web-1.7.1

Works flawlessly in my environment, please test it.
Comment 37 Thomas Oettli 2012-07-02 07:42:59 UTC
Created attachment 316953 [details, diff]
icinga-web-1.7.1-disable-compression.patch

This patch disables the compression of java script files per default.
(According to https://dev.icinga.org/issues/2660)
Comment 38 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2012-07-11 15:58:51 UTC
don't think icinga is required to be installed on the same host, also, forcing apache and mysql may not be best, working on a fix (simply removed the icinga dep though)
Comment 39 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2012-07-11 21:46:44 UTC
I've updated the ebuild and tested it, worksforme.  Could you test from my overlay please before I add it to tree?

layman -a prometheanfire

http://git.overlays.gentoo.org/gitweb/?p=dev/prometheanfire.git;a=tree
Comment 40 Jon Gerdes 2012-07-16 13:55:22 UTC
(In reply to comment #39)
> I've updated the ebuild and tested it, worksforme.  Could you test from my
> overlay please before I add it to tree?
> 
> layman -a prometheanfire
> 
> http://git.overlays.gentoo.org/gitweb/?p=dev/prometheanfire.git;a=tree

worksforme too.  ~amd64.

One small comment, in the output at the end you don't put in any -p to mysql to ask for the password which probably isn't going to stump anyone for too long but is in the Icinga upstream docs (which are badly broken in other ways!)

Nice work - thank you.
Comment 41 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2012-07-16 15:29:02 UTC
added 1.7.1 to tree :D