Package ZenModel :: Module IpService :: Class IpService
[hide private]
[frames] | no frames]

Class IpService

source code

                                                       object --+                
                                                                |                
                                                Lockable.Lockable --+            
                                                                    |            
                                      DeviceComponent.DeviceComponent --+        
                                                                        |        
                                                   object --+           |        
                                                            |           |        
                                    ZenModelBase.ZenModelBase --+       |        
                                                                |       |        
Products.ZenRelations.RelationshipManager.RelationshipManager --+       |        
                                                                |       |        
                                      ExtensionClass.Base --+   |       |        
                                                            |   |       |        
                                       OFS.History.Historical --+       |        
                                                                |       |        
                                                   object --+   |       |        
                                                            |   |       |        
                                          ZenPacker.ZenPacker --+       |        
                                                                |       |        
                                            ZenModelRM.ZenModelRM --+   |        
                                                                    |   |        
                                  DeviceResultInt.DeviceResultInt --+   |        
                                                                    |   |        
                                                       object --+   |   |        
                                                                |   |   |        
                                              EventView.EventView --+   |        
                                                                    |   |        
                                                       object --+   |   |        
                                                                |   |   |        
                                                  RRDView.RRDView --+   |        
                                                                    |   |        
                                          ManagedEntity.ManagedEntity --+        
                                                                        |        
                                                  OSComponent.OSComponent --+    
                                                                            |    
                                                  Commandable.Commandable --+    
                                                                            |    
                                                               object --+   |    
                                                                        |   |    
                                                  ZenPackable.ZenPackable --+    
                                                                            |    
                                                              Service.Service --+
                                                                                |
                                                                               IpService

IpService object

Instance Methods [hide private]
 
monitored(self)
Return monitored state of ipservice.
source code
 
cantMonitor(self)
Return true if IpService only listens on 127.0.0.1, or if it is a UDP service.
source code
 
getInstDescription(self)
Return some text that describes this component.
source code
 
setServiceClass(self, kwargs)
Set the service class based on a dict describing the service.
source code
 
getSendString(self) source code
 
getExpectRegex(self) source code
 
getServiceClass(self)
Return a dict like one set by IpServiceMap for services.
source code
 
primarySortKey(self)
Hook for the value used to sort this object.
source code
 
getManageIp(self)
Return the manageIP of the device of this component.
source code
 
getProtocol(self) source code
 
getPort(self) source code
 
getKeyword(self) source code
 
getDescription(self) source code
 
ipServiceClassUrl(self) source code
 
manage_editService(self, id=None, status=None, ipaddresses=None, protocol=None, port=None, description=None, monitor=False, severity=5, sendString="", expectRegex="", REQUEST=None)
Edit a Service from a web page.
source code

Inherited from Service.Service: getAqChainForUserCommands, getClassObject, getFailSeverity, getFailSeverityString, getServiceClassLink, getSeverities, getUrlForUserCommands, getUserCommandEnvironment, getUserCommandTargets, key, name

Inherited from OSComponent.OSComponent: device, getIconPath, getPrettyLink, isUserCreated, manage_deleteComponent, manage_updateComponent, setUserCreateFlag

Inherited from DeviceComponent.DeviceComponent: filterAutomaticCreation, getAqProperty, getCollectors, getNagiosTemplate, getParentDeviceName, getParentDeviceUrl, getRRDContextData, getStatus, getStatusString, hostname, manage_afterAdd, manage_afterClone, manage_beforeDelete, setAqProperty

Inherited from Lockable.Lockable: getNextLockableParent, isLockedFromDeletion, isLockedFromUpdates, isUnlocked, lockFromDeletion, lockFromUpdates, lockStatus, lockWarning, sendEventWhenBlocked, setSendEventWhenBlockedFlag, unlock, unsetSendEventWhenBlockedFlag

Inherited from ZenModelRM.ZenModelRM: __init__, changePythonClass, creator, editableDeviceList, findChild, getCreatedTimeString, getDmdKey, getModificationTimeString, getSubObjects, getTreeItems, getZenRootNode, index_object, reindex_all, rename, unindex_object, viewName, zmanage_addProperty, zmanage_delObjects, zmanage_delProperties, zmanage_editProperties, zmanage_exportObject, zmanage_importObject, zmanage_importObjects

Inherited from ZenModelBase.ZenModelBase: __call__, __hash__, all_meta_types, aqBaseHasAttr, breadCrumbs, callZenScreen, checkRemotePerm, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getBreadCrumbUrlPath, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getUnusedId, getZ, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, urlLink, view, visibleCustPropertyMap, yesterdayDate, zenScreenUrl, zenpathjoin, zenpathsplit, zentinelTabs

Inherited from OFS.History.Historical: manage_afterHistoryCopy, manage_beforeHistoryCopy, manage_change_history, manage_historicalComparison, manage_historyCompare, manage_historyCopy

Inherited from ZenPacker.ZenPacker: addToZenPack, eligiblePacks, findObject

Inherited from DeviceResultInt.DeviceResultInt: getDeviceClassName, getDeviceClassPath, getDeviceIp, getDeviceIpAddress, getDeviceLink, getDeviceMacaddress, getDeviceName, getDeviceUrl, getPingStatus, getPingStatusNumber, getProdState, getSnmpStatus, getSnmpStatusNumber, isResultLockedFromDeletion, isResultLockedFromUpdates, sendEventWhenResultBlocked

