Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 504878 - net-analyzer/icinga2-0.0.8 - a network monitoring system and parallel development branch to net-analyzer/icinga-1
Summary: net-analyzer/icinga2-0.0.8 - a network monitoring system and parallel develop...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Matthew Thode ( prometheanfire )
URL: https://www.icinga.org/icinga2/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-17 11:50 UTC by gerion
Modified: 2014-07-17 03:04 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gerion 2014-03-17 11:50:45 UTC
Quite a time ago icinga 2 was published (also icinga-web 2 should be published soon). The core was completely rewritten, so maybe a new slot is meanigful.

Reproducible: Always
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-03-17 15:13:59 UTC
Ya, I've been waiting on it to get into a good enough state first.  Also, for slotting, I'll have to see about it.
Comment 2 Dustin Funk 2014-06-21 01:32:35 UTC
Icinga2 wants to install the Icinga1-Core when the classicui-USE-Flag is set. After emerging classicui is installed only für Icinga1.

Calculating dependencies... done!
[ebuild  N     ] media-libs/libpng-1.6.10:0/16  USE="-apng (-neon) -static-libs" ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ] dev-lang/nasm-2.10.07  USE="-doc" 0 kB
[ebuild  N     ] media-libs/libjpeg-turbo-1.3.1  USE="-java -static-libs" ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ] virtual/jpeg-0-r2  USE="-static-libs" ABI_X86="(64) (-32) (-x32)" 0 kB
[ebuild  N     ] media-libs/gd-2.0.35-r3:2  USE="jpeg png zlib -fontconfig -static-libs -truetype -xpm" 0 kB
[ebuild  N     ] dev-db/libdbi-0.9.0  USE="-doc -static-libs" 0 kB
[ebuild  N     ] dev-db/libdbi-drivers-0.9.0  USE="bindist mysql sqlite -doc (-firebird) -oci8 -postgres -static-libs" 0 kB
[ebuild  N    ~] net-analyzer/icinga-1.11.1  USE="apache2 idoutils mysql plugins ssl vim-syntax web -contrib -eventhandler -lighttpd -perl -postgres" 0 kB
[ebuild   R   ~] net-analyzer/icinga2-2.0.0  USE="apache2 classicui* mysql plugins -postgres" 0 kB
Comment 3 Marcin Mirosław 2014-06-23 09:34:55 UTC
/var/lib/icinga2 has incorrect owner:
cat /var/log/icinga2/icinga2.log 
[2014-06-23 11:27:10 +0200] information/ConfigItem: Activated all objects.
[2014-06-23 11:27:15 +0200] information/NotificationComponent: Sending reminder notification for object 'localhost!http'
[2014-06-23 11:27:15 +0200] information/Notification: Sending notification for user 'icingaadmin'
[2014-06-23 11:27:15 +0200] information/Notification: Completed sending notification for object 'localhost!http'
[2014-06-23 11:32:10 +0200] information/DynamicObject: Dumping program state to file '/var/lib/icinga2/icinga2.state'
[2014-06-23 11:32:10 +0200] critical/ThreadPool: Exception thrown in event handler: 
/var/tmp/portage/net-analyzer/icinga2-2.0.0/work/icinga2-2.0.0/lib/base/dynamicobject.cpp(240): Throw in function static void icinga::DynamicObject::DumpObjects(const icinga::String&, int)
Dynamic exception type: N5boost16exception_detail10clone_implINS0_19error_info_injectorISt13runtime_errorEEEE
std::exception::what: Could not open '/var/lib/icinga2/icinga2.state' file

Owner should be icinga:icinga but is root:root.
Comment 4 Marcin Mirosław 2014-06-23 09:43:52 UTC
Error is here:
        fowners icinga:icinga /var/lib/icinga || die "Failed chown of /var/lib/icinga"
        fowners icinga:icinga /usr/var/lib/icinga2 || die "Failed chown of /usr/var/lib/icinga2"

Why dir /usr/var/lib/icinga2 is created? Imho there shouldn't be created directory /usr/var/...
Comment 5 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2014-07-17 03:04:13 UTC
added 2.0.1 that should fix the /usr/var/ stuff along with the ownership stuff.

as far as installing classicui goes, that's intentional :P

closing this, (since it was just to add the ebuild).  open new bugs if you still have issues.