Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 157800 - net-analyzer/zenoss-core: IT management platform based on Zope
Summary: net-analyzer/zenoss-core: IT management platform based on Zope
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://www.zenoss.com/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-12-10 23:11 UTC by mikael lammentausta
Modified: 2016-10-12 00:13 UTC (History)
6 users (show)

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


Attachments
net-analyzer/zenoss/zenoss-1.0.1.ebuild (zenoss-1.0.1.ebuild,6.66 KB, text/plain)
2006-12-10 23:12 UTC, mikael lammentausta
Details
dev-python/yapps/yapps-2.1.1.ebuild (yapps-2.1.1.ebuild,681 bytes, text/plain)
2006-12-14 01:52 UTC, mikael lammentausta
Details
dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild (twistedsnmp-0.3.13.ebuild,1013 bytes, text/plain)
2006-12-14 01:56 UTC, mikael lammentausta
Details
dev-python/simplejson/simplejson-1.4.ebuild (simplejson-1.4.ebuild,536 bytes, text/plain)
2006-12-14 01:56 UTC, mikael lammentausta
Details
dev-python/pysnmp/pysnmp-3.4.3.ebuild (pysnmp-3.4.3.ebuild,742 bytes, text/plain)
2006-12-14 01:57 UTC, mikael lammentausta
Details
dev-python/mysql-python/mysql-python-1.2.0-r1.ebuild (mysql-python-1.2.0-r1.ebuild,894 bytes, text/plain)
2006-12-14 01:57 UTC, mikael lammentausta
Details
dev-python path for overlay (contains the patches) (dev-python-overlay.tar.bz2,12.70 KB, application/octet-stream)
2006-12-14 02:00 UTC, mikael lammentausta
Details
net-analyzer/zenoss/zenoss-1.0.2.ebuild (zenoss-1.0.2.ebuild,9.88 KB, text/plain)
2006-12-14 08:13 UTC, mikael lammentausta
Details
net-analyzer/zenoss/files/mysql-setup.sql (mysql-setup.sql,452 bytes, patch)
2006-12-14 08:14 UTC, mikael lammentausta
Details | Diff
net-analyzer/zenoss/files/GNUmakefile.patch (GNUmakefile.patch,582 bytes, patch)
2006-12-14 08:15 UTC, mikael lammentausta
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mikael lammentausta 2006-12-10 23:11:59 UTC
Zenoss is a net-analyzer similar to Nagios, but it is running on Zope.
I wrote an ebuild, but this one is for testing only. I may have jumped the gun here, but I have successfully emerged this one. :) The primary reason for posting such a immature ebuild is to make it available for other developers who are interested in getting Zenoss to work on their Gentoo.

Zenoss has its quirks, and the package (37 MB) comes with all the dependencies except for mysql. It seems some of them have Zenoss-specific patches. Three dependencies are not satisfied, even. (simplejson-1.4, twistedsnmp-0.3.13, yapps-2.1.1). This one ignores these. 

I built an option to build the prebundled dependencies, or to use system-deps. I've no idea yet how this works. There also is an option to build Zenoss itself from SVN (it was introduced in the Makefile). 

This is my second ebuild, and this was quite a challenge. I hope it will be useful! :)
Comment 1 mikael lammentausta 2006-12-10 23:12:41 UTC
Created attachment 103780 [details]
net-analyzer/zenoss/zenoss-1.0.1.ebuild
Comment 2 mikael lammentausta 2006-12-10 23:36:26 UTC
Simplejson can be found in the liquidx overlay. Also from http://bugs.gentoo.org/show_bug.cgi?id=129346
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-12-11 01:44:55 UTC
OK, a couple of notes:

- The dependency syntax is invalid (needs to be full atoms, including category)
- we have dodir, no need to use mkdir
- enewuser already created homedir, no need to create it manually
- do not install anything in pkg_setup
- do NOT shut down any services in pkg_setup (!!!)
- src_unpack is redundant
- epatch belong to src_unpack, not src_compile
- that src_compile stuff does a _nasty_ stuff that will bomb out with sandbox big time
- drop svn use flag; it's not acceptable to use live svn sources with a regular ebuild (would need a separate ebuild using subversion eclass, that wouldn't be included in the tree anyway)
- bundled stuff sucks, the ebuild should use dependencies already in the tree
- _never_ install anything into /usr/local
- interactive stuff and belong to pkg_config
- never ever start/stop services from within ebuild
- use elog, not einfo for anything that's not just a temporary info related to compile
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-12-11 01:50:19 UTC
Comment on attachment 103780 [details]
net-analyzer/zenoss/zenoss-1.0.1.ebuild

A couple of links that you could help you write better ebuilds:

http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
http://devmanual.gentoo.org/

Marking this as obsolete, it can't be included in the tree as it is...
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-12-11 01:52:37 UTC
Some more random notes

- DESCRIPTION cannot be empty
- HOMEPAGE cannot be empty
- the usage of USE=doc is invalid; docs should always be installed when they are already included in the tarball, unless they require major dependencies to build them or additional huge download
Comment 6 mikael lammentausta 2006-12-11 05:02:21 UTC
Ok, thanks for the remarks. I'll go and fix the ebuild. :)
Comment 7 mikael lammentausta 2006-12-11 22:58:43 UTC
I need a bit of advice here.

