I forgot... Would it be an option to put the Arbiter, IArbiters classes in shinken-arbiter.py and just the __main__ part in shinken-arbiter?
Gerhard > -----Ursprüngliche Nachricht----- > Von: Gerhard Lausser [mailto:gerhard.laus...@consol.de] > Gesendet: Dienstag, 1. Februar 2011 15:02 > An: shinken-devel@lists.sourceforge.net > Betreff: Re: [Shinken-devel] Design for python-based checks > > Hi, > > > > don't like with nagios perfdata checks syntax is that the plugin > > checks have to return the min/max perfdata value thresholds in the > > output.. I find it's not needed and > they don't have to. But if they do, it's great help for tools > like pnp to scale the y-axis properly. > > > > > missed somethings.. So do not hesitate to review some of > > these changes and spit on it ;) > > *spit* :-) > when you checkout the code on a windows machine, you get: > > > PS D:\shinken\bin> dir shinken-ar* > > > Directory: D:\shinken\bin > > > Mode LastWriteTime Length Name > ---- ------------- ------ ---- > -a--- 2/1/2011 2:39 PM 29070 shinken-arbiter > -a--- 2/1/2011 2:39 PM 15 shinken-arbiter.py > -a--- 2/1/2011 2:39 PM 144 shinken-arbiter.pyc > > > PS D:\shinken\bin> type shinken-arbiter.py shinken-arbiter PS > D:\shinken\bin> > > That's why the tests fail on Windows, > __import__(shinken-arbiter) reads the correct file, but as > it's no symlink here, but just a text reference to the target > file, it fails. > > Gerhard > > -------------------------------------------------------------- > ---------------- > 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 > ------------------------------------------------------------------------------ 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