Hi,
I solve it, but Linux packagers won't be happy : the "module" under windows
that is look for the Manager() should got the .py extention! So I must
rename all bin/shinken-* into .py :(
I try with a 2.6, and it seems that with a 2.7 it's the same problem.
Thanks for the bug report, the code is available in the git :)
Jean
On Thu, Nov 18, 2010 at 1:40 PM, nap <napar...@gmail.com> wrote:
> Hi,
>
>
> On Thu, Nov 18, 2010 at 12:43 PM, Петров Иван <q...@tut.by> wrote:
>
>> Hi. I Just found out about shinken and tried to run it under Windows XP.
>> Got the latest revision from git. Edited the reg files for the services to
>> be like this:
>>
>>
>> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Shinken-Arbiter\Parameters]
>> "Application"="e:\\Python27\\python.exe"
>> "AppDirectory"="c:\\shinken"
>> "AppParameters"="c:\\shinken\\bin\\shinken-arbiter -c
>> c:\\shinken\\etc\\nagios-windows.cfg"
>>
>> When I start the services, I get 5 srvany processes but only 3 python
>> processes. Looks like poller and reactionner are missing. Trying to run
>> poller manually with "python c:\shinken\bin\shinken-poller -c
>> c:\shinken\etc\pollerd-windows.ini", I get
>>
>> License: AGPL
>> Sorry, you can't change user on this system
>> Traceback (most recent call last):
>> File "<string>", line 1, in <module>
>> File "E:\Python27\lib\multiprocessing\forking.py", line 346, in main
>> prepare(preparation_data)
>> File "E:\Python27\lib\multiprocessing\forking.py", line 455, in prepare
>> file, path_name, etc = imp.find_module(main_name, dirs)
>> ImportError: No module named shinken-poller
>> Traceback (most recent call last):
>> File "c:\shinken\bin\shinken-poller", line 156, in <module>
>> p = Poller(config_file, is_daemon, do_replace, debug, debug_file)
>> File "c:\shinken\shinken\satellite.py", line 257, in __init__
>> self.manager = Manager()
>> File "E:\Python27\lib\multiprocessing\__init__.py", line 98, in Manager
>> m.start()
>> File "E:\Python27\lib\multiprocessing\managers.py", line 502, in start
>> self._address = reader.recv()
>> EOFError
>>
> Outch. It seems that the Manager() call is raising an errror. It's not
> good, it's a standard function. I try to look why it failed here.
> Thanks for this bug report.
>
> This show me that we do not have automatic tests on a Windows box, we
> should add it so such a regression will not occur anymore :)
>
>
>>
>> The contents of pollerd-windows.ini is
>>
>> [daemon]
>> workdir=c:\shinken/var
>> pidfile=%(workdir)s/pollerd.pid
>> interval_poll=5
>> maxfd=1024
>> port=7771
>> host=0.0.0.0
>> user=shinken
>> group=shinken
>> idontcareaboutsecurity=no
>>
>> Same error with reactionner.
>> Am I missing something or is Windows support broken?
>>
> The conf is good. It's a regression bug. Let's hunt it :)
>
>
> Jean
>
>
>>
>> Thanks,
>> QuickeneR
>>
>>
>> ------------------------------------------------------------------------------
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today
>> http://p.sf.net/sfu/msIE9-sfdev2dev
>> _______________________________________________
>> Shinken-devel mailing list
>> Shinken-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>>
>>
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel