Am 31.01.2011 23:20, schrieb Gerhard Lausser:
> a single format for both python-based checks and traditional plugins
> requires converting the output and exitcode of the latter. This probably
> adds a lot more cycles.
While you are right here at the moment, this may change over time.

The current interface is simple but non performing. While the check
builds a string, some backend tools needs to parse it again. If shinken
get more mature, there may be more backend-tools being able to handle
Python objects and gain performance.

BTW: IMHO it does not matter if the check converts some intelligent data
type into a string or shinken core does in the backend. Well,
tranporting the string via network *may* be a bit faster.
> In order to be usable with Nagios there must be something like
> if __name__ == '__main__':
>     # runs as standalone python program
>     plugin = Class...
>     print plugin.output + '|' + plugin.perfdata
>     exit plugin.exitcode
>  
> so the file can be "imported" and cached by a Shinken poller and executed by
> a Nagios. (similar to ePN)
I missed describing this. This is exactly, what the test()-Method is
meant for.
>> * The performance data will be a dict. Keys are strings, values are
>>   either integer, float or string (percent), or a list/tuple thereof.
> What about min/max/thresholds?
I thought, simple lists of values are enough. Am I missing something?

-- 
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


Attachment: 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

Reply via email to