Oh, it sounds like a nasty bug. Thanks, I'll correct it.
Jean
On Wed, Dec 29, 2010 at 11:23 AM, Klapproth, Martin <
klapprot...@sportresult.com> wrote:
> Version 0.4
>
>
>
> Today I tried to implement a host dependency.
>
>
>
> My config looks like the following:
>
>
>
> define host{
>
> use linux
>
> contact_groups network
>
> check_command check-host-alive
>
> host_name test1
>
> alias test1
>
> address 192.168.102.134
>
> check_interval 1
>
> max_check_attempts 1
>
> notification_interval 120
>
> }
>
>
>
> define host{
>
> use linux
>
> contact_groups network
>
> check_command check-host-alive
>
> host_name test2
>
> alias test2
>
> address 192.168.199.133
>
> check_interval 1
>
> max_check_attempts 1
>
> notification_interval 120
>
> }
>
>
>
> define hostdependency{
>
> host_name test1
>
> dependent_host_name test2
>
> execution_failure_criteria c
>
> notification_failure_criteria c
>
> dependency_period 24x7
>
> }
>
>
>
> I have 2 hosts (test1 and test2) with a dependency between them. Without
> the dependency everything works fine. But with the dependency I got the
> following output while restarting the arbiter:
>
>
>
> Using Pyro 3.11
>
> Shinken 0.4
>
> Copyright (c) 2009-2010 :
>
> Gabes Jean (napar...@gmail.com)
>
> Gerhard Lausser, gerhard.laus...@consol.de
>
> License: AGPL
>
> Shinken 0.4
>
> Copyright (c) 2009-2010 :
>
> Gabes Jean (napar...@gmail.com)
>
> Gerhard Lausser, gerhard.laus...@consol.de
>
> License: AGPL
>
> Loading configuration
>
> Opening configuration file /etc/shinken/nagios.cfg
>
> Processing object config file '/etc/shinken/objects/commands/commands.cfg'
>
> Processing object config file
> '/etc/shinken/objects/contactgroups/contactgroups.cfg'
>
> Processing object config file '/etc/shinken/objects/contacts/contacts.cfg'
>
> Processing object config file
> '/etc/shinken/objects/dependencies/dependencies.cfg'
>
> Processing object config file
> '/etc/shinken/objects/escalations/escalations.cfg'
>
> Processing object config file
> '/etc/shinken/objects/hostgroups/hostgroups.cfg'
>
> Processing object config file '/etc/shinken/objects/hosts/templates.cfg'
>
> Processing object config file '/etc/shinken/objects/hosts/localhost.cfg'
>
> Processing object config file
> '/etc/shinken/objects/servicegroups/servicegroups.cfg'
>
> Processing object config file
> '/etc/shinken/objects/services/linux_disks.cfg'
>
> Processing object config file
> '/etc/shinken/objects/templates/templates.cfg'
>
> Processing object config file
> '/etc/shinken/objects/timeperiods/timeperiods.cfg'
>
> Processing object config file '/etc/shinken/resource.cfg'
>
> Warning : there is no arbiter, I add one in localhost:7770
>
> Hostname:shinken-1-1, gethostname:shinken-1-1
>
> I am the arbiter : Default-Arbiter
>
> Am I the master? True
>
> My own modules :
>
> modulemanager file
> /usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/shinken/modulesmanager.pyc
>
> modulemanager absolute file
> /usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/shinken/modulesmanager.pyc
>
> Using modules path :
> /usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/shinken/modules
>
> Detected module : Dummy module for Arbiter
>
> Detected module : NSCA module for Arbiter
>
> Detected module : GLPI importer for Arbiter
>
> Load 0 module instances
>
> Traceback (most recent call last):
>
> File "/usr/bin/shinken-arbiter", line 5, in <module>
>
> pkg_resources.run_script('Shinken==0.4', 'shinken-arbiter')
>
> File
> "/usr/lib64/python2.6/site-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py",
> line 467, in run_script
>
> self.require(requires)[0].run_script(script_name, ns)
>
> File
> "/usr/lib64/python2.6/site-packages/distribute-0.6.14-py2.6.egg/pkg_resources.py",
> line 1200, in run_script
>
> execfile(script_filename, namespace, namespace)
>
> File
> "/usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/EGG-INFO/scripts/shinken-arbiter",
> line 824, in <module>
>
> p.main()
>
> File
> "/usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/EGG-INFO/scripts/shinken-arbiter",
> line 392, in main
>
> self.conf.explode()
>
> File
> "/usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/shinken/config.py",
> line 1183, in explode
>
> self.hosts.explode(self.hostgroups, self.contactgroups)
>
> File
> "/usr/lib64/python2.6/site-packages/Shinken-0.4-py2.6.egg/shinken/host.py",
> line 898, in explode
>
> hname = h.host_name
>
> AttributeError: host_name
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment,
> and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Shinken-devel mailing list
> Shinken-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/shinken-devel
>
>
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel