Re: [Shinken-devel] Design study for Python based plugins published
Status: Beta
Brought to you by:
naparuba
From: nap <nap...@gm...> - 2011-02-03 08:04:56
|
On Wed, Feb 2, 2011 at 6:53 PM, Hartmut Goebel <h.g...@go...>wrote: > Hi, > > Hi, > I wrote a design study for Python based plugins, see > <https://bitbucket.org/htgoebel/shinken-plugins/src>. This is only a > design study for the interface, I do not intent to develop plugins there > :-) > > It differs from what Alberic published, as I use classes (instead of > decorated functions) and a Result() object for returning the data. > > The major benefit for such a result object is that it can be processed > quite easily, ads the dummy example for check_multi shows: Results are > more or less simply added, no need to parse a string. > I love the Result += Thing. It's very easy to use. > > Comments are welcome. > I think there all we need in this lib from now (easy result, perfdata and output). The only think is the Check class : we already have one in the core, but after all it will be on different namespace so it's not so critical. Let open the plugin namespace so, I think it's a good base and it will help :) Jean > > -- > 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 > [...] > > |