Shinken通过pip
安装virtualenv
:
sudo /opt/shinken/bin/pip install -e git+https://github.com/naparuba/shinken.git#egg=shinken
一切顺利,直到最后一步:
sudo /opt/shinken/bin/shinken-arbiter -d -c /opt/shinken/etc/nagios.cfg -c /opt/shinken/etc/shinken-specific.cfg
[1385534688] Critical : I got an unrecoverable error. I have to exit
[1385534688] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
[1385534688] Critical : Exception trace follows: Traceback (most recent call last):
File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 563, in main
self.load_config_file()
File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 467, in load_config_file
self.http_backend = self.conf.http_backend
AttributeError: 'Config' object has no attribute 'http_backend'
Traceback (most recent call last):
File "/opt/shinken/bin/shinken-arbiter", line 8, in <module>
execfile(__file__)
File "/opt/shinken/src/shinken/bin/shinken-arbiter", line 118, in <module>
daemon.main()
File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 563, in main
self.load_config_file()
File "/opt/shinken/src/shinken/shinken/daemons/arbiterdaemon.py", line 467, in load_config_file
self.http_backend = self.conf.http_backend
AttributeError: 'Config' object has no attribute 'http_backend'
arbiterdaemon.py
:https://github.com/naparuba/shinken/blob/master/shinken/daemons/arbiterdaemon.py
答案 0 :(得分:0)
似乎主分支中缺少http_backend
属性。我试图重新安装分支1.4,现在它正常工作:
sudo /opt/shinken/bin/pip install -e git+https://github.com/naparuba/shinken.git@branch-1.4#egg=shinken