Am 02.02.2011 12:13, schrieb Grégory Starck: > "only" move the class(es) from the bin/shinken-* to module files > under shinken/ ; I'd create arbiterdaemon.py + brokerdaemon.py + > pollerdaemon.py + reactionnerdaemon.py + schedulerdaemon.py thus.. > > so that all the bin/shinken-* have the very minimum code (just the > "try import shinken.Xdaemon" + adapt sys.path if needed and then > instanciate the good class and .main() on it.. > > no more no less. I propose going a little bit further and sorting the modules into subpackages. Something like
shinken/core/... shinken/arbiter/... This structure would help developers to understand the code better. And if necessary for somebody, he could build deployment packages containing only the parts required (e.g. the poller). Taking this one step further, the "shinken" package could become a namespace package (see <http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages>). So the Plugin-stuff, I'm working on could go into a namespaced package shinken.plugins.core and plugin implementations into packages like shinken.plugins.check_fs_ping. (Just an idea yet. I'm not going to implementent this now.) -- Schönen Gruß - Regards Hartmut Goebel Dipl.-Informatiker (univ.), CISSP, CSSLP Goebel Consult Spezialist für IT-Sicherheit in komplexen Umgebungen http://www.goebel-consult.de Monatliche Kolumne: http://www.cissp-gefluester.de/ Goebel Consult mit Mitglied bei http://www.7-it.de
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel