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

Type ZenossInfo

         object --+            
                  |            
               Base --+        
                      |        
     object --+       |        
              |       |        
           Base --+   |        
                  |   |        
         CopySource --+        
                      |        
           Node --+   |        
                  |   |        
            Element --+        
                      |        
     object --+       |        
              |       |        
           Base --+   |        
                  |   |        
              Owned --+        
                      |        
     object --+       |        
              |       |        
           Base --+   |        
                  |   |        
EtagSupport --+   |   |        
              |   |   |        
   LockableItem --+   |        
                  |   |        
           Resource --+        
                      |        
     object --+       |        
              |       |        
           Base --+   |        
                  |   |        
               Tabs --+        
                      |        
        Traversable --+        
                      |        
     object --+       |        
              |       |        
           Base --+   |        
                  |   |        
        UndoSupport --+        
                      |        
                   Item --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
         object --+   |   |    
                  |   |   |    
         Persistent --+   |    
                      |   |    
             Persistent --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
        RoleManager --+   |    
                      |   |    
            RoleManager --+    
                          |    
         object --+       |    
                  |       |    
               Base --+   |    
                      |   |    
               Acquirer --+    
                          |    
                 SimpleItem --+
                              |
             object --+       |
                      |       |
           ZenModelBase --+   |
                          |   |
               ZenModelItem --+
                              |
                             ZenossInfo


Simple class that non RelationshipManager items inherit from to provide primary path functionality.
Method Summary
  getAllUptimes(self)
Return a list of daemons with their uptimes.
  getAllVersions(self)
Return a list of version numbers for currently tracked component software.
  getConfigData(self, daemon)
Return the contents of the daemon's config file.
  getLogData(self, daemon, kb)
Get the last kb kilobytes of a daemon's log file contents.
  getMySQLVersion(self)
This function returns a Version-ready tuple.
  getNetSnmpVersion(self)
  getOSVersion(self)
This function returns a Version-ready tuple.
  getPySNMPVersion(self)
This function returns a Version-ready tuple.
  getPythonVersion(self)
This function returns a Version-ready tuple.
  getRRDToolVersion(self)
This function returns a Version-ready tuple.
  getTwistedSNMPVersion(self)
This function returns a Version-ready tuple.
  getTwistedVersion(self)
This function returns a Version-ready tuple.
  getZenossDaemonConfigs(self)
Return a data structures representing the config infor for the supported Zenoss daemons.
  getZenossDaemonStates(self)
Return a data structures representing the states of the supported Zenoss daemons.
  getZenossRevision(self)
  getZenossVersion(self)
  getZenossVersionShort(self)
  getZopeVersion(self)
This function returns a Version-ready tuple.
  lastVersionCheckedString(self)
  manage_checkVersion(self, optInOut, optInOutMetrics, REQUEST)
Check for Zenoss updates on the Zenoss website
  manage_daemonAction(self, REQUEST)
Start, stop, or restart Zenoss daemons from a web interface.
  manage_saveConfigData(self, REQUEST)
Save config data from REQUEST to the daemon's config file.
  versionBehind(self)
