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

# Class ZenossInfo

source code

                                         object --+
                                                  |
                          ZenModelBase.ZenModelBase --+
                                                      |
                              ZenModelItem.ZenModelItem --+
                                                          |
                            ExtensionClass.Base --+       |
                                                  |       |
                        ExtensionClass.Base --+   |       |
                                              |   |       |
         webdav.EtagSupport.EtagSupport --+   |   |       |
                                          |   |   |       |
               webdav.Lockable.LockableItem --+   |       |
                                              |   |       |
                       webdav.Resource.Resource --+       |
                                                  |       |
                        ExtensionClass.Base --+   |       |
                                              |   |       |
                     OFS.CopySupport.CopySource --+       |
                                                  |       |
                        ExtensionClass.Base --+   |       |
                                              |   |       |
                            App.Management.Tabs --+       |
                                                  |       |
                    OFS.Traversable.Traversable --+       |
                                                  |       |
                              OFS.ZDOM.Node --+   |       |
                                              |   |       |
                               OFS.ZDOM.Element --+       |
                                                  |       |
                        ExtensionClass.Base --+   |       |
                                              |   |       |
                      AccessControl.Owned.Owned --+       |
                                                  |       |
                        ExtensionClass.Base --+   |       |
                                              |   |       |
                           App.Undo.UndoSupport --+       |
                                                  |       |
                                OFS.SimpleItem.Item --+   |
                                                      |   |
                                 Globals.Persistent --+   |
                                                      |   |
                               Acquisition.Implicit --+   |
                                                      |   |
                            ExtensionClass.Base --+   |   |
                                                  |   |   |
    AccessControl.PermissionMapping.RoleManager --+   |   |
                                                  |   |   |
                     AccessControl.Role.RoleManager --+   |
                                                      |   |
                              OFS.SimpleItem.SimpleItem --+
                                                          |
                                                         ZenossInfo

Instance Methods | [hide private]
titleOrId(self) | source code
getZenossVersion(self) | source code
getZenossVersionShort(self) | source code
getOSVersion(self) This function returns a Version-ready tuple. | source code
getPythonVersion(self) This function returns a Version-ready tuple. | source code
getMySQLVersion(self) This function returns a Version-ready tuple. | source code
getRRDToolVersion(self) This function returns a Version-ready tuple. | source code
getTwistedVersion(self) This function returns a Version-ready tuple. | source code
getZopeVersion(self) This function returns a Version-ready tuple. | source code
string |
getZenossRevision(self) Determine the Zenoss version number | source code
getNetSnmpVersion(self) | source code
getPyNetSnmpVersion(self) | source code
getWmiVersion(self) | source code
getAllVersions(self) Return a list of version numbers for currently tracked component software. | source code
getAllUptimes(self) Return a list of daemons with their uptimes. | source code
getZenossDaemonStates(self) Return a data structures representing the states of the supported Zenoss daemons. | source code
_pidRunning(self, pid) | source code
_getDaemonPID(self, name) For a given daemon name, return its PID from a .pid file. | source code
_getDaemonList(self) Get the list of supported Zenoss daemons. | source code
getZenossDaemonConfigs(self) Return a data structures representing the config infor for the supported Zenoss daemons. | source code
_readLogFile(self, filename, maxBytes) | source code
_getLogPath(self, daemon) Returns the path the log file for the daemon this is monkey-patched in the distributed collector zenpack to support the localhost subdirectory. | source code
getLogData(self, daemon, kb=500) Get the last kb kilobytes of a daemon's log file contents. | source code
_getConfigFilename(self, daemon) | source code
_readConfigFile(self, filename) | source code
getConfigData(self, daemon) Return the contents of the daemon's config file. | source code
manage_saveConfigData(self, REQUEST) Save config data from REQUEST to the daemon's config file. | source code
parseconfig(self, filename="") From the given configuration file construct a configuration object | source code
show_daemon_xml_configs(self, daemon, REQUEST=None) Display the daemon configuration options in an XML format. | source code
save_daemon_configs(self, REQUEST=None, **kwargs) Save the updated daemon configuration to disk. | source code
manage_daemonAction(self, REQUEST) Start, stop, or restart Zenoss daemons from a web interface. | source code
doDaemonAction(self, daemonName, action) Do the given action (start, stop, restart) or the given daemon. | source code
manage_checkVersion(self, optInOut=False, optInOutMetrics=False, REQUEST=None) Check for Zenoss updates on the Zenoss website | source code
lastVersionCheckedString(self) | source code
versionBehind(self) | source code
Inherited from `ZenModelItem.ZenModelItem`: `__init__`, `getPrimaryPath`, `getPrimaryUrlPath`, `primaryAq` Inherited from `ZenModelBase.ZenModelBase`: `__call__`, `__hash__`, `all_meta_types`, `aqBaseHasAttr`, `breadCrumbs`, `callZenScreen`, `checkRemotePerm`, `checkValidId`, `createHierarchyObj`, `custPropertyIds`, `custPropertyMap`, `getBreadCrumbUrlPath`, `getDmd`, `getDmdObj`, `getDmdRoot`, `getHierarchyObj`, `getIconPath`, `getIdLink`, `getNowString`, `getObjByPath`, `getPrimaryDmdId`, `getUnusedId`, `getZopeObj`, `helpLink`, `isLocalName`, `manage_deleteObjects`, `prepId`, `saveCustProperties`, `todayDate`, `urlLink`, `view`, `visibleCustPropertyMap`, `yesterdayDate`, `zenScreenUrl`, `zenpathjoin`, `zenpathsplit`, `zentinelTabs`, `zmanage_editProperties` Inherited from `object`: `__delattr__`, `__getattribute__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__` Inherited from `OFS.SimpleItem.Item`: `__len__`, `getId`, `manage`, `manage_FTPlist`, `manage_FTPstat`, `manage_afterAdd`, `manage_afterClone`, `manage_beforeDelete`, `manage_editedDialog`, `objectIds`, `objectItems`, `objectValues`, `raise_standardErrorMessage`, `this`, `title_and_id`, `title_or_id`, `tpURL`, `tpValues` Inherited from `webdav.Resource.Resource`: `COPY`, `DELETE`, `HEAD`, `LOCK`, `MKCOL`, `MOVE`, `OPTIONS`, `PROPFIND`, `PROPPATCH`, `PUT`, `TRACE`, `UNLOCK`, `dav__init`, `dav__simpleifhandler`, `dav__validate`, `listDAVObjects`, `manage_DAVget` Inherited from `webdav.Lockable.LockableItem`: `wl_clearLocks`, `wl_delLock`, `wl_getLock`, `wl_hasLock`, `wl_isLocked`, `wl_lockItems`, `wl_lockTokens`, `wl_lockValues`, `wl_lockmapping`, `wl_setLock` Inherited from `webdav.EtagSupport.EtagSupport`: `http__etag`, `http__parseMatchList`, `http__processMatchHeaders`, `http__refreshEtag` Inherited from `OFS.CopySupport.CopySource`: `cb_isCopyable`, `cb_isMoveable`, `cb_userHasCopyOrMovePermission` Inherited from `OFS.CopySupport.CopySource` (private): `_canCopy`, `_getCopy`, `_notifyOfCopyTo`, `_postCopy`, `_setId` Inherited from `App.Management.Tabs`: `class_manage_path`, `filtered_manage_options`, `manage_workspace`, `tabs_path_default`, `tabs_path_info` Inherited from `OFS.Traversable.Traversable`: `absolute_url`, `absolute_url_path`, `getPhysicalPath`, `restrictedTraverse`, `unrestrictedTraverse`, `virtual_url_path` Inherited from `OFS.ZDOM.Element`: `getAttribute`, `getAttributeNode`, `getChildNodes`, `getElementsByTagName`, `getFirstChild`, `getLastChild`, `getNextSibling`, `getNodeName`, `getNodeType`, `getParentNode`, `getPreviousSibling`, `getTagName` Inherited from `OFS.ZDOM.Node`: `getAttributes`, `getNodeValue`, `getOwnerDocument`, `hasChildNodes` Inherited from `AccessControl.Owned.Owned`: `changeOwnership`, `getOwner`, `getOwnerTuple`, `getWrappedOwner`, `manage_changeOwnershipType`, `manage_fixupOwnershipAfterAdd`, `manage_takeOwnership`, `owner_info`, `userCanTakeOwnership` Inherited from `AccessControl.Owned.Owned` (private): `_deleteOwnershipAfterAdd` Inherited from `App.Undo.UndoSupport`: `get_request_var_or_attr`, `manage_undo_transactions`, `undoable_transactions` Inherited from `AccessControl.Role.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_acquiredPermissions`, `manage_addLocalRoles`, `manage_changePermissions`, `manage_defined_roles`, `manage_delLocalRoles`, `manage_editRoles`, `manage_getUserRolesAndPermissions`, `manage_permission`, `manage_role`, `manage_setLocalRoles`, `permission_settings`, `permissionsOfRole`, `possible_permissions`, `rolesOfPermission`, `userdefined_roles`, `users_with_local_role`, `validRoles`, `valid_roles`, `validate_roles` Inherited from `AccessControl.Role.RoleManager` (private): `_addRole`, `_delRoles`, `_has_user_defined_role`, `_setRoles` Inherited from `AccessControl.PermissionMapping.RoleManager`: `manage_getPermissionMapping`, `manage_setPermissionMapping` Inherited from `AccessControl.PermissionMapping.RoleManager` (private): `_isBeingAccessedAsZClassDefinedInstanceMethod`, `_isBeingUsedAsAMethod`

