[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a
Gerhard Lausser
gerhard.lausser at consol.de
Tue Feb 28 22:21:55 UTC 2012
The following commit has been merged in the debian/master branch:
commit f01fb826e385abc35b83fffa9b704ed7e063bcef
Author: Gerhard Lausser <gerhard.lausser at consol.de>
Date: Sun Feb 19 16:54:46 2012 +0100
Add modified_attributes property also to host&contact
diff --git a/shinken/objects/contact.py b/shinken/objects/contact.py
index 0e0bc64..9902360 100644
--- a/shinken/objects/contact.py
+++ b/shinken/objects/contact.py
@@ -74,6 +74,7 @@ class Contact(Item):
running_properties = Item.running_properties.copy()
running_properties.update({
+ 'modified_attributes': IntegerProp(default=0L, fill_brok=['full_status'], retention=True),
'downtimes': StringProp(default=[], fill_brok=['full_status'], retention=True),
})
diff --git a/shinken/objects/host.py b/shinken/objects/host.py
index c1313db..5e19b6b 100644
--- a/shinken/objects/host.py
+++ b/shinken/objects/host.py
@@ -132,6 +132,7 @@ class Host(SchedulingItem):
# retention : save/load this property from retention
running_properties = SchedulingItem.running_properties.copy()
running_properties.update({
+ 'modified_attributes': IntegerProp(default=0L, fill_brok=['full_status'], retention=True),
'last_chk': IntegerProp(default=0, fill_brok=['full_status', 'check_result'], retention=True),
'next_chk': IntegerProp(default=0, fill_brok=['full_status', 'next_schedule'], retention=True),
'in_checking': BoolProp(default=False, fill_brok=['full_status', 'check_result', 'next_schedule']),
diff --git a/shinken/objects/service.py b/shinken/objects/service.py
index d38744b..bfe8fc3 100644
--- a/shinken/objects/service.py
+++ b/shinken/objects/service.py
@@ -129,7 +129,7 @@ class Service(SchedulingItem):
# properties used in the running state
running_properties = SchedulingItem.running_properties.copy()
running_properties.update({
- 'modified_attributes': IntegerProp(default=0L, fill_brok=['full_status'], retention=True),
+ 'modified_attributes': IntegerProp(default=0L, fill_brok=['full_status'], retention=True),
'last_chk': IntegerProp(default=0, fill_brok=['full_status', 'check_result'], retention=True),
'next_chk': IntegerProp(default=0, fill_brok=['full_status', 'next_schedule'], retention=True),
'in_checking': BoolProp (default=False, fill_brok=['full_status', 'check_result', 'next_schedule'], retention=True),
--
UNNAMED PROJECT
More information about the Pkg-nagios-changes
mailing list