def __init__(self, **data): """ constructor of the object """ LogicalDevice.__init__(self, **data) refAttributeNames = getRefAttributeNames(Host) # initialize OS List self.osList = [] self.eventInpObjs_shutdown = set([]) for (name, value) in data.items(): if name in IHost.names() or \ name in IEventIfEventHost.names(): if name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__ self.workflows[WfPdNagios.id] = nagios_wf = WfPdNagios() setattr(nagios_wf.workflowRelevantData, "ddd", 5) setattr(nagios_wf.workflowRelevantData, "state", "-") setattr(nagios_wf.workflowRelevantData, "object", self) setattr(nagios_wf.workflowRelevantData, "new_state", "2_start") nagios_wf.start() #health self._counter = {'r': 500} self._health = 1.0 self._weight = {'r': 1.0} self._weight_user = 0.5
def __init__(self, **data): """ constructor of the object """ Device.__init__(self, **data) refAttributeNames = getRefAttributeNames(Printer) for (name, value) in data.items(): if name in IPrinter.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ ContactItem.__init__(self, **data) refAttributeNames = getRefAttributeNames(OrganisationalUnit) for (name, value) in data.items(): if name in IOrganisationalUnit.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Component.__init__(self, **data) refAttributeNames = getRefAttributeNames(Location) for (name, value) in data.items(): if name in ILocation.names(): if name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Supernode.__init__(self, **data) refAttributeNames = getRefAttributeNames(Category) for (name, value) in data.items(): if name in ICategory.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Credential.__init__(self, **data) refAttributeNames = getRefAttributeNames(X509Certificate) for (name, value) in data.items(): if name in IX509Certificate.names(): if name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ PhysicalComponent.__init__(self, **data) refAttributeNames = getRefAttributeNames(Device) for (name, value) in data.items(): if name in IDevice.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Component.__init__(self, **data) refAttributeNames = getRefAttributeNames(IpNet) for (name, value) in data.items(): if name in IIpNet.names(): if name not in refAttributeNames: setattr(self, name, value) self.eventInpObjs_inward_relaying_shutdown = set([]) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Component.__init__(self, **data) refAttributeNames = getRefAttributeNames(SnmpValue) for (name, value) in data.items(): if name in ISnmpValue.names(): if name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__ self.snmpIndexDict = None self.snmpIndexDictTimeStamp = 0.0
def __init__(self, **data): """ constructor of the object """ Component.__init__(self, **data) refAttributeNames = getRefAttributeNames(Service) self.product = u"" self.ipprotocol = None for (name, value) in data.items(): if name in IService.names(): if name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ Component.__init__(self, **data) refAttributeNames = getRefAttributeNames(InternalAttachment) filedata = data.pop('data') for (name, value) in data.items(): if name in IInternalAttachment.names() and \ name not in refAttributeNames: setattr(self, name, value) file = File(filedata, data['contentType']) setattr(self, 'file', file) self.ikRevision = __version__
def __init__(self, **data): """ constructor of the object """ PhysicalComponent.__init__(self, **data) refAttributeNames = getRefAttributeNames(Device) for (name, value) in data.items(): if name in IDevice.names() and \ name not in refAttributeNames: setattr(self, name, value) self.ikRevision = __version__ self.workflows[WfPdNagios.id] = nagios_wf = WfPdNagios() setattr(nagios_wf.workflowRelevantData, "state", "-") setattr(nagios_wf.workflowRelevantData, "object", self) setattr(nagios_wf.workflowRelevantData, "new_state", "2_start") nagios_wf.start()
def getRefAttributeNames(self): return getRefAttributeNames(Location)
def getRefAttributeNames(self): return getRefAttributeNames(SoftwareComponent)
def getRefAttributeNames(self): return getRefAttributeNames(Credential)
def getRefAttributeNames(self): return getRefAttributeNames(PersonalComputer)
def getRefAttributeNames(self): return getRefAttributeNames(Product)
def getRefAttributeNames(self): return getRefAttributeNames(LogicalDevice)
def getRefAttributeNames(self): return getRefAttributeNames(Device)
def getRefAttributeNames(self): return getRefAttributeNames(IpAddress)
def getRefAttributeNames(self): return getRefAttributeNames(OrganisationalUnit)
def getRefAttributeNames(self): return getRefAttributeNames(Reminder)
def getRefAttributeNames(self): return getRefAttributeNames(Interface)
def getRefAttributeNames(self): return getRefAttributeNames(Host)
def getRefAttributeNames(self): return getRefAttributeNames(Latency)
def getRefAttributeNames(self): return getRefAttributeNames(ISDNPhone)
def getRefAttributeNames(self): return getRefAttributeNames(X509Certificate)
def getRefAttributeNames(self): return getRefAttributeNames(DisplayUnit)
def getRefAttributeNames(self): return getRefAttributeNames(Printer)
def getRefAttributeNames(self): return getRefAttributeNames(PhysicalMedia)