Zenoss needs patched versions of some packages. The patches are provided, and I can create ebuilds for them. Would it be good practise to write in a USE flag "zenoss-patches" for these dependencies?

It seems that Zenoss also modifies some core Zope libraries. Since it is possible that another Zope is running on the same box than Zenoss, would it be preferred if the Zenoss-Zope is installed into /usr/zenoss/?
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 02:41:40 UTC
CCing zope folks, I can't help you with this.
Comment 9 mikael lammentausta 2006-12-14 01:52:01 UTC
Created attachment 104012 [details]
dev-python/yapps/yapps-2.1.1.ebuild

Here are ebuilds for the dependencies (with patches) that are not in portage. I found several of them from various overlays, but bumped the version up and hacked in the patches. I defined the USE flag 'zenoss-patches'.

ATM these patched versions are hard-coded to specific versions, which may cause conflicts. At the moment 2/3 of them are the latest versions.
Comment 10 mikael lammentausta 2006-12-14 01:56:21 UTC
Created attachment 104013 [details]
dev-python/twistedsnmp/twistedsnmp-0.3.13.ebuild
Comment 11 mikael lammentausta 2006-12-14 01:56:42 UTC
Created attachment 104014 [details]
dev-python/simplejson/simplejson-1.4.ebuild
Comment 12 mikael lammentausta 2006-12-14 01:57:01 UTC
Created attachment 104015 [details]
dev-python/pysnmp/pysnmp-3.4.3.ebuild
Comment 13 mikael lammentausta 2006-12-14 01:57:20 UTC
Created attachment 104016 [details]
dev-python/mysql-python/mysql-python-1.2.0-r1.ebuild
Comment 14 mikael lammentausta 2006-12-14 02:00:26 UTC
Created attachment 104017 [details]
dev-python path for overlay (contains the patches)

The ebuilds are for checking, this tarbz2 is the patched dev-python tree for the experimentalists who'd like to try to emerge zenoss. I'll post the Zenoss ebuild after a bit of more work on it.
Comment 15 mikael lammentausta 2006-12-14 08:13:03 UTC
Created attachment 104046 [details]
net-analyzer/zenoss/zenoss-1.0.2.ebuild

I hope this ain't so broken as it the previous version was. :)
A new Zope instance is created to /usr/zenoss, and the Zenoss Products copied over there. I haven't yet have managed to get into the Zope manage screen (somehow my other Zope instances - that are not running - interfere).
Comment 16 mikael lammentausta 2006-12-14 08:14:40 UTC
Created attachment 104048 [details, diff]
net-analyzer/zenoss/files/mysql-setup.sql

Here is the mysql script that *should* insert the database 'events' and set the user permissions properly. I used phpmyadmin as a reference. This does not give errors, but it seems that nothing is created into mysql.
Comment 17 mikael lammentausta 2006-12-14 08:15:54 UTC
Created attachment 104049 [details, diff]
net-analyzer/zenoss/files/GNUmakefile.patch

This is only needed if you run +prebundled. This enables logging to stdout.
Comment 18 Jesse Adelman 2007-03-26 16:54:54 UTC
This app is featured on the Slashdot frontpage today, fyi. http://it.slashdot.org/article.pl?sid=07/03/26/1058228&from=rss
Comment 19 Kalin KOZHUHAROV 2007-03-30 09:36:00 UTC
WOW,

I was impressed with zenoss, after I was impressed with cacti!

Does anybody have an overlay with all the above patches?

If not, I'll make an effort next week to gather them in my own overlay (unofficial) and post here back.
Comment 20 Yohan 2007-06-04 00:54:24 UTC
I've installed the source version from zenoss. I would suggest to use their step's and only add gentoo path (/usr/lib/python2.4) instead of ($ZENHOME/lib/python). Total directory size after installed is about 168M. 

My Install :-
 useradd -m zenoss
 mkdir /opt/zenoss && chown zenoss:\ /opt/zenoss
 export ZENHOME=/opt/zenoss             # added to user zenoss ~/.bashrc
 export PYTHONPATH=/usr/lib/python2.4   # added to user zenoss ~/.bashrc
 export PATH=$ZENHOME/bin:$PATH         # added to user zenoss ~/.bashrc

I untar the source and ran the install.sh script as user zenoss.

Can we do this instead ?? It looks more similar like using Binary Apps.
Comment 21 Marek Szuba archtester gentoo-dev 2016-09-05 12:20:03 UTC
Upstream is still very much alive (with the free version of Zenoss now called Zenoss Core), so alive in fact that it is now four major versions ahead of what has been posted here. Is there still user demand for having it added to Portage? If so, the usual appeal:

While this is still a viable package for the Gentoo Portage tree it appears this ebuild is lacking in community interest. If you (or another user) are still wanting this to make it into the Portage tree please let us know! It would be additionally helpful (but not required) if you were willing to help out with the package by becoming it's proxied maintainer; you have already done most of the work for this task. Gentoo even has a dedicated team[1] for assisting users in becoming proxied maintainers. If you are interested in maintaining this package, please contact proxy-maint@gentoo.org or join #gentoo-proxy-maint on Freenode IRC.

If this bug remains silent without further comments for 30 days i will close it with the resolution of WONTFIX. Beyond that the bug can always be reopened to get this package back on track for the Gentoo Portage tree.

[1]: https://wiki.gentoo.org/index.php?title=Project:Proxy_Maintainers

Kind regards,
Marecki