Inherited from ZenModelItem: __init__, getPrimaryPath, getPrimaryUrlPath, primaryAq
Inherited from ZenModelBase: __call__, __hash__, all_meta_types, breadCrumbs, callZenScreen, checkValidId, createHierarchyObj, custPropertyIds, custPropertyMap, getDmd, getDmdObj, getDmdRoot, getHierarchyObj, getIdLink, getNowString, getObjByPath, getPrimaryDmdId, getZopeObj, helpLink, isLocalName, manage_deleteObjects, prepId, saveCustProperties, todayDate, view, visibleCustPropertyMap, yesterdayDate, zenpathjoin, zenpathsplit, zenScreenUrl, zentinelTabs, zmanage_editProperties
Inherited from Item: __len__, __repr__, getId, manage, manage_afterAdd, manage_afterClone, manage_beforeDelete, manage_editedDialog, manage_FTPlist, manage_FTPstat, objectIds, objectItems, objectValues, raise_standardErrorMessage, this, title_and_id, title_or_id, tpURL, tpValues
Inherited from Resource: COPY, dav__init, dav__simpleifhandler, dav__validate, DELETE, HEAD, listDAVObjects, LOCK, manage_DAVget, MKCOL, MOVE, OPTIONS, PROPFIND, PROPPATCH, PUT, TRACE, UNLOCK
Inherited from LockableItem: wl_clearLocks, wl_delLock, wl_getLock, wl_hasLock, wl_isLocked, wl_lockItems, wl_lockmapping, wl_lockTokens, wl_lockValues, wl_setLock
Inherited from EtagSupport: http__etag, http__parseMatchList, http__processMatchHeaders, http__refreshEtag
Inherited from CopySource: cb_isCopyable, cb_isMoveable, cb_userHasCopyOrMovePermission
Inherited from Tabs: class_manage_path, filtered_manage_options, manage_workspace, tabs_path_default, tabs_path_info
Inherited from Traversable: absolute_url, absolute_url_path, getPhysicalPath, restrictedTraverse, unrestrictedTraverse, virtual_url_path
Inherited from Element: getAttribute, getAttributeNode, getChildNodes, getElementsByTagName, getFirstChild, getLastChild, getNextSibling, getNodeName, getNodeType, getParentNode, getPreviousSibling, getTagName
Inherited from Node: getAttributes, getNodeValue, getOwnerDocument, hasChildNodes
Inherited from Owned: changeOwnership, getOwner, getOwnerTuple, getWrappedOwner, manage_fixupOwnershipAfterAdd, owner_info, userCanTakeOwnership
Inherited from UndoSupport: get_request_var_or_attr, manage_undo_transactions, undoable_transactions
Inherited from Persistent: __class_init__, __getattribute__, bobobase_modification_time, locked_in_version, modified_in_version
Inherited from Persistent: __delattr__, __getstate__, __new__, __reduce__, __setattr__, __setstate__
Inherited from RoleManager: ac_inherited_permissions, access_debug_info, acquiredRolesAreUsedBy, get_local_roles, get_local_roles_for_userid, get_valid_userids, has_local_roles, manage_access, manage_defined_roles, manage_editRoles, manage_role, permission_settings, permissionsOfRole, possible_permissions, rolesOfPermission, userdefined_roles, users_with_local_role, valid_roles, validate_roles, validRoles
Inherited from RoleManager: manage_getPermissionMapping
Inherited from Base: __getnewargs__
Inherited from object: __reduce_ex__, __str__

Class Variable Summary
tuple __ac_permissions__ = (('Manage DMD', ('manage_checkVersi...
tuple factory_type_information = ({'immediate_view': 'zenossIn...
PermissionRole getAllUptimes__roles__ = <PermissionRole object at 0x320...
PermissionRole getAllVersions__roles__ = <PermissionRole object at 0x32...
NoneType getZenossVersion__roles__ = None                                                                  
NoneType getZenossVersionShort__roles__ = None                                                                  
PermissionRole manage_checkVersion__roles__ = <PermissionRole object at...
PermissionRole manage_daemonAction__roles__ = <PermissionRole object at...
tuple manage_saveConfigData__roles__ = ('Manager',)
str meta_type = 'ZenossInfo'
str portal_type = 'ZenossInfo'
Inherited from ZenModelItem: getPrimaryPath__roles__, getPrimaryUrlPath__roles__
Inherited from ZenModelBase: breadCrumbs__roles__, getPrimaryDmdId__roles__, helpLink__roles__, index_html, manage_deleteObjects__roles__, sub_meta_types, view__roles__, zentinelTabs__roles__, zmanage_editProperties__roles__
Inherited from SimpleItem: __implemented__, __provides__, manage_options
Inherited from Item: __allow_access_to_unprotected_subobjects__, __name__, __propsets__, getId__roles__, icon, id, isPrincipiaFolderish, isTopLevelPrincipiaApplicationObject, manage__roles__, manage_afterAdd__roles__, manage_afterClone__roles__, manage_beforeDelete__roles__, manage_editedDialog__roles__, manage_FTPlist__roles__, manage_FTPstat__roles__, REQUEST, title
Inherited from Resource: __dav_resource__, __http_methods__, COPY__roles__, DELETE__roles__, HEAD__roles__, listDAVObjects__roles__, LOCK__roles__, manage_DAVget__roles__, MOVE__roles__, OPTIONS__roles__, PROPFIND__roles__, PROPPATCH__roles__, TRACE__roles__, UNLOCK__roles__
Inherited from LockableItem: wl_clearLocks__roles__, wl_delLock__roles__, wl_getLock__roles__, wl_isLocked__roles__, wl_isLockedByUser__roles__, wl_lockItems__roles__, wl_lockmapping__roles__, wl_lockTokens__roles__, wl_lockValues__roles__, wl_setLock__roles__
Inherited from EtagSupport: __implements__, __providedBy__
Inherited from Tabs: class_manage_path__roles__, filtered_manage_options__roles__, manage_tabs, manage_tabs__roles__, manage_workspace__roles__
Inherited from Traversable: absolute_url__roles__, absolute_url_path__roles__, getPhysicalPath__roles__, getPhysicalRoot, getPhysicalRoot__roles__, restrictedTraverse__roles__, unrestrictedTraverse__roles__, virtual_url_path__roles__
Inherited from Owned: changeOwnership__roles__, getOwner__roles__, getOwnerTuple__roles__, getWrappedOwner__roles__, manage_changeOwnershipType__roles__, manage_fixupOwnershipAfterAdd__roles__, manage_owner, manage_owner__roles__, manage_takeOwnership__roles__, owner_info__roles__
Inherited from UndoSupport: manage_undo_transactions__roles__, manage_UndoForm, manage_UndoForm__roles__, undoable_transactions__roles__
Inherited from RoleManager: __ac_local_roles__, __ac_roles__, ac_inherited_permissions__roles__, access_debug_info__roles__, aclAChecked, aclEChecked, aclPChecked, acquiredRolesAreUsedBy__roles__, manage_access__roles__, manage_acquiredForm, manage_acquiredForm__roles__, manage_acquiredPermissions__roles__, manage_addLocalRoles__roles__, manage_changePermissions__roles__, manage_defined_roles__roles__, manage_delLocalRoles__roles__, manage_editLocalRoles, manage_editLocalRoles__roles__, manage_editRoles__roles__, manage_listLocalRoles, manage_listLocalRoles__roles__, manage_permission__roles__, manage_permissionForm, manage_permissionForm__roles__, manage_role__roles__, manage_roleForm, manage_roleForm__roles__, manage_setLocalRoles__roles__, permission_settings__roles__, permissionMappingPossibleValues, permissionsOfRole__roles__, rolesOfPermission__roles__, selectedRoles, smallRolesWidget, userdefined_roles__roles__
Inherited from RoleManager: manage_getPermissionMapping__roles__, manage_setPermissionMapping__roles__

Method Details

getAllUptimes(self)

Return a list of daemons with their uptimes.

getAllVersions(self)

Return a list of version numbers for currently tracked component software.

getConfigData(self, daemon)

Return the contents of the daemon's config file.

getLogData(self, daemon, kb=500)

Get the last kb kilobytes of a daemon's log file contents.

getMySQLVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getMySQLVersion())
    v.full()

The regex was tested against the following output strings:
    mysql  Ver 14.12 Distrib 5.0.24, for apple-darwin8.5.1 (i686) using readline 5.0
    mysql  Ver 12.22 Distrib 4.0.24, for pc-linux-gnu (i486)
    mysql  Ver 14.12 Distrib 5.0.24a, for Win32 (ia32)

getOSVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getOSVersion())
    v.full()

getPySNMPVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getpySNMPVersion())
    v.full()

getPythonVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getPythonVersion())
    v.full()

getRRDToolVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getRRDToolVersion())
    v.full()

getTwistedSNMPVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getTwistedSNMPVersion())
    v.full()

getTwistedVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getTwistedVersion())
    v.full()

getZenossDaemonConfigs(self)

Return a data structures representing the config infor for the supported Zenoss daemons.

getZenossDaemonStates(self)

Return a data structures representing the states of the supported Zenoss daemons.

getZopeVersion(self)

This function returns a Version-ready tuple. For use with the Version
object, use extended call syntax:

    v = Version(*getZopeVersion())
    v.full()

manage_checkVersion(self, optInOut=False, optInOutMetrics=False, REQUEST=None)

Check for Zenoss updates on the Zenoss website

manage_daemonAction(self, REQUEST)

Start, stop, or restart Zenoss daemons from a web interface.

manage_saveConfigData(self, REQUEST)

Save config data from REQUEST to the daemon's config file.

Class Variable Details

__ac_permissions__

Type:
tuple
Value:
(('Manage DMD', ('manage_checkVersion', 'manage_daemonAction')),
 ('View', ('getAllUptimes', 'getAllVersions')))                        

factory_type_information

Type:
tuple
Value:
({'actions': ({'action': '../dmd/editSettings',
               'id': 'settings',
               'name': 'Settings',
               'permissions': ('Manage DMD',)},
              {'action': '../dmd/dataRootManage',
               'id': 'manage',
               'name': 'Commands',
               'permissions': ('Manage DMD',)},
...                                                                    

getAllUptimes__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320df50>                                   

getAllVersions__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320df50>                                   

getZenossVersion__roles__

Type:
NoneType
Value:
None                                                                  

getZenossVersionShort__roles__

Type:
NoneType
Value:
None                                                                  

manage_checkVersion__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320def0>                                   

manage_daemonAction__roles__

Type:
PermissionRole
Value:
<PermissionRole object at 0x320def0>                                   

manage_saveConfigData__roles__

Type:
tuple
Value:
('Manager',)                                                           

meta_type

Type:
str
Value:
'ZenossInfo'                                                           

portal_type

Type:
str
Value:
'ZenossInfo'                                                           

Generated by Epydoc 2.1 on Thu Aug 16 09:55:12 2007 http://epydoc.sf.net