Inherited from EventView.EventView: convertEventField, getEventDetail, getEventDetailFromStatusOrHistory, getEventHistory, getEventManager, getEventOwnerList, getEventSummary, getStatusCssClass, getStatusImgSrc, manage_ackBatchEvents, manage_ackEvents, manage_addLogMessage, manage_createEventMap, manage_deleteBatchEvents, manage_deleteEvents, manage_deleteHeartbeat, manage_setEventStates, manage_undeleteBatchEvents, manage_undeleteEvents

Inherited from RRDView.RRDView: cacheRRDValue, fetchRRDValue, fetchRRDValues, fullRRDPath, getDefaultGraphDefs, getGraphDef, getGraphDefUrl, getRRDDataPoint, getRRDDataPoints, getRRDFileName, getRRDNames, getRRDPaths, getRRDSum, getRRDTemplate, getRRDTemplateByName, getRRDTemplateName, getRRDTemplates, getRRDValue, getRRDValues, getThresholdInstances, getThresholds, makeLocalRRDTemplate, removeLocalRRDTemplate, rrdPath, snmpIgnore

Inherited from Commandable.Commandable: compile, doCommandForTarget, getUserCommand, getUserCommandIds, getUserCommands, manage_addUserCommand, manage_deleteUserCommand, manage_doUserCommand, manage_editUserCommand, redirectToUserCommands, write

Inherited from object: __delattr__, __getattribute__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  __pychecker__ = 'no-override'
  meta_type = 'IpService'
  portal_type = 'IpService'
  protocols = 'tcp', 'udp'
  ipaddresses = []
  discoveryAgent = ""
  port = 0
  protocol = ""
  collectors = 'zenstatus',
  _properties = {'id': 'port', 'type': 'int', 'mode': '', 'sette...
  _relations = Service._relations+(("os", ToOne(ToManyCont, "Pro...
  factory_type_information = {'immediate_view': 'ipServiceDetail...
  security = ClassSecurityInfo()

Inherited from OSComponent.OSComponent: isUserCreatedFlag

Inherited from DeviceComponent.DeviceComponent: default_catalog, event_key, perfmonInstance

Inherited from Lockable.Lockable: modelerLock, sendEventWhenBlockedFlag

Inherited from ManagedEntity.ManagedEntity: monitor, snmpindex

Inherited from ZenModelRM.ZenModelRM: isInTree

Inherited from ZenModelBase.ZenModelBase: index_html, sub_meta_types

Inherited from OFS.History.Historical: HistoricalRevisions, __ac_permissions__, manage_change_history_page, manage_options

Inherited from OFS.History.Historical (private): _manage_historyComparePage

Inherited from Commandable.Commandable: defaultTimeout

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

monitored(self)

source code 
Return monitored state of ipservice. If service only listens on 127.0.0.1 return false.
Overrides: Service.Service.monitored

getInstDescription(self)

source code 
Return some text that describes this component. Default is name.
Overrides: DeviceComponent.DeviceComponent.getInstDescription

setServiceClass(self, kwargs)

source code 
Set the service class based on a dict describing the service. Dict keys are be protocol and port
Overrides: Service.Service.setServiceClass

primarySortKey(self)

source code 
Hook for the value used to sort this object. Defaults to self.getId(). IpNetwork for instance overrides to allow it to sort by the IP numeric value not its string value.
>>> n = dmd.Networks.createNet('1.2.3.0', 24)
>>> n.primarySortKey()
16909056L
Overrides: ZenModelRM.ZenModelRM.primarySortKey
(inherited documentation)

getManageIp(self)

source code 
Return the manageIP of the device of this component.
Overrides: DeviceComponent.DeviceComponent.getManageIp
(inherited documentation)

manage_editService(self, id=None, status=None, ipaddresses=None, protocol=None, port=None, description=None, monitor=False, severity=5, sendString="", expectRegex="", REQUEST=None)

source code 
Edit a Service from a web page.
Overrides: Service.Service.manage_editService

Class Variable Details [hide private]

_properties

Value:
{'id': 'port', 'type': 'int', 'mode': '', 'setter': 'setPort'}, {'id':\
 'protocol', 'type': 'string', 'mode': '', 'setter': 'setProtocol'}, {\
'id': 'ipaddresses', 'type': 'lines', 'mode': ''}, {'id': 'discoveryAg\
ent', 'type': 'string', 'mode': ''},

_relations

Value:
Service._relations+(("os", ToOne(ToManyCont, "Products.ZenModel.Operat\
ingSystem", "ipservices")),)

factory_type_information

Value:
{'immediate_view': 'ipServiceDetail', 'actions':({'id': 'status', 'nam\
e': 'Status', 'action': 'ipServiceDetail', 'permissions':(ZEN_VIEW,)},\
 {'id': 'events', 'name': 'Events', 'action': 'viewEvents', 'permissio\
ns':(ZEN_VIEW,)}, {'id': 'manage', 'name': 'Administration', 'action':\
 'ipServiceManage', 'permissions':("Manage DMD",)}, {'id': 'viewHistor\
y', 'name': 'Modifications', 'action': 'viewHistory', 'permissions':(Z\
EN_VIEW_MODIFICATIONS,)},)},