naparuba/shinken — Issue #28: the host dependency miss a property ''Hostdependency' object has no attribute 'host_name''
Author: Frescha
Created: 2011-10-30 16:09:08+00:00
State: open
Labels: Arbiter

There are no host_name defined in hostdependency but a dependent_hostgroup_name. The same config verifies in nagios

---

Error : the host dependency miss a property Hostdependency' object has no attribute 'host_name
CRITICAL ERROR : I got an non recovarable error. I must exit
You can log a bug ticket at https://sourceforge.net/apps/trac/shinken/newticket for geting help
Back trace of it: Traceback (most recent call last):

File "/usr/lib/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 411, in main

self.load_config_file()

File "/usr/lib/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 354, in load_config_file

self.conf.is_correct()

File "/usr/lib/python2.6/site-packages/shinken/objects/config.py", line 1232, in is_correct

if not cur.is_correct():

File "/usr/lib/python2.6/site-packages/shinken/objects/item.py", line 644, in is_correct

if not i.is_correct():

File "/usr/lib/python2.6/site-packages/shinken/objects/item.py", line 294, in is_correct

print self.get_name(), "missing property :", prop

File "/usr/lib/python2.6/site-packages/shinken/objects/hostdependency.py", line 56, in get_name

return self.dependent_host_name+'/'+self.host_name

AttributeError?: 'Hostdependency' object has no attribute 'host_name'