Class Variables | [hide private]
| meta_type = `'ZenossInfo'`
| portal_type = `'ZenossInfo'`
| security = `ClassSecurityInfo()`
| _properties = `{'id': 'id', 'type': 'string'}, {'id': 'title', `...``
| factory_type_information = `{'immediate_view': 'zenossInfo', 'a`...``
| daemon_tooltips = `{"zeoctl": "Zope Enterprise Objects server (`...``
Inherited from `ZenModelBase.ZenModelBase`: `index_html`, `sub_meta_types` Inherited from `OFS.SimpleItem.SimpleItem`: `manage_options` Inherited from `OFS.SimpleItem.Item`: `REQUEST`, `__allow_access_to_unprotected_subobjects__`, `__name__`, `__propsets__`, `icon`, `id`, `isPrincipiaFolderish`, `isTopLevelPrincipiaApplicationObject`, `title` Inherited from `OFS.SimpleItem.Item` (private): `_manage_editedDialog` Inherited from `webdav.Resource.Resource`: `__dav_resource__`, `__http_methods__` Inherited from `webdav.EtagSupport.EtagSupport`: `__implements__` Inherited from `App.Management.Tabs`: `manage_tabs` Inherited from `OFS.Traversable.Traversable`: `getPhysicalRoot` Inherited from `AccessControl.Owned.Owned`: `manage_owner` Inherited from `App.Undo.UndoSupport`: `manage_UndoForm` Inherited from `AccessControl.Role.RoleManager`: `__ac_local_roles__`, `__ac_roles__`, `aclAChecked`, `aclEChecked`, `aclPChecked`, `manage_acquiredForm`, `manage_editLocalRoles`, `manage_listLocalRoles`, `manage_permissionForm`, `manage_reportUserPermissions`, `manage_roleForm`, `permissionMappingPossibleValues`, `selectedRoles`, `smallRolesWidget` Inherited from `AccessControl.Role.RoleManager` (private): `_method_manage_access`, `_normal_manage_access`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### getOSVersion(self) | source code
    This function returns a Version-ready tuple. For use with the Version
    object, use extended call syntax:

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

### getPythonVersion(self) | source code
    This function returns a Version-ready tuple. For use with the Version
    object, use extended call syntax:

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

### getMySQLVersion(self) | source code
    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)
        /usr/local/zenoss/mysql/bin/mysql.bin  Ver 14.12 Distrib 5.0.45, for unknown-linux-gnu (x86_64) using readline 5.0

### getRRDToolVersion(self) | source code
    This function returns a Version-ready tuple. For use with the Version
    object, use extended call syntax:

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

### getTwistedVersion(self) | source code
    This function returns a Version-ready tuple. For use with the Version
    object, use extended call syntax:

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

### getZopeVersion(self) | source code
    This function returns a Version-ready tuple. For use with the Version
    object, use extended call syntax:

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

### getZenossRevision(self) | source code
Determine the Zenoss version number Returns: string version number or ''

### show_daemon_xml_configs(self, daemon, REQUEST=None) | source code
Display the daemon configuration options in an XML format. Merges the defaults with options in the config file.

### doDaemonAction(self, daemonName, action) | source code
Do the given action (start, stop, restart) or the given daemon. Block until the action is completed. No return value.

Class Variable Details | [hide private]

  ### _properties Value:
      {'id': 'id', 'type': 'string'}, {'id': 'title', 'type': 'string'},

  ### factory_type_information Value:
      {'immediate_view': 'zenossInfo', 'actions':({'id': 'settings', 'name':
       'Settings', 'action': '../dmd/editSettings', 'permissions':("Manage D
      MD",)}, {'id': 'manage', 'name': 'Commands', 'action': '../dmd/dataRoo
      tManage', 'permissions':('Manage DMD',)}, {'id': 'users', 'name': 'Use
      rs', 'action': '../dmd/ZenUsers/manageUserFolder', 'permissions':('Man
      age DMD',)}, {'id': 'packs', 'name': 'ZenPacks', 'action': '../dmd/Zen
      PackManager/viewZenPacks', 'permissions':("Manage DMD",)}, {'id': 'job
      s', 'name': 'Jobs', 'action': '../dmd/joblist', 'permissions':("Manage
      ...

  ### daemon_tooltips Value:
      {"zeoctl": "Zope Enterprise Objects server (shares database between Zo
      pe instances)", "zopectl": "The Zope open source web application serve
      r", "zenhub": "Broker between the data layer and the collection daemon
      s", "zenping": "ICMP ping status monitoring", "zensyslog": "Collection
       of and classification of syslog events", "zenstatus": "Active TCP con
      nection testing of remote daemons", "zenactions": "Alerts (SMTP, SNPP
      and Maintenance Windows)", "zentrap": "Receives SNMP traps and turns t
      hem into events", "zenmodeler": "Configuration collection and configur
      ...