You can subscribe to this list here.
2007 |
Jan
|
Feb
(65) |
Mar
(276) |
Apr
(544) |
May
(638) |
Jun
(225) |
Jul
(204) |
Aug
(294) |
Sep
(532) |
Oct
(506) |
Nov
(324) |
Dec
(359) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
(208) |
Feb
(225) |
Mar
(248) |
Apr
(388) |
May
(222) |
Jun
(47) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <sv...@ze...> - 2008-05-20 20:01:02
|
Author: ecn Date: 2008-05-20 16:01:10 -0400 (Tue, 20 May 2008) New Revision: 9314 Added: branches/wmi-0.1.12.x/ Log: making a branch so I can make changes in fairly stable version Copied: branches/wmi-0.1.12.x (from rev 9313, tags/wmi-0.1.12) |
From: <sv...@ze...> - 2008-05-20 18:44:30
|
Author: cgibbons Date: 2008-05-20 14:44:38 -0400 (Tue, 20 May 2008) New Revision: 9313 Modified: trunk/Products/ZenModel/FileSystem.py Log: * refs #623 * compute usedBlocks using secondary datapoints only available when using winperf components Modified: trunk/Products/ZenModel/FileSystem.py =================================================================== --- trunk/Products/ZenModel/FileSystem.py 2008-05-20 17:51:55 UTC (rev 9312) +++ trunk/Products/ZenModel/FileSystem.py 2008-05-20 18:44:38 UTC (rev 9313) @@ -195,6 +195,14 @@ blocks = self.cacheRRDValue('usedBlocks', default) if blocks is not None: return long(blocks) + else: + # no usedBlocks datapoint, so this is probably a Windows device + # using perfmon for data collection and therefore we'll look for + # the freeMegabytes datapoint + freeMB = self.cacheRRDValue('freeMegabytes', default) + if freeMB is not None: + usedBytes = self.totalBytes() - long(freeMB) * 1024 * 1024 + return usedBytes / self.blockSize return None |
From: <sv...@ze...> - 2008-05-20 17:51:47
|
Author: ecn Date: 2008-05-20 13:51:55 -0400 (Tue, 20 May 2008) New Revision: 9312 Modified: trunk/Products/ZenRRD/RRDDaemon.py trunk/Products/ZenRRD/zenprocess.py Log: move from JPs sandbox to the trunk Modified: trunk/Products/ZenRRD/RRDDaemon.py =================================================================== --- trunk/Products/ZenRRD/RRDDaemon.py 2008-05-20 15:41:09 UTC (rev 9311) +++ trunk/Products/ZenRRD/RRDDaemon.py 2008-05-20 17:51:55 UTC (rev 9312) @@ -97,7 +97,10 @@ def logError(self, msg, error): if isinstance(error, failure.Failure): - self.log.exception(error) + if isinstance(error.value, error.TimeoutError): + self.log.warning("Timeout Error") + else: + self.log.exception(error) else: self.log.error('%s %s', msg, error) Modified: trunk/Products/ZenRRD/zenprocess.py =================================================================== --- trunk/Products/ZenRRD/zenprocess.py 2008-05-20 15:41:09 UTC (rev 9311) +++ trunk/Products/ZenRRD/zenprocess.py 2008-05-20 17:51:55 UTC (rev 9312) @@ -562,9 +562,9 @@ def storePerfStats(self, results, device): "Save the performance data in RRD files" - for result in results: - if not result[0]: - self.error(results) + for success, result in results: + if not success: + self.error(result) return results self.clearSnmpError(device.name, 'Process table up for device %s' % device.name) |
From: <sv...@ze...> - 2008-05-20 15:41:01
|
Author: jplouis Date: 2008-05-20 11:41:09 -0400 (Tue, 20 May 2008) New Revision: 9311 Modified: trunk/Products/DataCollector/zendisc.py trunk/Products/ZenHub/PBDaemon.py trunk/Products/ZenModel/Device.py trunk/Products/ZenModel/PerformanceConf.py trunk/Products/ZenModel/ZDeviceLoader.py trunk/Products/ZenModel/skins/zenmodel/addDevice.pt trunk/Products/ZenUtils/Utils.py Log: Chaned zendisc to create one device; Refactored adding a device to use zendisc, ZDeviceLoader now delegates to PerformanceConf for device creation. Reviewer: EAD Modified: trunk/Products/DataCollector/zendisc.py =================================================================== --- trunk/Products/DataCollector/zendisc.py 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/DataCollector/zendisc.py 2008-05-20 15:41:09 UTC (rev 9311) @@ -160,6 +160,13 @@ self.log.debug("Doing SNMP lookup on device %s", ip) yield self.config().callRemote('getSnmpConfig', devicePath) communities, port, version, timeout, retries = driver.next() + + # Override with the stuff passed in + if self.options.zSnmpVer: version = self.options.zSnmpVer + if self.options.zSnmpPort: port = self.options.zSnmpPort + if self.options.zSnmpCommunity: + communities = (self.options.zSnmpCommunity,) + communities + versions = ("v2c", "v1") if '1' in version: versions = list(versions) @@ -209,25 +216,46 @@ def inner(driver): try: name = ip + useDeviceName = False + if self.options.device and not isip(self.options.device): + name = self.options.device + useDeviceName = True kw = dict(deviceName=name, discoverProto=None, devicePath=devicepath, performanceMonitor=self.options.monitor) + + snmpDeviceInfo = None if not self.options.nosnmp: self.log.debug("Scanning device with address %s", ip) yield self.findRemoteDeviceInfo(ip, devicepath) - deviceInfo = driver.next() - if deviceInfo: - community, port, ver, snmpname = deviceInfo + snmpDeviceInfo = driver.next() + if snmpDeviceInfo: + community, port, ver, snmpname = snmpDeviceInfo kw.update(dict(deviceName=snmpname, zSnmpCommunity=community, zSnmpPort=port, zSnmpVer=ver)) - yield asyncNameLookup(ip) - try: - kw.update(dict(deviceName=driver.next())) - except Exception, ex: - self.log.debug("Failed to lookup %s (%s)" % (ip, ex)) + if not snmpDeviceInfo or self.options.nosnmp: + """use the port set via commandline incase + findRemoteDeviceInfo did not return data; this should + make sure the device is created with correct snmp + options and zenmodeler runs with correct options""" + if self.options.zSnmpPort: + kw.update(dict(zSnmpPort=self.options.zSnmpPort)) + if self.options.zSnmpVer: + kw.update(dict(zSnmpVer=self.options.zSnmpVer)) + if self.options.zSnmpCommunity: + kw.update(dict(zSnmpCommunity= + self.options.zSnmpCommunity)) + if useDeviceName: + kw.update(dict(deviceName=name)) + else: + yield asyncNameLookup(ip) + try: + kw.update(dict(deviceName=driver.next())) + except Exception, ex: + self.log.debug("Failed to lookup %s (%s)" % (ip, ex)) yield self.config().callRemote('createDevice', ip, **kw) result = driver.next() if isinstance(result, Failure): @@ -244,6 +272,8 @@ if not self.options.remodel: self.log.info("ip '%s' on device '%s' skipping", ip, dev.id) + if self.options.device: + self._customexitcode = 3 yield succeed(dev) driver.next() return @@ -451,6 +481,12 @@ self.parser.add_option('--chunk', dest='chunkSize', default=10, type="int", help="number of in flight ping packets") + self.parser.add_option('--snmp-version', dest='zSnmpVer', + help="SNMP version of the target") + self.parser.add_option('--snmp-community', dest='zSnmpCommunity', + help="SNMP community string of the target") + self.parser.add_option('--snmp-port', dest='zSnmpPort', + type="int", help="SNMP port of the target") self.parser.add_option('--snmp-missing', dest='snmpMissing', action="store_true", default=False, help="send an event if SNMP is not found on the device") @@ -469,7 +505,6 @@ self.parser.add_option('--useFileDescriptor', dest='useFileDescriptor', default=None, help="Use the given (priveleged) file descriptor for ping") - self.parser.add_option('--assign-devclass-script', dest='autoAllocate', action="store_true", default=False, help="have zendisc auto allocate devices after discovery") Modified: trunk/Products/ZenHub/PBDaemon.py =================================================================== --- trunk/Products/ZenHub/PBDaemon.py 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/ZenHub/PBDaemon.py 2008-05-20 15:41:09 UTC (rev 9311) @@ -18,6 +18,7 @@ ''' import Globals +import sys from Products.ZenUtils.ZenDaemon import ZenDaemon from Products.ZenEvents.ZenEventClasses import Heartbeat from Products.ZenUtils.PBUtil import ReconnectingPBClientFactory @@ -88,6 +89,7 @@ initialServices = ['EventService'] heartbeatEvent = {'eventClass':Heartbeat} heartbeatTimeout = 60*3 + _customexitcode = 0 def __init__(self, noopts=0, keeproot=False): ZenDaemon.__init__(self, noopts, keeproot) @@ -204,6 +206,8 @@ d.addCallbacks(callback, errback) reactor.run() self.log.info('%s shutting down' % self.name) + if self._customexitcode: + sys.exit(self._customexitcode) def sigTerm(self, signum=None, frame=None): try: Modified: trunk/Products/ZenModel/Device.py =================================================================== --- trunk/Products/ZenModel/Device.py 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/ZenModel/Device.py 2008-05-20 15:41:09 UTC (rev 9311) @@ -159,7 +159,7 @@ def findCommunity(context, ip, devicePath, community="", port=None, version=None): """ - Find the SNMP community and version for an p address using zSnmpCommunities. + Find the SNMP community and version for an ip address using zSnmpCommunities. @rtype: tuple of (community, port, version, device name) """ @@ -1077,8 +1077,9 @@ log.info("setting system %s" % systemPaths) self.setSystems(systemPaths) - log.info("setting performance monitor to %s" % performanceMonitor) - self.setPerformanceMonitor(performanceMonitor) + if performanceMonitor != self.getPerformanceServerName(): + log.info("setting performance monitor to %s" % performanceMonitor) + self.setPerformanceMonitor(performanceMonitor) self.setLastChange() self.index_object() @@ -1579,21 +1580,10 @@ @todo: generateEvents param is not being used. """ unused(generateEvents) - xmlrpc = isXmlRpc(REQUEST) - if setlog and REQUEST and not xmlrpc: - handler = setupLoggingHeader(self, REQUEST) - - zm = zenPath('bin', 'zenmodeler') - zenmodelerCmd = [zm, 'run', '--now','-F','-d', self.id] - if REQUEST: zenmodelerCmd.append("--weblog") - result = executeCommand(zenmodelerCmd, REQUEST) - if result and xmlrpc: return result - log.info("configuration collected") + perfConf = self.getPerformanceServer() + perfConf.collectDevice(self, setlog, REQUEST) - if setlog and REQUEST and not xmlrpc: - clearWebLoggingStream(handler) - if xmlrpc: return 0 Modified: trunk/Products/ZenModel/PerformanceConf.py =================================================================== --- trunk/Products/ZenModel/PerformanceConf.py 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/ZenModel/PerformanceConf.py 2008-05-20 15:41:09 UTC (rev 9311) @@ -37,23 +37,31 @@ s = s.replace('\n','') return s import xmlrpclib - + from AccessControl import ClassSecurityInfo +from AccessControl import Permissions as permissions from Globals import DTMLFile from Globals import InitializeClass - +from Monitor import Monitor from Products.PythonScripts.standard import url_quote -from AccessControl import Permissions as permissions from Products.ZenModel.ZenossSecurity import * - from Products.ZenRelations.RelSchema import * - from Products.ZenUtils.Utils import basicAuthUrl, zenPath - -from Monitor import Monitor +from Products.ZenUtils.Utils import unused +from Products.ZenUtils.Utils import isXmlRpc +from Products.ZenUtils.Utils import setupLoggingHeader +from Products.ZenUtils.Utils import executeCommand +from Products.ZenUtils.Utils import clearWebLoggingStream +from Products.ZenModel.Exceptions import DeviceExistsError +from Products.ZenUtils.IpUtil import isip +from Products.ZenModel.Device import manage_createDevice from StatusColor import StatusColor -from Products.ZenUtils.Utils import unused + + + + + PERF_ROOT=None def performancePath(target): @@ -369,6 +377,123 @@ if dev.monitorDevice() and not dev.zPingMonitorIgnore: devices.append(dev) return devices + + def createDevice(self, context, deviceName, devicePath="/Discovered", + tag="", serialNumber="", + zSnmpCommunity="", zSnmpPort=161, zSnmpVer="", + rackSlot=0, productionState=1000, comments="", + hwManufacturer="", hwProductName="", + osManufacturer="", osProductName="", + locationPath="", groupPaths=[], systemPaths=[], + performanceMonitor="localhost", + discoverProto="snmp", priority=3, REQUEST = None): + + """ + Create a device in a performance monitor specific fashion. + Creates device by delegating to manage_createDevice + @rtype: Device + """ + + if isip(deviceName) and self.getDmdRoot('Networks').findIp(deviceName): + device = self.getDmdRoot('Networks').findIp(deviceName) + raise DeviceExistsError("Ip %s exists on %s" % (deviceName, device.id)) + elif self.getDmdRoot("Devices").findDevice(deviceName): + raise DeviceExistsError("Device %s already exists" % deviceName) + + + device = None + if discoverProto == "none": + device = manage_createDevice(self, deviceName, devicePath, + tag, serialNumber, + zSnmpCommunity, zSnmpPort, zSnmpVer, + rackSlot, productionState, comments, + hwManufacturer, hwProductName, + osManufacturer, osProductName, + locationPath, groupPaths, systemPaths, + performanceMonitor, discoverProto) + else: + device = self._createDevice(deviceName, devicePath, productionState, + performanceMonitor, discoverProto, zSnmpPort, + zSnmpCommunity, REQUEST) +#need to call zendisc and interpret exit codes? Then update properties. + + if device: + device.manage_editDevice(tag=tag, + serialNumber=serialNumber, + rackSlot=rackSlot, + productionState=productionState, + comments=comments, + hwManufacturer=hwManufacturer, + hwProductName = hwProductName, + osManufacturer = osManufacturer, + osProductName = osProductName, + locationPath = locationPath, + groupPaths = groupPaths, + systemPaths = systemPaths, + performanceMonitor = performanceMonitor, + priority = priority) + else: + log.info("no device returned") + return device + def _createDevice(self, deviceName, devicePath= "/Discovered", + productionState=1000, performanceMonitor="localhost", + discoverProto="snmp", zSnmpPort=161,zSnmpCommunity="", + REQUEST=None): + """ + Actual implementation for creating/adding a device to the system. + """ + zm = zenPath('bin', 'zendisc') + zendiscCmd = [zm, 'run', '--now','-d', deviceName, + '--monitor', performanceMonitor, + '--deviceclass', devicePath, + '--snmp-port', str(zSnmpPort) ] + if zSnmpCommunity != "": + zendiscCmd.extend(["--snmp-community", zSnmpCommunity]) + + + if REQUEST: zendiscCmd.append("--weblog") + + result = executeCommand(zendiscCmd, REQUEST) + if result == 3: + raise DeviceExistsError("ZenDisc found existing Device" ) + log.info("zendisc result : %s" % result) + self.dmd._p_jar.sync() + device = self.getDmdRoot("Devices").findDevice(deviceName) + if not device: + raise Exception("ZenDisc did not create device %s" % deviceName) + return device + + def _executeZenDiscCommand(self, zendiscCmd, REQUEST=None): + """ + execute a the given zendisc command and return result + """ + result = executeCommand(zendiscCmd, REQUEST) + return result + def collectDevice(self, device=None, setlog=True, REQUEST=None, + generateEvents=False): + """ + Collect the configuration of this device AKA Model Device + + @param setlog: If true, set up the output log of this process + @permission: ZEN_MANAGE_DEVICE + """ + + xmlrpc = isXmlRpc(REQUEST) + if setlog and REQUEST and not xmlrpc: + handler = setupLoggingHeader(self, REQUEST) + + zm = zenPath('bin', 'zenmodeler') + zenmodelerCmd = [zm, 'run', '--now','-F','-d', device.id] + if REQUEST: zenmodelerCmd.append("--weblog") + result = executeCommand(zenmodelerCmd, REQUEST) + if result and xmlrpc: return result + log.info("configuration collected") + + if setlog and REQUEST and not xmlrpc: + clearWebLoggingStream(handler) + + if xmlrpc: return 0 + InitializeClass(PerformanceConf) Modified: trunk/Products/ZenModel/ZDeviceLoader.py =================================================================== --- trunk/Products/ZenModel/ZDeviceLoader.py 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/ZenModel/ZDeviceLoader.py 2008-05-20 15:41:09 UTC (rev 9311) @@ -28,7 +28,6 @@ from OFS.SimpleItem import SimpleItem -from Device import manage_createDevice from Products.ZenUtils.Utils import isXmlRpc, setupLoggingHeader, clearWebLoggingStream from Products.ZenUtils.Exceptions import ZentinelException from Products.ZenModel.Exceptions import DeviceExistsError, NoSnmp @@ -86,7 +85,7 @@ osManufacturer="", osProductName="", locationPath="", groupPaths=[], systemPaths=[], performanceMonitor="localhost", - discoverProto="snmp",REQUEST = None): + discoverProto="snmp",priority=3,REQUEST=None): """ Load a device into the database connecting its major relations and collecting its configuration. @@ -98,16 +97,24 @@ print xmlrpc if REQUEST and not xmlrpc: handler = setupLoggingHeader(self, REQUEST) + + """ + Get performance monitor and call createDevice so that the correct + version (local/remote) of createDevice gets invoked + """ + monitor = self.getDmdRoot("Monitors").getPerformanceMonitor( + performanceMonitor) try: - device = manage_createDevice(self, deviceName, devicePath, - tag, serialNumber, - zSnmpCommunity, zSnmpPort, zSnmpVer, - rackSlot, productionState, comments, - hwManufacturer, hwProductName, - osManufacturer, osProductName, - locationPath, groupPaths, systemPaths, - performanceMonitor, discoverProto) + device = monitor.createDevice(self, deviceName, devicePath, + tag, serialNumber, + zSnmpCommunity, zSnmpPort, zSnmpVer, + rackSlot, productionState, comments, + hwManufacturer, hwProductName, + osManufacturer, osProductName, + locationPath, groupPaths, systemPaths, + performanceMonitor, discoverProto, + priority,REQUEST) transaction.commit() except (SystemExit, KeyboardInterrupt): raise except ZentinelException, e: @@ -124,8 +131,6 @@ log.exception('load of device %s failed' % deviceName) transaction.abort() else: - if discoverProto != "none": - device.collectDevice(setlog=False, REQUEST=REQUEST) log.info("Device %s loaded!" % deviceName) if REQUEST and not xmlrpc: Modified: trunk/Products/ZenModel/skins/zenmodel/addDevice.pt =================================================================== --- trunk/Products/ZenModel/skins/zenmodel/addDevice.pt 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/ZenModel/skins/zenmodel/addDevice.pt 2008-05-20 15:41:09 UTC (rev 9311) @@ -56,9 +56,9 @@ </tr> <tr> <td class="tableheader" align="left">Discovery Protocol</td> - <td class="tablevalues" align="left" colspan=3> + <td class="tablevalues" align="left" > <select class="tablevalues" name="discoverProto"> - <option value="snmp">snmp</option> + <option value="auto">auto</option> <!-- <option value="ssh">ssh</option> <option value="portscan">portscan</option> @@ -66,6 +66,20 @@ <option value="none">none</option> </select> </td> + <td class="tableheader" align="left">Collector</td> + <td class="tablevalues" align="left"> + <select class="tablevalues" name="performanceMonitor" + tal:define=" + crks python:here.getDmdRoot('Monitors').getPerformanceMonitorNames(); + curcrk here/getPerformanceServerName | request/performanceMonitor | + string:localhost" + > + <option tal:repeat="crk crks" + tal:attributes="value crk; + selected python:curcrk and crk in curcrk" + tal:content="crk">localhost</option> + </select> + </td> </tr> <tal:block metal:define-macro="body" tal:omit-tag=""> <tr><th class="subtabletitle" colspan=4 align="left">Attributes</th></tr> @@ -320,22 +334,6 @@ </td> </tr> <tr> - <td class="tableheader" align="left">Collector</td> - <td class="tablevalues" align="left" colspan=3> - <select class="tablevalues" name="performanceMonitor" - tal:define=" - crks python:here.getDmdRoot('Monitors').getPerformanceMonitorNames(); - curcrk here/getPerformanceServerName | request/performanceMonitor | - string:localhost" - > - <option tal:repeat="crk crks" - tal:attributes="value crk; - selected python:curcrk and crk in curcrk" - tal:content="crk">localhost</option> - </select> - </td> - </tr> - <tr> <td class="tableheader" align="left">New Collector</td> <td class="tablevalues" align="left" colspan="3"> <input class="tablevalues" type="text" Modified: trunk/Products/ZenUtils/Utils.py =================================================================== --- trunk/Products/ZenUtils/Utils.py 2008-05-20 14:23:14 UTC (rev 9310) +++ trunk/Products/ZenUtils/Utils.py 2008-05-20 15:41:09 UTC (rev 9311) @@ -591,11 +591,12 @@ def executeCommand(cmd, REQUEST): xmlrpc = isXmlRpc(REQUEST) + result = 0 try: - if REQUEST: - response = REQUEST.RESPONSE - else: - response = sys.stdout + if REQUEST: + response = REQUEST.RESPONSE + else: + response = sys.stdout log.info('Executing command: %s' % ' '.join(cmd)) f = Popen4(cmd) while 1: @@ -616,7 +617,10 @@ except: if xmlrpc: return 1 raise - return 0 + else: + result = f.wait() + result = int(hex(result)[:-2], 16) + return result def ipsort(a, b): # Strip off netmasks |
From: <sv...@ze...> - 2008-05-20 14:23:07
|
Author: jstevens Date: 2008-05-20 10:23:14 -0400 (Tue, 20 May 2008) New Revision: 9310 Modified: trunk/Products/ZenModel/GraphDefinition.py Log: fixes #3197 * Catch exceptions thrown by bad tales expressions in non-custom graph points. * Add NameError to the exceptions caught in custom graph points Modified: trunk/Products/ZenModel/GraphDefinition.py =================================================================== --- trunk/Products/ZenModel/GraphDefinition.py 2008-05-19 21:05:58 UTC (rev 9309) +++ trunk/Products/ZenModel/GraphDefinition.py 2008-05-20 14:23:14 UTC (rev 9310) @@ -421,21 +421,28 @@ if upToPoint is None or gp.sequence < upToPoint] if threshGps: for index, gp in enumerate(threshGps): - cmds = gp.getGraphCmds(cmds, context, rrdDir, + try: + cmds = gp.getGraphCmds(cmds, context, rrdDir, self.hasSummary, index+idxOffset, multiid, prefix) - + except (KeyError, NameError), e: + cmds.append('COMMENT: UNKOWN VALUE IN ' + 'GRAPHPOINT %s\: %s' % (gp.id, str(e))) gpList = [gp for gp in self.getGraphPoints(includeThresholds=False) if upToPoint is None or gp.sequence < upToPoint] for index, gp in enumerate(gpList): - cmds = gp.getGraphCmds(cmds, context, rrdDir, + try: + cmds = gp.getGraphCmds(cmds, context, rrdDir, self.hasSummary, index+idxOffset, multiid, prefix) + except (KeyError, NameError), e: + cmds.append('COMMENT: UNKNOWN VALUE IN GRAPHPOINT ' + '%s\: %s' % (gp.id, str(e))) if self.custom and includeSetup \ and not upToPoint: try: res = talesEval("string:"+str(self.custom), context) - except KeyError, e: + except (KeyError, NameError), e: res = 'COMMENT:UNKNOWN VALUE IN CUSTOM COMMANDS\: %s' % str(e) res = [l for l in res.split('\n') if l.strip()] cmds.extend(res) |
From: <sv...@ze...> - 2008-05-19 21:05:50
|
Author: jstevens Date: 2008-05-19 17:05:58 -0400 (Mon, 19 May 2008) New Revision: 9309 Modified: trunk/inst/docs/UPGRADE_FROM_SOURCE_TO_INSTALL_STACK.txt Log: refs #3188 * Added notes regarding ZenPacks during this upgrade Modified: trunk/inst/docs/UPGRADE_FROM_SOURCE_TO_INSTALL_STACK.txt =================================================================== --- trunk/inst/docs/UPGRADE_FROM_SOURCE_TO_INSTALL_STACK.txt 2008-05-19 19:36:27 UTC (rev 9308) +++ trunk/inst/docs/UPGRADE_FROM_SOURCE_TO_INSTALL_STACK.txt 2008-05-19 21:05:58 UTC (rev 9309) @@ -17,50 +17,59 @@ $ zenbackup - 4. Shutdown zenoss + 4. Make a note of which ZenPacks you have installed. + Settings -> ZenPacks + + 5. Shutdown zenoss + $ zenoss stop - 5. Move the current zenoss to a new name: + 6. Move the current zenoss to a new name: $ mv /usr/local/zenoss /usr/local/zenoss-2.1.3 - 6. Install the package: + 7. Install the package: # dpkg -i zenoss-stack*.deb or # rpm -Uvh zenoss-stack*.rpm - 7. Copy the configuration files to a backup directory: + 8. Copy the configuration files to a backup directory: $ cd /usr/local/zenoss/zenoss/etc $ cp zeo.conf zope.conf /tmp - 8. Start mysql + 9. For each ZenPack installed on the old install, copy its directory to the + new install: + + $ cp -r $OLD_ZENHOME/Products/SomeZenPack $ZENHOME/Products/ +10. Start mysql + # /usr/local/zenoss/mysql/scripts/ctl.sh start - 9. Load your data back with zenrestore: +11. Load your data back with zenrestore: $ NOW=`date +%Y%m%d` $ zenrestore --dbuser=zenoss --dbpass=zenoss \ --file /usr/local/zenoss-2.1.3/backups/zenbackup_$NOW.tgz -10. Copy the configuration files back: +12. Copy the configuration files back: $ cp /tmp/zope.conf /usr/local/zenoss/zenoss/etc $ cp /tmp/zeo.conf /usr/local/zenoss/zenoss/etc -11. Start zeo +13. Start zeo $ zeoctl start -12. Migrate the data: +14. Migrate the data: $ zenmigrate -13. Re-register the portlets +15. Re-register the portlets $ zendmd >>> from Products.ZenWidgets.ZenossPortlets.ZenossPortlets \ @@ -68,6 +77,6 @@ >>> register_default_portlets(zport.ZenPortletManager) >>> commit() -14. Start all of zenoss: +16. Start all of zenoss: $ zenoss start |
From: <sv...@ze...> - 2008-05-19 19:36:20
|
Author: ian Date: 2008-05-19 15:36:27 -0400 (Mon, 19 May 2008) New Revision: 9308 Modified: sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py sandboxen/jplouis/Products-remoteStuff/ZenModel/ZDeviceLoader.py sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py Log: * Post-code-review typos, wrapping, etc. Modified: sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py 2008-05-19 19:05:30 UTC (rev 9307) +++ sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py 2008-05-19 19:36:27 UTC (rev 9308) @@ -11,7 +11,6 @@ # ########################################################################### -import sys import socket import Globals @@ -247,7 +246,8 @@ if self.options.zSnmpVer: kw.update(dict(zSnmpVer=self.options.zSnmpVer)) if self.options.zSnmpCommunity: - kw.update(dict(zSnmpCommunitY = self.options.zSnmpCommunity)) + kw.update(dict(zSnmpCommunity= + self.options.zSnmpCommunity)) if useDeviceName: kw.update(dict(deviceName=name)) else: Modified: sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py 2008-05-19 19:05:30 UTC (rev 9307) +++ sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py 2008-05-19 19:36:27 UTC (rev 9308) @@ -412,35 +412,34 @@ locationPath, groupPaths, systemPaths, performanceMonitor, discoverProto) else: - try: - device = self._createDevice(deviceName, devicePath, productionState, - performanceMonitor, discoverProto, zSnmpPort, zSnmpCommunity, REQUEST) - - if device: - kw = dict(tag=tag, - serialNumber=serialNumber, - rackSlot=rackSlot, - productionState=productionState, - comments=comments, - hwManufacturer=hwManufacturer, - hwProductName = hwProductName, - osManufacturer = osManufacturer, - osProductName = osProductName, - locationPath = locationPath, - groupPaths = groupPaths, - systemPaths = systemPaths, - performanceMonitor = performanceMonitor, - priority = priority) - device.manage_editDevice(**kw) - else: - log.info("no device returned") - - except Exception: raise + device = self._createDevice(deviceName, devicePath, productionState, + performanceMonitor, discoverProto, zSnmpPort, + zSnmpCommunity, REQUEST) +#need to call zendisc and interpret exit codes? Then update properties. + + if device: + device.manage_editDevice(tag=tag, + serialNumber=serialNumber, + rackSlot=rackSlot, + productionState=productionState, + comments=comments, + hwManufacturer=hwManufacturer, + hwProductName = hwProductName, + osManufacturer = osManufacturer, + osProductName = osProductName, + locationPath = locationPath, + groupPaths = groupPaths, + systemPaths = systemPaths, + performanceMonitor = performanceMonitor, + priority = priority) + else: + log.info("no device returned") return device def _createDevice(self, deviceName, devicePath= "/Discovered", productionState=1000, performanceMonitor="localhost", - discoverProto="snmp", zSnmpPort=161,zSnmpCommunity="", REQUEST=None): + discoverProto="snmp", zSnmpPort=161,zSnmpCommunity="", + REQUEST=None): """ Actual implementation for creating/adding a device to the system. """ @@ -467,12 +466,13 @@ def _executeZenDiscCommand(self, zendiscCmd, REQUEST=None): """ - execute a the given zendisc command and return reslut + execute a the given zendisc command and return result """ result = executeCommand(zendiscCmd, REQUEST) return result - def collectDevice(self, device=None, setlog=True, REQUEST=None, generateEvents=False): + def collectDevice(self, device=None, setlog=True, REQUEST=None, + generateEvents=False): """ Collect the configuration of this device AKA Model Device Modified: sandboxen/jplouis/Products-remoteStuff/ZenModel/ZDeviceLoader.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenModel/ZDeviceLoader.py 2008-05-19 19:05:30 UTC (rev 9307) +++ sandboxen/jplouis/Products-remoteStuff/ZenModel/ZDeviceLoader.py 2008-05-19 19:36:27 UTC (rev 9308) @@ -85,7 +85,7 @@ osManufacturer="", osProductName="", locationPath="", groupPaths=[], systemPaths=[], performanceMonitor="localhost", - discoverProto="snmp",priority=3,REQUEST = None): + discoverProto="snmp",priority=3,REQUEST=None): """ Load a device into the database connecting its major relations and collecting its configuration. Modified: sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py 2008-05-19 19:05:30 UTC (rev 9307) +++ sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py 2008-05-19 19:36:27 UTC (rev 9308) @@ -590,7 +590,6 @@ def executeCommand(cmd, REQUEST): -# import pydevd;pydevd.settrace() xmlrpc = isXmlRpc(REQUEST) result = 0 try: |
From: <sv...@ze...> - 2008-05-19 19:05:30
|
Author: jplouis Date: 2008-05-19 15:05:30 -0400 (Mon, 19 May 2008) New Revision: 9307 Modified: sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py Log: Getting exit codes from zendisc Modified: sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py 2008-05-19 16:47:37 UTC (rev 9306) +++ sandboxen/jplouis/Products-remoteStuff/ZenModel/PerformanceConf.py 2008-05-19 19:05:30 UTC (rev 9307) @@ -415,7 +415,6 @@ try: device = self._createDevice(deviceName, devicePath, productionState, performanceMonitor, discoverProto, zSnmpPort, zSnmpCommunity, REQUEST) - #need to call zendisc and interpret exit codes? Then update properties. if device: kw = dict(tag=tag, @@ -457,7 +456,8 @@ if REQUEST: zendiscCmd.append("--weblog") result = executeCommand(zendiscCmd, REQUEST) - + if result == 3: + raise DeviceExistsError("ZenDisc found existing Device" ) log.info("zendisc result : %s" % result) self.dmd._p_jar.sync() device = self.getDmdRoot("Devices").findDevice(deviceName) @@ -469,7 +469,8 @@ """ execute a the given zendisc command and return reslut """ - return executeCommand(zendiscCmd, REQUEST) + result = executeCommand(zendiscCmd, REQUEST) + return result def collectDevice(self, device=None, setlog=True, REQUEST=None, generateEvents=False): """ Modified: sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py 2008-05-19 16:47:37 UTC (rev 9306) +++ sandboxen/jplouis/Products-remoteStuff/ZenUtils/Utils.py 2008-05-19 19:05:30 UTC (rev 9307) @@ -590,12 +590,14 @@ def executeCommand(cmd, REQUEST): +# import pydevd;pydevd.settrace() xmlrpc = isXmlRpc(REQUEST) + result = 0 try: - if REQUEST: - response = REQUEST.RESPONSE - else: - response = sys.stdout + if REQUEST: + response = REQUEST.RESPONSE + else: + response = sys.stdout log.info('Executing command: %s' % ' '.join(cmd)) f = Popen4(cmd) while 1: @@ -616,7 +618,10 @@ except: if xmlrpc: return 1 raise - return 0 + else: + result = f.wait() + result = int(hex(result)[:-2], 16) + return result def ipsort(a, b): # Strip off netmasks |
From: <sv...@ze...> - 2008-05-19 16:47:34
|
Author: abray Date: 2008-05-19 12:47:37 -0400 (Mon, 19 May 2008) New Revision: 9306 Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html Log: Drew testing HTML images again9 Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html =================================================================== --- trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html 2008-05-19 16:37:20 UTC (rev 9305) +++ trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html 2008-05-19 16:47:37 UTC (rev 9306) @@ -1,3 +1,3 @@ <html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>1. Installing Zenoss from the GUI-Based Stack Installers</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1"></a>1. Installing Zenoss from the GUI-Based Stack Installers</h2></div></div><hr></div><p>This document will step you through installing Zenoss and the Zenoss stack using the point and click stack installers. These installers work on the following Linux platforms and architectures.</p><p></p><p>NOTE: If you are upgrading from a previous Zenoss installation that was not a stack installer, please follow the instructions in the document named "UPGRADE_FROM_SOURCE_TO _INSTALL_STACK.txt" which is also available from the Zenoss website.</p><p></p><div class="orderedlist"><ol ty! pe="1"><li><p>Download the latest installation package from http://www.zenoss.com/download.</p><p></p></li><li><p>Choose from the following installation methods depending on your environment; Command Line, KDE, or Gnome. Then continue following the installation instructions with Step number 3 below.</p><div class="orderedlist"><ol type="a"><li><p>Opening the Installer Using the Command Line</p><p>Note that zenoss*.bin is the current file you are trying to install.</p><div class="orderedlist"><ol type="i"><li><p>Open a command-line prompt and change directories (cd) into the directory where you downloaded the installer.</p><pre class="programlisting">$ cd <Your download directory>/</pre><p></p></li><li><p>Make the installer executable using the command:</p><pre class="programlisting">$ chmod +x ./zenoss*.bin</pre><p></p></li><li><p>Execute the installer as root. If you know your root password, use the su command:</p><pre class="programlisting">$ su root -c ./zenoss*.bi! n</pre><p>If you do not know your root password, use the sudo ! command: </p><pre class="programlisting">$ sudo ./zenoss*.bin</pre></li><li><p>Answer the installation prompts (as described starting in step 3 below). The package will be installed in /usr/local/zenoss.</p><p></p></li><li><p>The package will create a zenoss user with a home directory in /home/zenoss. In order to run commands that are specified in the Zenoss admin guide, you must become the zenoss user.</p><p>If you know your root password, use the su command to become root, then to become user zenoss:</p><pre class="programlisting">$ su - root # su - zenoss</pre><p>If you don't know your root password, use the sudo command:</p><pre class="programlisting">$ sudo su - zenoss</pre><p>If you would prefer not to become the zenoss user, you can also run:</p><pre class="programlisting">$ /usr/local/zenoss/zenconsole</pre><p>to enter a shell with the Zenoss environment. You can then start/stop daemons, enter zendmd, and perform other command line tasks.</p><p></p></li></ol></div></li><li><p! >Opening the Installer in KDE</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Is executable" check box. Select "Ok" to close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open With ..." menu item.</p><p></p></li><li><p>Enter "kdesu" as the command to open the Zenoss installer.</p><p></p></li></ol></div></li><li><p>Opening the Installer in Gnome</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Allow executing file as program" check box. Close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open with Other Application! ..." menu item.</p><p></p></li><li><p>Select the "Use a custom! command " item. Enter "gksu".</p></li></ol></div></li></ol></div><p></p></li><li><p>The installer will prompt for the following basic configuration information upon startup.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>The installation location (default /usr/local/zenoss)</p></li><li><p>The root password for MySQL</p></li></ul></div><p>If your computer is already running programs that conflict with the Zenoss networking configuration, you will see additional prompts to choose alternative port numbers.</p><p>Once you install Zenoss, you can reach the web-based user interface with the url:</p><p>http://<zenoss computer>:8080/</p><p>If you already had something using port 8080, you will be prompted for a new port on installation. For example, if you installed on your local computer, and selected port 8888 as the new port for the Zope server, you would use the following url: http://localhost:8888</p><p></p><p>If the installer is run from a desktop, it will provide th! e following graphical dialog prompts. If the installer is run from a headless or remote location, it will use simple command-line prompts.</p><p>After launching the installer, the initial Zenoss installer screen appears.</p><div class="figure"><a name="d0e133"></a><p class="title"><b>Figure 1. Zenoss Installer Screen - Welcome</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png" alt="Zenoss Installer Screen - Welcome"></div></div></div><br class="figure-break"><p>Click Forward to proceed.</p></li><li><p>Choose the install location for Zenoss.</p><div class="figure"><a name="d0e144"></a><p class="title"><b>Figure 2. Zenoss Installer Screen Location</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-location-2.png" alt="Zen! oss Installer Screen Location"></div></div></div><br class="fi! gure-bre ak"><p>Click Forward.</p></li><li><p>The next Installer screen appears prompting you for the MySQL password information.</p><p></p><div class="figure"><a name="d0e156"></a><p class="title"><b>Figure 3. Zenoss Installer Screen - MySQL Password</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png" alt="Zenoss Installer Screen - MySQL Password"></div></div></div><br class="figure-break"><p>The root password for MySQL is for a fresh installation of MySQL dedicated exclusively to Zenoss and not the root password for the computer, or the root password to any existing MySQL installation. You may use any non-empty password, this password is not stored by the Zenoss installer.</p><p>Click Forward.</p></li><li><p>You are now ready to Install Zenoss.</p><div class="figure"><a name="d0e169"></a><p class="title"><b>Figure 4. Zenoss Installer Screen! - Ready to Install</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png" alt="Zenoss Installer Screen - Ready to Install"></div></div></div><br class="figure-break"><p>Click forward to start the install process.</p><div class="figure"><a name="d0e177"></a><p class="title"><b>Figure 5. Zenoss Installer Screen - Progress Bar</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png" alt="Zenoss Installer Screen - Progress Bar"></div></div></div><br class="figure-break"><p>This point in the installation process may take several minutes without showing any change. Note that there is a long pause near the end of the installation as Zenoss is initializing itself. This wait may take several minutes.</p><p></p></li><li><p>When instal! lation is complete you will see the following dialog.</p><div ! class="f igure"><a name="d0e189"></a><p class="title"><b>Figure 6. Zenoss Installer Screen - Finish and Launch Zenoss</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png" alt="Zenoss Installer Screen - Finish and Launch Zenoss"></div></div></div><br class="figure-break"><p>If you select "Launch Zenoss" the installer will attempt to run your web browser and point it to Zenoss. If this fails (usually because your browser is already running), just use the URL scheme discussed in step 3 above.</p></li></ol></div></div></body></html> \ No newline at end of file + <title>1. Installing Zenoss from the GUI-Based Stack Installers</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1"></a>1. Installing Zenoss from the GUI-Based Stack Installers</h2></div></div><hr></div><p>This document will step you through installing Zenoss and the Zenoss stack using the point and click stack installers. These installers work on the following Linux platforms and architectures.</p><p></p><p>NOTE: If you are upgrading from a previous Zenoss installation that was not a stack installer, please follow the instructions in the document named "UPGRADE_FROM_SOURCE_TO _INSTALL_STACK.txt" which is also available from the Zenoss website.</p><p></p><div class="orderedlist"><ol ty! pe="1"><li><p>Download the latest installation package from http://www.zenoss.com/download.</p><p></p></li><li><p>Choose from the following installation methods depending on your environment; Command Line, KDE, or Gnome. Then continue following the installation instructions with Step number 3 below.</p><div class="orderedlist"><ol type="a"><li><p>Opening the Installer Using the Command Line</p><p>Note that zenoss*.bin is the current file you are trying to install.</p><div class="orderedlist"><ol type="i"><li><p>Open a command-line prompt and change directories (cd) into the directory where you downloaded the installer.</p><pre class="programlisting">$ cd <Your download directory>/</pre><p></p></li><li><p>Make the installer executable using the command:</p><pre class="programlisting">$ chmod +x ./zenoss*.bin</pre><p></p></li><li><p>Execute the installer as root. If you know your root password, use the su command:</p><pre class="programlisting">$ su root -c ./zenoss*.bi! n</pre><p>If you do not know your root password, use the sudo ! command: </p><pre class="programlisting">$ sudo ./zenoss*.bin</pre></li><li><p>Answer the installation prompts (as described starting in step 3 below). The package will be installed in /usr/local/zenoss.</p><p></p></li><li><p>The package will create a zenoss user with a home directory in /home/zenoss. In order to run commands that are specified in the Zenoss admin guide, you must become the zenoss user.</p><p>If you know your root password, use the su command to become root, then to become user zenoss:</p><pre class="programlisting">$ su - root # su - zenoss</pre><p>If you don't know your root password, use the sudo command:</p><pre class="programlisting">$ sudo su - zenoss</pre><p>If you would prefer not to become the zenoss user, you can also run:</p><pre class="programlisting">$ /usr/local/zenoss/zenconsole</pre><p>to enter a shell with the Zenoss environment. You can then start/stop daemons, enter zendmd, and perform other command line tasks.</p><p></p></li></ol></div></li><li><p! >Opening the Installer in KDE</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Is executable" check box. Select "Ok" to close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open With ..." menu item.</p><p></p></li><li><p>Enter "kdesu" as the command to open the Zenoss installer.</p><p></p></li></ol></div></li><li><p>Opening the Installer in Gnome</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Allow executing file as program" check box. Close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open with Other Application! ..." menu item.</p><p></p></li><li><p>Select the "Use a custom! command " item. Enter "gksu".</p></li></ol></div></li></ol></div><p></p></li><li><p>The installer will prompt for the following basic configuration information upon startup.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>The installation location (default /usr/local/zenoss)</p></li><li><p>The root password for MySQL</p></li></ul></div><p>If your computer is already running programs that conflict with the Zenoss networking configuration, you will see additional prompts to choose alternative port numbers.</p><p>Once you install Zenoss, you can reach the web-based user interface with the url:</p><p>http://<zenoss computer>:8080/</p><p>If you already had something using port 8080, you will be prompted for a new port on installation. For example, if you installed on your local computer, and selected port 8888 as the new port for the Zope server, you would use the following url: http://localhost:8888</p><p></p><p>If the installer is run from a desktop, it will provide th! e following graphical dialog prompts. If the installer is run from a headless or remote location, it will use simple command-line prompts.</p><p>After launching the installer, the initial Zenoss installer screen appears.</p><div class="figure"><a name="d0e133"></a><p class="title"><b>Figure 1. Zenoss Installer Screen - Welcome</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-welcome-1.png" width="351" alt="Zenoss Installer Screen - Welcome"></div></div></div><br class="figure-break"><p>Click Forward to proceed.</p></li><li><p>Choose the install location for Zenoss.</p><div class="figure"><a name="d0e144"></a><p class="title"><b>Figure 2. Zenoss Installer Screen Location</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-location-2.png" width="351" alt="Zenoss Installer Screen Location"></div></div></div><br class="figure-break"><p>Click Forward.</p></l! i><li><p>The next Installer screen appears prompting you for t! he MySQL password information.</p><p></p><div class="figure"><a name="d0e156"></a><p class="title"><b>Figure 3. Zenoss Installer Screen - MySQL Password</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-MySQL-3.png" width="351" alt="Zenoss Installer Screen - MySQL Password"></div></div></div><br class="figure-break"><p>The root password for MySQL is for a fresh installation of MySQL dedicated exclusively to Zenoss and not the root password for the computer, or the root password to any existing MySQL installation. You may use any non-empty password, this password is not stored by the Zenoss installer.</p><p>Click Forward.</p></li><li><p>You are now ready to Install Zenoss.</p><div class="figure"><a name="d0e169"></a><p class="title"><b>Figure 4. Zenoss Installer Screen - Ready to Install</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-ready-4.png" width="351" ! alt="Zenoss Installer Screen - Ready to Install"></div></div></div><br class="figure-break"><p>Click forward to start the install process.</p><div class="figure"><a name="d0e177"></a><p class="title"><b>Figure 5. Zenoss Installer Screen - Progress Bar</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-progress-6.png" width="351" alt="Zenoss Installer Screen - Progress Bar"></div></div></div><br class="figure-break"><p>This point in the installation process may take several minutes without showing any change. Note that there is a long pause near the end of the installation as Zenoss is initializing itself. This wait may take several minutes.</p><p></p></li><li><p>When installation is complete you will see the following dialog.</p><div class="figure"><a name="d0e189"></a><p class="title"><b>Figure 6. Zenoss Installer Screen - Finish and Launch Zenoss</b></p><div class="figure-contents"><div class="mediaobj! ect"><img src="resources/Installer_Screenshot-finish-7.png" wi! dth="351 " alt="Zenoss Installer Screen - Finish and Launch Zenoss"></div></div></div><br class="figure-break"><p>If you select "Launch Zenoss" the installer will attempt to run your web browser and point it to Zenoss. If this fails (usually because your browser is already running), just use the URL scheme discussed in step 3 above.</p></li></ol></div></div></body></html> \ No newline at end of file |
From: <sv...@ze...> - 2008-05-19 16:37:20
|
Author: abray Date: 2008-05-19 12:37:20 -0400 (Mon, 19 May 2008) New Revision: 9305 Removed: trunk/zendocs/Install/StackInstall/out/ Log: drew removing some test files for HTML images in docs |
From: <sv...@ze...> - 2008-05-19 16:33:39
|
Author: ian Date: 2008-05-19 12:33:24 -0400 (Mon, 19 May 2008) New Revision: 9304 Modified: sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py Log: * Fixed a typo Modified: sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py 2008-05-19 16:31:23 UTC (rev 9303) +++ sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py 2008-05-19 16:33:24 UTC (rev 9304) @@ -89,7 +89,7 @@ initialServices = ['EventService'] heartbeatEvent = {'eventClass':Heartbeat} heartbeatTimeout = 60*3 - _customExitCode = 0 + _customexitcode = 0 def __init__(self, noopts=0, keeproot=False): ZenDaemon.__init__(self, noopts, keeproot) |
From: <sv...@ze...> - 2008-05-19 16:31:21
|
Author: ian Date: 2008-05-19 12:31:23 -0400 (Mon, 19 May 2008) New Revision: 9303 Modified: sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py Log: * Refs #550: Force zendisc to use custom exit code Modified: sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py 2008-05-19 16:10:45 UTC (rev 9302) +++ sandboxen/jplouis/Products-remoteStuff/DataCollector/zendisc.py 2008-05-19 16:31:23 UTC (rev 9303) @@ -273,7 +273,7 @@ self.log.info("ip '%s' on device '%s' skipping", ip, dev.id) if self.options.device: - sys.exit(3) + self._customexitcode = 3 yield succeed(dev) driver.next() return Modified: sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py 2008-05-19 16:10:45 UTC (rev 9302) +++ sandboxen/jplouis/Products-remoteStuff/ZenHub/PBDaemon.py 2008-05-19 16:31:23 UTC (rev 9303) @@ -18,6 +18,7 @@ ''' import Globals +import sys from Products.ZenUtils.ZenDaemon import ZenDaemon from Products.ZenEvents.ZenEventClasses import Heartbeat from Products.ZenUtils.PBUtil import ReconnectingPBClientFactory @@ -88,6 +89,7 @@ initialServices = ['EventService'] heartbeatEvent = {'eventClass':Heartbeat} heartbeatTimeout = 60*3 + _customExitCode = 0 def __init__(self, noopts=0, keeproot=False): ZenDaemon.__init__(self, noopts, keeproot) @@ -204,6 +206,8 @@ d.addCallbacks(callback, errback) reactor.run() self.log.info('%s shutting down' % self.name) + if self._customexitcode: + sys.exit(self._customexitcode) def sigTerm(self, signum=None, frame=None): try: |
From: <sv...@ze...> - 2008-05-19 16:10:37
|
Author: abray Date: 2008-05-19 12:10:45 -0400 (Mon, 19 May 2008) New Revision: 9302 Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-location-2.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png Log: fixing images in HTML7drew Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-location-2.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png =================================================================== (Binary files differ) |
From: <sv...@ze...> - 2008-05-19 16:07:19
|
Author: abray Date: 2008-05-19 12:07:17 -0400 (Mon, 19 May 2008) New Revision: 9301 Added: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.pdf Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-MySQL-3.png trunk/zendocs/Install/StackInstall/Installer_Screenshot-finish-7.png trunk/zendocs/Install/StackInstall/Installer_Screenshot-location-2.png trunk/zendocs/Install/StackInstall/Installer_Screenshot-progress-6.png trunk/zendocs/Install/StackInstall/Installer_Screenshot-ready-4.png trunk/zendocs/Install/StackInstall/Installer_Screenshot-welcome-1.png trunk/zendocs/Install/StackInstall/ZenossStackInstallers.xml Log: fixing images in HTML6drew Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-MySQL-3.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-finish-7.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-location-2.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-progress-6.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-ready-4.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/Installer_Screenshot-welcome-1.png =================================================================== (Binary files differ) Added: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.pdf Property changes on: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.pdf ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.xml =================================================================== --- trunk/zendocs/Install/StackInstall/ZenossStackInstallers.xml 2008-05-19 15:54:28 UTC (rev 9300) +++ trunk/zendocs/Install/StackInstall/ZenossStackInstallers.xml 2008-05-19 16:07:17 UTC (rev 9301) @@ -216,7 +216,7 @@ <mediaobject> <imageobject> - <imagedata fileref="Installer_Screenshot-welcome-1.png" /> + <imagedata fileref="Installer_Screenshot-welcome-1.png" scale="65" /> </imageobject> </mediaobject> </figure> @@ -232,7 +232,8 @@ <mediaobject> <imageobject> - <imagedata fileref="Installer_Screenshot-location-2.png" /> + <imagedata fileref="Installer_Screenshot-location-2.png" + scale="65" /> </imageobject> </mediaobject> </figure> @@ -251,7 +252,7 @@ <mediaobject> <imageobject> - <imagedata fileref="Installer_Screenshot-MySQL-3.png" /> + <imagedata fileref="Installer_Screenshot-MySQL-3.png" scale="65" /> </imageobject> </mediaobject> </figure> @@ -273,7 +274,7 @@ <mediaobject> <imageobject> - <imagedata fileref="Installer_Screenshot-ready-4.png" /> + <imagedata fileref="Installer_Screenshot-ready-4.png" scale="65" /> </imageobject> </mediaobject> </figure> @@ -285,7 +286,8 @@ <mediaobject> <imageobject> - <imagedata fileref="Installer_Screenshot-progress-6.png" /> + <imagedata fileref="Installer_Screenshot-progress-6.png" + scale="65" /> </imageobject> </mediaobject> </figure> @@ -307,7 +309,7 @@ <mediaobject> <imageobject> - <imagedata fileref="Installer_Screenshot-finish-7.png" /> + <imagedata fileref="Installer_Screenshot-finish-7.png" scale="65" /> </imageobject> </mediaobject> </figure> |
From: <sv...@ze...> - 2008-05-19 15:54:41
|
Author: ian Date: 2008-05-19 11:54:28 -0400 (Mon, 19 May 2008) New Revision: 9300 Modified: trunk/Products/ZenModel/ZVersion.py Log: * Incrementing ZVersion.py to 2.2.70 Modified: trunk/Products/ZenModel/ZVersion.py =================================================================== --- trunk/Products/ZenModel/ZVersion.py 2008-05-19 15:34:35 UTC (rev 9299) +++ trunk/Products/ZenModel/ZVersion.py 2008-05-19 15:54:28 UTC (rev 9300) @@ -10,4 +10,4 @@ # For complete information please visit: http://www.zenoss.com/oss/ # ########################################################################### -VERSION="2.2.0" +VERSION="2.2.70" |
From: <sv...@ze...> - 2008-05-19 15:34:49
|
Author: abray Date: 2008-05-19 11:34:35 -0400 (Mon, 19 May 2008) New Revision: 9299 Added: trunk/zendocs/Install/StackInstall/out/ trunk/zendocs/Install/StackInstall/out/html.css trunk/zendocs/Install/StackInstall/out/images/ trunk/zendocs/Install/StackInstall/out/images/callouts/ trunk/zendocs/Install/StackInstall/out/images/callouts/1.png trunk/zendocs/Install/StackInstall/out/images/callouts/10.png trunk/zendocs/Install/StackInstall/out/images/callouts/11.png trunk/zendocs/Install/StackInstall/out/images/callouts/12.png trunk/zendocs/Install/StackInstall/out/images/callouts/13.png trunk/zendocs/Install/StackInstall/out/images/callouts/14.png trunk/zendocs/Install/StackInstall/out/images/callouts/15.png trunk/zendocs/Install/StackInstall/out/images/callouts/2.png trunk/zendocs/Install/StackInstall/out/images/callouts/3.png trunk/zendocs/Install/StackInstall/out/images/callouts/4.png trunk/zendocs/Install/StackInstall/out/images/callouts/5.png trunk/zendocs/Install/StackInstall/out/images/callouts/6.png trunk/zendocs/Install/StackInstall/out/images/callouts/7.png trunk/zendocs/Install/StackInstall/out/images/callouts/8.png trunk/zendocs/Install/StackInstall/out/images/callouts/9.png trunk/zendocs/Install/StackInstall/out/images/draft.png trunk/zendocs/Install/StackInstall/out/index.html trunk/zendocs/Install/StackInstall/out/resources/ trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-MySQL-3.png trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-finish-7.png trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-location-2.png trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-progress-6.png trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-ready-4.png trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-welcome-1.png Log: Checking in new directory for html image changes Added: trunk/zendocs/Install/StackInstall/out/html.css Added: trunk/zendocs/Install/StackInstall/out/images/callouts/1.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/1.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/10.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/10.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/11.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/11.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/12.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/12.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/13.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/13.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/14.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/14.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/15.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/15.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/2.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/2.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/3.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/3.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/4.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/4.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/5.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/5.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/6.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/6.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/7.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/7.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/8.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/8.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/callouts/9.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/callouts/9.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/images/draft.png Property changes on: trunk/zendocs/Install/StackInstall/out/images/draft.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/zendocs/Install/StackInstall/out/index.html Added: trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-MySQL-3.png Added: trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-finish-7.png Added: trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-location-2.png Added: trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-progress-6.png Added: trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-ready-4.png Added: trunk/zendocs/Install/StackInstall/out/resources/Installer_Screenshot-welcome-1.png |
From: <sv...@ze...> - 2008-05-19 15:21:58
|
Author: abray Date: 2008-05-19 11:21:47 -0400 (Mon, 19 May 2008) New Revision: 9298 Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html Log: image fixes in HTML stack install doc4 Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html =================================================================== --- trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html 2008-05-19 14:57:39 UTC (rev 9297) +++ trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html 2008-05-19 15:21:47 UTC (rev 9298) @@ -1,3 +1,3 @@ <html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>1. Installing Zenoss from the GUI-Based Stack Installers</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1"></a>1. Installing Zenoss from the GUI-Based Stack Installers</h2></div></div><hr></div><p>This document will step you through installing Zenoss and the Zenoss stack using the point and click stack installers. These installers work on the following Linux platforms and architectures.</p><p></p><p>NOTE: If you are upgrading from a previous Zenoss installation that was not a stack installer, please follow the instructions in the document named "UPGRADE_FROM_SOURCE_TO _INSTALL_STACK.txt" which is also available from the Zenoss website.</p><p></p><div class="orderedlist"><ol ty! pe="1"><li><p>Download the latest installation package from http://www.zenoss.com/download.</p><p></p></li><li><p>Choose from the following installation methods depending on your environment; Command Line, KDE, or Gnome. Then continue following the installation instructions with Step number 3 below.</p><div class="orderedlist"><ol type="a"><li><p>Opening the Installer Using the Command Line</p><p>Note that zenoss*.bin is the current file you are trying to install.</p><div class="orderedlist"><ol type="i"><li><p>Open a command-line prompt and change directories (cd) into the directory where you downloaded the installer.</p><pre class="programlisting">$ cd <Your download directory>/</pre><p></p></li><li><p>Make the installer executable using the command:</p><pre class="programlisting">$ chmod +x ./zenoss*.bin</pre><p></p></li><li><p>Execute the installer as root. If you know your root password, use the su command:</p><pre class="programlisting">$ su root -c ./zenoss*.bi! n</pre><p>If you do not know your root password, use the sudo ! command: </p><pre class="programlisting">$ sudo ./zenoss*.bin</pre></li><li><p>Answer the installation prompts (as described starting in step 3 below). The package will be installed in /usr/local/zenoss.</p><p></p></li><li><p>The package will create a zenoss user with a home directory in /home/zenoss. In order to run commands that are specified in the Zenoss admin guide, you must become the zenoss user.</p><p>If you know your root password, use the su command to become root, then to become user zenoss:</p><pre class="programlisting">$ su - root # su - zenoss</pre><p>If you don't know your root password, use the sudo command:</p><pre class="programlisting">$ sudo su - zenoss</pre><p>If you would prefer not to become the zenoss user, you can also run:</p><pre class="programlisting">$ /usr/local/zenoss/zenconsole</pre><p>to enter a shell with the Zenoss environment. You can then start/stop daemons, enter zendmd, and perform other command line tasks.</p><p></p></li></ol></div></li><li><p! >Opening the Installer in KDE</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Is executable" check box. Select "Ok" to close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open With ..." menu item.</p><p></p></li><li><p>Enter "kdesu" as the command to open the Zenoss installer.</p><p></p></li></ol></div></li><li><p>Opening the Installer in Gnome</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Allow executing file as program" check box. Close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open with Other Application! ..." menu item.</p><p></p></li><li><p>Select the "Use a custom! command " item. Enter "gksu".</p></li></ol></div></li></ol></div><p></p></li><li><p>The installer will prompt for the following basic configuration information upon startup.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>The installation location (default /usr/local/zenoss)</p></li><li><p>The root password for MySQL</p></li></ul></div><p>If your computer is already running programs that conflict with the Zenoss networking configuration, you will see additional prompts to choose alternative port numbers.</p><p>Once you install Zenoss, you can reach the web-based user interface with the url:</p><p>http://<zenoss computer>:8080/</p><p>If you already had something using port 8080, you will be prompted for a new port on installation. For example, if you installed on your local computer, and selected port 8888 as the new port for the Zope server, you would use the following url: http://localhost:8888</p><p></p><p>If the installer is run from a desktop, it will provide th! e following graphical dialog prompts. If the installer is run from a headless or remote location, it will use simple command-line prompts.</p><p>After launching the installer, the initial Zenoss installer screen appears.</p><div class="figure"><a name="d0e133"></a><p class="title"><b>Figure 1. Zenoss Installer Screen - Welcome</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png" alt="Zenoss Installer Screen - Welcome"></div></div></div><br class="figure-break"><p>Click Forward to proceed.</p></li><li><p>Choose the install location for Zenoss.</p><div class="figure"><a name="d0e144"></a><p class="title"><b>Figure 2. Zenoss Installer Screen Location</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources//Installer_Screenshot-location-2.png" alt="Ze! noss Installer Screen Location"></div></div></div><br class="f! igure-br eak"><p>Click Forward.</p></li><li><p>The next Installer screen appears prompting you for the MySQL password information.</p><p></p><div class="figure"><a name="d0e156"></a><p class="title"><b>Figure 3. Zenoss Installer Screen - MySQL Password</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png" alt="Zenoss Installer Screen - MySQL Password"></div></div></div><br class="figure-break"><p>The root password for MySQL is for a fresh installation of MySQL dedicated exclusively to Zenoss and not the root password for the computer, or the root password to any existing MySQL installation. You may use any non-empty password, this password is not stored by the Zenoss installer.</p><p>Click Forward.</p></li><li><p>You are now ready to Install Zenoss.</p><div class="figure"><a name="d0e169"></a><p class="title"><b>Figure 4. Zenoss Installer Scree! n - Ready to Install</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png" alt="Zenoss Installer Screen - Ready to Install"></div></div></div><br class="figure-break"><p>Click forward to start the install process.</p><div class="figure"><a name="d0e177"></a><p class="title"><b>Figure 5. Zenoss Installer Screen - Progress Bar</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png" alt="Zenoss Installer Screen - Progress Bar"></div></div></div><br class="figure-break"><p>This point in the installation process may take several minutes without showing any change. Note that there is a long pause near the end of the installation as Zenoss is initializing itself. This wait may take several minutes.</p><p></p></li><li><p>When insta! llation is complete you will see the following dialog.</p><div! class=" figure"><a name="d0e189"></a><p class="title"><b>Figure 6. Zenoss Installer Screen - Finish and Launch Zenoss</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png" alt="Zenoss Installer Screen - Finish and Launch Zenoss"></div></div></div><br class="figure-break"><p>If you select "Launch Zenoss" the installer will attempt to run your web browser and point it to Zenoss. If this fails (usually because your browser is already running), just use the URL scheme discussed in step 3 above.</p></li></ol></div></div></body></html> \ No newline at end of file + <title>1. Installing Zenoss from the GUI-Based Stack Installers</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1"></a>1. Installing Zenoss from the GUI-Based Stack Installers</h2></div></div><hr></div><p>This document will step you through installing Zenoss and the Zenoss stack using the point and click stack installers. These installers work on the following Linux platforms and architectures.</p><p></p><p>NOTE: If you are upgrading from a previous Zenoss installation that was not a stack installer, please follow the instructions in the document named "UPGRADE_FROM_SOURCE_TO _INSTALL_STACK.txt" which is also available from the Zenoss website.</p><p></p><div class="orderedlist"><ol ty! pe="1"><li><p>Download the latest installation package from http://www.zenoss.com/download.</p><p></p></li><li><p>Choose from the following installation methods depending on your environment; Command Line, KDE, or Gnome. Then continue following the installation instructions with Step number 3 below.</p><div class="orderedlist"><ol type="a"><li><p>Opening the Installer Using the Command Line</p><p>Note that zenoss*.bin is the current file you are trying to install.</p><div class="orderedlist"><ol type="i"><li><p>Open a command-line prompt and change directories (cd) into the directory where you downloaded the installer.</p><pre class="programlisting">$ cd <Your download directory>/</pre><p></p></li><li><p>Make the installer executable using the command:</p><pre class="programlisting">$ chmod +x ./zenoss*.bin</pre><p></p></li><li><p>Execute the installer as root. If you know your root password, use the su command:</p><pre class="programlisting">$ su root -c ./zenoss*.bi! n</pre><p>If you do not know your root password, use the sudo ! command: </p><pre class="programlisting">$ sudo ./zenoss*.bin</pre></li><li><p>Answer the installation prompts (as described starting in step 3 below). The package will be installed in /usr/local/zenoss.</p><p></p></li><li><p>The package will create a zenoss user with a home directory in /home/zenoss. In order to run commands that are specified in the Zenoss admin guide, you must become the zenoss user.</p><p>If you know your root password, use the su command to become root, then to become user zenoss:</p><pre class="programlisting">$ su - root # su - zenoss</pre><p>If you don't know your root password, use the sudo command:</p><pre class="programlisting">$ sudo su - zenoss</pre><p>If you would prefer not to become the zenoss user, you can also run:</p><pre class="programlisting">$ /usr/local/zenoss/zenconsole</pre><p>to enter a shell with the Zenoss environment. You can then start/stop daemons, enter zendmd, and perform other command line tasks.</p><p></p></li></ol></div></li><li><p! >Opening the Installer in KDE</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Is executable" check box. Select "Ok" to close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open With ..." menu item.</p><p></p></li><li><p>Enter "kdesu" as the command to open the Zenoss installer.</p><p></p></li></ol></div></li><li><p>Opening the Installer in Gnome</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Allow executing file as program" check box. Close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open with Other Application! ..." menu item.</p><p></p></li><li><p>Select the "Use a custom! command " item. Enter "gksu".</p></li></ol></div></li></ol></div><p></p></li><li><p>The installer will prompt for the following basic configuration information upon startup.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>The installation location (default /usr/local/zenoss)</p></li><li><p>The root password for MySQL</p></li></ul></div><p>If your computer is already running programs that conflict with the Zenoss networking configuration, you will see additional prompts to choose alternative port numbers.</p><p>Once you install Zenoss, you can reach the web-based user interface with the url:</p><p>http://<zenoss computer>:8080/</p><p>If you already had something using port 8080, you will be prompted for a new port on installation. For example, if you installed on your local computer, and selected port 8888 as the new port for the Zope server, you would use the following url: http://localhost:8888</p><p></p><p>If the installer is run from a desktop, it will provide th! e following graphical dialog prompts. If the installer is run from a headless or remote location, it will use simple command-line prompts.</p><p>After launching the installer, the initial Zenoss installer screen appears.</p><div class="figure"><a name="d0e133"></a><p class="title"><b>Figure 1. Zenoss Installer Screen - Welcome</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png" alt="Zenoss Installer Screen - Welcome"></div></div></div><br class="figure-break"><p>Click Forward to proceed.</p></li><li><p>Choose the install location for Zenoss.</p><div class="figure"><a name="d0e144"></a><p class="title"><b>Figure 2. Zenoss Installer Screen Location</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-location-2.png" alt="Zen! oss Installer Screen Location"></div></div></div><br class="fi! gure-bre ak"><p>Click Forward.</p></li><li><p>The next Installer screen appears prompting you for the MySQL password information.</p><p></p><div class="figure"><a name="d0e156"></a><p class="title"><b>Figure 3. Zenoss Installer Screen - MySQL Password</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png" alt="Zenoss Installer Screen - MySQL Password"></div></div></div><br class="figure-break"><p>The root password for MySQL is for a fresh installation of MySQL dedicated exclusively to Zenoss and not the root password for the computer, or the root password to any existing MySQL installation. You may use any non-empty password, this password is not stored by the Zenoss installer.</p><p>Click Forward.</p></li><li><p>You are now ready to Install Zenoss.</p><div class="figure"><a name="d0e169"></a><p class="title"><b>Figure 4. Zenoss Installer Screen! - Ready to Install</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png" alt="Zenoss Installer Screen - Ready to Install"></div></div></div><br class="figure-break"><p>Click forward to start the install process.</p><div class="figure"><a name="d0e177"></a><p class="title"><b>Figure 5. Zenoss Installer Screen - Progress Bar</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png" alt="Zenoss Installer Screen - Progress Bar"></div></div></div><br class="figure-break"><p>This point in the installation process may take several minutes without showing any change. Note that there is a long pause near the end of the installation as Zenoss is initializing itself. This wait may take several minutes.</p><p></p></li><li><p>When instal! lation is complete you will see the following dialog.</p><div ! class="f igure"><a name="d0e189"></a><p class="title"><b>Figure 6. Zenoss Installer Screen - Finish and Launch Zenoss</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png" alt="Zenoss Installer Screen - Finish and Launch Zenoss"></div></div></div><br class="figure-break"><p>If you select "Launch Zenoss" the installer will attempt to run your web browser and point it to Zenoss. If this fails (usually because your browser is already running), just use the URL scheme discussed in step 3 above.</p></li></ol></div></div></body></html> \ No newline at end of file |
From: <sv...@ze...> - 2008-05-19 14:57:40
|
Author: abray Date: 2008-05-19 10:57:39 -0400 (Mon, 19 May 2008) New Revision: 9297 Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-location-2.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png Log: image fixes in HTML stack install doc3 Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-location-2.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png =================================================================== (Binary files differ) Modified: trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png =================================================================== (Binary files differ) |
From: <sv...@ze...> - 2008-05-19 14:45:44
|
Author: marc Date: 2008-05-19 10:45:33 -0400 (Mon, 19 May 2008) New Revision: 9296 Modified: branches/zenoss-2.2.x/inst/docs/UPGRADE.txt Log: Backported Appliance Upgrade Instructions, refs #3187 Modified: branches/zenoss-2.2.x/inst/docs/UPGRADE.txt =================================================================== --- branches/zenoss-2.2.x/inst/docs/UPGRADE.txt 2008-05-19 14:40:36 UTC (rev 9295) +++ branches/zenoss-2.2.x/inst/docs/UPGRADE.txt 2008-05-19 14:45:33 UTC (rev 9296) @@ -30,18 +30,35 @@ zenoss-1.1.0-0.i386.rpm # service zenoss start -** Updating the Zenoss Virtual Appliance Image +** Zenoss Virtual Appliance Image -Login as the zenoss user. To log in as the zenoss user, when prompted for log -in, first, log in as root, then enter the command to log in as the zenoss user: -# su - zenoss +Login as the root user. -Make a backup of your data. Use the following command to create a copy of -ZENHOME: # cd $ZENHOME # tar -czvf /tmp/zenoss-var.tar.gz ./var +Make a backup of your data using zenbackup. +Then run one of the following commands. + +If you would like to upgrade to the beta version of Zenoss, +run this command: -Run appliance_update.sh # ./appliance_update.sh +root# conary migrate --interactive +group-zenoss=zenoss-project.zenoss.loc=zenoss-project.zenoss.loc@ +zenoss:core-beta +If you would like to upgrade to the 2.2.x version of Zenoss, +run this command: +root# conary migrate --interactive +group-zenoss=zenoss-project.zenoss.loc=zenoss-project.zenoss.loc@ +zenoss:core-2.2 + +If you would like to upgrade to the 2.1.x version of Zenoss, +run this command: + +root# conary migrate --interactive +group-zenoss=zenoss-project.zenoss.loc=zenoss-project.zenoss.loc@ +zenoss:core + + ** Upgrade a trunk based install Login as the zenoss user. To log in as the zenoss user, when prompted for log |
From: <sv...@ze...> - 2008-05-19 14:40:39
|
Author: marc Date: 2008-05-19 10:40:36 -0400 (Mon, 19 May 2008) New Revision: 9295 Modified: trunk/inst/docs/UPGRADE.txt Log: * Making instructions less than 70 chars, refs #3187 Modified: trunk/inst/docs/UPGRADE.txt =================================================================== --- trunk/inst/docs/UPGRADE.txt 2008-05-19 14:23:21 UTC (rev 9294) +++ trunk/inst/docs/UPGRADE.txt 2008-05-19 14:40:36 UTC (rev 9295) @@ -36,21 +36,25 @@ Login as the root user. -Make a backup of your data using zenbackup +Make a backup of your data using zenbackup. +Then run one of the following commands. + +If you would like to upgrade to the beta version of Zenoss, +run this command: -Then run this command one of the following commands. If you would like to upgrade to the beta version of Zenoss, run this command: - root# conary migrate --interactive group-zenoss=zenoss-project.zenoss.loc=zenoss-project.zenoss.loc@ zenoss:core-beta -If you would like to upgrade to the 2.2.x version of Zenoss, run this command: +If you would like to upgrade to the 2.2.x version of Zenoss, +run this command: root# conary migrate --interactive group-zenoss=zenoss-project.zenoss.loc=zenoss-project.zenoss.loc@ zenoss:core-2.2 -If you would like to upgrade to the 2.1.x version of Zenoss, run this command: +If you would like to upgrade to the 2.1.x version of Zenoss, +run this command: root# conary migrate --interactive group-zenoss=zenoss-project.zenoss.loc=zenoss-project.zenoss.loc@ |
From: <sv...@ze...> - 2008-05-19 14:23:18
|
Author: ian Date: 2008-05-19 10:23:21 -0400 (Mon, 19 May 2008) New Revision: 9294 Modified: branches/zenoss-2.2.x/inst/docs/INSTALL_RPM_STACK.txt Log: * Backporting r9293 into branch Modified: branches/zenoss-2.2.x/inst/docs/INSTALL_RPM_STACK.txt =================================================================== --- branches/zenoss-2.2.x/inst/docs/INSTALL_RPM_STACK.txt 2008-05-19 14:22:11 UTC (rev 9293) +++ branches/zenoss-2.2.x/inst/docs/INSTALL_RPM_STACK.txt 2008-05-19 14:23:21 UTC (rev 9294) @@ -6,15 +6,12 @@ $ rpm -Uvh zenoss-stack-2.2.0-0.rpm -Alternatively, you can add the Zenoss yum repository to /etc/yum.conf: +Alternatively, you can add the Zenoss repository to yum: - [zenoss] - name=Zenoss Stable - baseurl=http://dev.zenoss.org/yum/stable + $ rpm -i http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm Then: - $ yum update $ yum install zenoss-stack 2. Zenoss will be installed in /usr/local/zenoss. Start it using: |
From: <sv...@ze...> - 2008-05-19 14:22:24
|
Author: ian Date: 2008-05-19 10:22:11 -0400 (Mon, 19 May 2008) New Revision: 9293 Modified: trunk/inst/docs/INSTALL_RPM_STACK.txt Log: * Fixed yum repository install instructions Modified: trunk/inst/docs/INSTALL_RPM_STACK.txt =================================================================== --- trunk/inst/docs/INSTALL_RPM_STACK.txt 2008-05-19 13:27:17 UTC (rev 9292) +++ trunk/inst/docs/INSTALL_RPM_STACK.txt 2008-05-19 14:22:11 UTC (rev 9293) @@ -6,15 +6,12 @@ $ rpm -Uvh zenoss-stack-2.2.0-0.rpm -Alternatively, you can add the Zenoss yum repository to /etc/yum.conf: +Alternatively, you can add the Zenoss repository to yum: - [zenoss] - name=Zenoss Stable - baseurl=http://dev.zenoss.org/yum/stable + $ rpm -i http://dev.zenoss.org/yum/zenoss-repo-1-1.noarch.rpm Then: - $ yum update $ yum install zenoss-stack 2. Zenoss will be installed in /usr/local/zenoss. Start it using: |
From: <sv...@ze...> - 2008-05-19 13:27:17
|
Author: abray Date: 2008-05-19 09:27:17 -0400 (Mon, 19 May 2008) New Revision: 9292 Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html Log: image fixes in HTML stack install doc Modified: trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html =================================================================== --- trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html 2008-05-19 13:12:56 UTC (rev 9291) +++ trunk/zendocs/Install/StackInstall/ZenossStackInstallers.html 2008-05-19 13:27:17 UTC (rev 9292) @@ -1,3 +1,3 @@ <html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> - <title>1. Installing Zenoss from the GUI-Based Stack Installers</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1"></a>1. Installing Zenoss from the GUI-Based Stack Installers</h2></div></div><hr></div><p>This document will step you through installing Zenoss and the Zenoss stack using the point and click stack installers. These installers work on the following Linux platforms and architectures.</p><p></p><p>NOTE: If you are upgrading from a previous Zenoss installation that was not a stack installer, please follow the instructions in the document named "UPGRADE_FROM_SOURCE_TO _INSTALL_STACK.txt" which is also available from the Zenoss website.</p><p></p><div class="orderedlist"><ol ty! pe="1"><li><p>Download the latest installation package from http://www.zenoss.com/download.</p><p></p></li><li><p>Choose from the following installation methods depending on your environment; Command Line, KDE, or Gnome. Then continue following the installation instructions with Step number 3 below.</p><div class="orderedlist"><ol type="a"><li><p>Opening the Installer Using the Command Line</p><p>Note that zenoss*.bin is the current file you are trying to install.</p><div class="orderedlist"><ol type="i"><li><p>Open a command-line prompt and change directories (cd) into the directory where you downloaded the installer.</p><pre class="programlisting">$ cd <Your download directory>/</pre><p></p></li><li><p>Make the installer executable using the command:</p><pre class="programlisting">$ chmod +x ./zenoss*.bin</pre><p></p></li><li><p>Execute the installer as root. If you know your root password, use the su command:</p><pre class="programlisting">$ su root -c ./zenoss*.bi! n</pre><p>If you do not know your root password, use the sudo ! command: </p><pre class="programlisting">$ sudo ./zenoss*.bin</pre></li><li><p>Answer the installation prompts (as described starting in step 3 below). The package will be installed in /usr/local/zenoss.</p><p></p></li><li><p>The package will create a zenoss user with a home directory in /home/zenoss. In order to run commands that are specified in the Zenoss admin guide, you must become the zenoss user.</p><p>If you know your root password, use the su command to become root, then to become user zenoss:</p><pre class="programlisting">$ su - root # su - zenoss</pre><p>If you don't know your root password, use the sudo command:</p><pre class="programlisting">$ sudo su - zenoss</pre><p>If you would prefer not to become the zenoss user, you can also run:</p><pre class="programlisting">$ /usr/local/zenoss/zenconsole</pre><p>to enter a shell with the Zenoss environment. You can then start/stop daemons, enter zendmd, and perform other command line tasks.</p><p></p></li></ol></div></li><li><p! >Opening the Installer in KDE</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Is executable" check box. Select "Ok" to close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open With ..." menu item.</p><p></p></li><li><p>Enter "kdesu" as the command to open the Zenoss installer.</p><p></p></li></ol></div></li><li><p>Opening the Installer in Gnome</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Allow executing file as program" check box. Close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open with Other Application! ..." menu item.</p><p></p></li><li><p>Select the "Use a custom! command " item. Enter "gksu".</p></li></ol></div></li></ol></div><p></p></li><li><p>The installer will prompt for the following basic configuration information upon startup.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>The installation location (default /usr/local/zenoss)</p></li><li><p>The root password for MySQL</p></li></ul></div><p>If your computer is already running programs that conflict with the Zenoss networking configuration, you will see additional prompts to choose alternative port numbers.</p><p>Once you install Zenoss, you can reach the web-based user interface with the url:</p><p>http://<zenoss computer>:8080/</p><p>If you already had something using port 8080, you will be prompted for a new port on installation. For example, if you installed on your local computer, and selected port 8888 as the new port for the Zope server, you would use the following url: http://localhost:8888</p><p></p><p>If the installer is run from a desktop, it will provide th! e following graphical dialog prompts. If the installer is run from a headless or remote location, it will use simple command-line prompts.</p><p>After launching the installer, the initial Zenoss installer screen appears.</p><div class="figure"><a name="d0e133"></a><p class="title"><b>Figure 1. Zenoss Installer Screen - Welcome</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-welcome-1.png" alt="Zenoss Installer Screen - Welcome"></div></div></div><br class="figure-break"><p>Click Forward to proceed.</p></li><li><p>Choose the install location for Zenoss.</p><div class="figure"><a name="d0e144"></a><p class="title"><b>Figure 2. Zenoss Installer Screen Location</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-location-2.png" alt="Zenoss Installer Screen Location"></div></div></div><br class="figure-break"><p>Click Forward.</p></li><li><p>The next Instal! ler screen appears prompting you for the MySQL password inform! ation.</ p><p></p><div class="figure"><a name="d0e156"></a><p class="title"><b>Figure 3. Zenoss Installer Screen - MySQL Password</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-MySQL-3.png" alt="Zenoss Installer Screen - MySQL Password"></div></div></div><br class="figure-break"><p>The root password for MySQL is for a fresh installation of MySQL dedicated exclusively to Zenoss and not the root password for the computer, or the root password to any existing MySQL installation. You may use any non-empty password, this password is not stored by the Zenoss installer.</p><p>Click Forward.</p></li><li><p>You are now ready to Install Zenoss.</p><div class="figure"><a name="d0e169"></a><p class="title"><b>Figure 4. Zenoss Installer Screen - Ready to Install</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-ready-4.png" alt="Zenoss Installer Screen - Ready to Install"! ></div></div></div><br class="figure-break"><p>Click forward to start the install process.</p><div class="figure"><a name="d0e177"></a><p class="title"><b>Figure 5. Zenoss Installer Screen - Progress Bar</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-progress-6.png" alt="Zenoss Installer Screen - Progress Bar"></div></div></div><br class="figure-break"><p>This point in the installation process may take several minutes without showing any change. Note that there is a long pause near the end of the installation as Zenoss is initializing itself. This wait may take several minutes.</p><p></p></li><li><p>When installation is complete you will see the following dialog.</p><div class="figure"><a name="d0e189"></a><p class="title"><b>Figure 6. Zenoss Installer Screen - Finish and Launch Zenoss</b></p><div class="figure-contents"><div class="mediaobject"><img src="resources/Installer_Screenshot-finish-7.png" ! alt="Zenoss Installer Screen - Finish and Launch Zenoss"></div! ></div>< /div><br class="figure-break"><p>If you select "Launch Zenoss" the installer will attempt to run your web browser and point it to Zenoss. If this fails (usually because your browser is already running), just use the URL scheme discussed in step 3 above.</p></li></ol></div></div></body></html> \ No newline at end of file + <title>1. Installing Zenoss from the GUI-Based Stack Installers</title><link rel="stylesheet" href="html.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="section" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="d0e1"></a>1. Installing Zenoss from the GUI-Based Stack Installers</h2></div></div><hr></div><p>This document will step you through installing Zenoss and the Zenoss stack using the point and click stack installers. These installers work on the following Linux platforms and architectures.</p><p></p><p>NOTE: If you are upgrading from a previous Zenoss installation that was not a stack installer, please follow the instructions in the document named "UPGRADE_FROM_SOURCE_TO _INSTALL_STACK.txt" which is also available from the Zenoss website.</p><p></p><div class="orderedlist"><ol ty! pe="1"><li><p>Download the latest installation package from http://www.zenoss.com/download.</p><p></p></li><li><p>Choose from the following installation methods depending on your environment; Command Line, KDE, or Gnome. Then continue following the installation instructions with Step number 3 below.</p><div class="orderedlist"><ol type="a"><li><p>Opening the Installer Using the Command Line</p><p>Note that zenoss*.bin is the current file you are trying to install.</p><div class="orderedlist"><ol type="i"><li><p>Open a command-line prompt and change directories (cd) into the directory where you downloaded the installer.</p><pre class="programlisting">$ cd <Your download directory>/</pre><p></p></li><li><p>Make the installer executable using the command:</p><pre class="programlisting">$ chmod +x ./zenoss*.bin</pre><p></p></li><li><p>Execute the installer as root. If you know your root password, use the su command:</p><pre class="programlisting">$ su root -c ./zenoss*.bi! n</pre><p>If you do not know your root password, use the sudo ! command: </p><pre class="programlisting">$ sudo ./zenoss*.bin</pre></li><li><p>Answer the installation prompts (as described starting in step 3 below). The package will be installed in /usr/local/zenoss.</p><p></p></li><li><p>The package will create a zenoss user with a home directory in /home/zenoss. In order to run commands that are specified in the Zenoss admin guide, you must become the zenoss user.</p><p>If you know your root password, use the su command to become root, then to become user zenoss:</p><pre class="programlisting">$ su - root # su - zenoss</pre><p>If you don't know your root password, use the sudo command:</p><pre class="programlisting">$ sudo su - zenoss</pre><p>If you would prefer not to become the zenoss user, you can also run:</p><pre class="programlisting">$ /usr/local/zenoss/zenconsole</pre><p>to enter a shell with the Zenoss environment. You can then start/stop daemons, enter zendmd, and perform other command line tasks.</p><p></p></li></ol></div></li><li><p! >Opening the Installer in KDE</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Is executable" check box. Select "Ok" to close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open With ..." menu item.</p><p></p></li><li><p>Enter "kdesu" as the command to open the Zenoss installer.</p><p></p></li></ol></div></li><li><p>Opening the Installer in Gnome</p><div class="orderedlist"><ol type="i"><li><p>Make the file executable. Locate the downloaded file, and right-click on it, and select the "Properties" menu item.</p><p></p></li><li><p>Select the "Permissions" tab and check the "Allow executing file as program" check box. Close the dialog.</p><p></p></li><li><p>Run the program as root. Right click on the file and select the "Open with Other Application! ..." menu item.</p><p></p></li><li><p>Select the "Use a custom! command " item. Enter "gksu".</p></li></ol></div></li></ol></div><p></p></li><li><p>The installer will prompt for the following basic configuration information upon startup.</p><p></p><div class="itemizedlist"><ul type="disc"><li><p>The installation location (default /usr/local/zenoss)</p></li><li><p>The root password for MySQL</p></li></ul></div><p>If your computer is already running programs that conflict with the Zenoss networking configuration, you will see additional prompts to choose alternative port numbers.</p><p>Once you install Zenoss, you can reach the web-based user interface with the url:</p><p>http://<zenoss computer>:8080/</p><p>If you already had something using port 8080, you will be prompted for a new port on installation. For example, if you installed on your local computer, and selected port 8888 as the new port for the Zope server, you would use the following url: http://localhost:8888</p><p></p><p>If the installer is run from a desktop, it will provide th! e following graphical dialog prompts. If the installer is run from a headless or remote location, it will use simple command-line prompts.</p><p>After launching the installer, the initial Zenoss installer screen appears.</p><div class="figure"><a name="d0e133"></a><p class="title"><b>Figure 1. Zenoss Installer Screen - Welcome</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-welcome-1.png" alt="Zenoss Installer Screen - Welcome"></div></div></div><br class="figure-break"><p>Click Forward to proceed.</p></li><li><p>Choose the install location for Zenoss.</p><div class="figure"><a name="d0e144"></a><p class="title"><b>Figure 2. Zenoss Installer Screen Location</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources//Installer_Screenshot-location-2.png" alt="Ze! noss Installer Screen Location"></div></div></div><br class="f! igure-br eak"><p>Click Forward.</p></li><li><p>The next Installer screen appears prompting you for the MySQL password information.</p><p></p><div class="figure"><a name="d0e156"></a><p class="title"><b>Figure 3. Zenoss Installer Screen - MySQL Password</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-MySQL-3.png" alt="Zenoss Installer Screen - MySQL Password"></div></div></div><br class="figure-break"><p>The root password for MySQL is for a fresh installation of MySQL dedicated exclusively to Zenoss and not the root password for the computer, or the root password to any existing MySQL installation. You may use any non-empty password, this password is not stored by the Zenoss installer.</p><p>Click Forward.</p></li><li><p>You are now ready to Install Zenoss.</p><div class="figure"><a name="d0e169"></a><p class="title"><b>Figure 4. Zenoss Installer Scree! n - Ready to Install</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-ready-4.png" alt="Zenoss Installer Screen - Ready to Install"></div></div></div><br class="figure-break"><p>Click forward to start the install process.</p><div class="figure"><a name="d0e177"></a><p class="title"><b>Figure 5. Zenoss Installer Screen - Progress Bar</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-progress-6.png" alt="Zenoss Installer Screen - Progress Bar"></div></div></div><br class="figure-break"><p>This point in the installation process may take several minutes without showing any change. Note that there is a long pause near the end of the installation as Zenoss is initializing itself. This wait may take several minutes.</p><p></p></li><li><p>When insta! llation is complete you will see the following dialog.</p><div! class=" figure"><a name="d0e189"></a><p class="title"><b>Figure 6. Zenoss Installer Screen - Finish and Launch Zenoss</b></p><div class="figure-contents"><div class="mediaobject"><img src="http://dev.zenoss.com/svn/trunk/zendocs/Install/StackInstall/resources/Installer_Screenshot-finish-7.png" alt="Zenoss Installer Screen - Finish and Launch Zenoss"></div></div></div><br class="figure-break"><p>If you select "Launch Zenoss" the installer will attempt to run your web browser and point it to Zenoss. If this fails (usually because your browser is already running), just use the URL scheme discussed in step 3 above.</p></li></ol></div></div></body></html> \ No newline at end of file |
From: <sv...@ze...> - 2008-05-19 13:12:47
|
Author: ecn Date: 2008-05-19 09:12:56 -0400 (Mon, 19 May 2008) New Revision: 9291 Removed: sandboxen/jplouis/Products-remoteStuff/ZenEvents/tests/testSyslogProcessing.py Modified: sandboxen/jplouis/Products-remoteStuff/ZenEvents/SyslogProcessing.py Log: revert inadvertent changes to JP's sandbox Modified: sandboxen/jplouis/Products-remoteStuff/ZenEvents/SyslogProcessing.py =================================================================== --- sandboxen/jplouis/Products-remoteStuff/ZenEvents/SyslogProcessing.py 2008-05-19 13:09:32 UTC (rev 9290) +++ sandboxen/jplouis/Products-remoteStuff/ZenEvents/SyslogProcessing.py 2008-05-19 13:12:56 UTC (rev 9291) @@ -177,13 +177,13 @@ syslog events we use the summary of the event to perform a full text or'ed search. """ - if evt.has_key('eventClassKey') or evt.has_key( 'eventClass'): + if hasattr(evt, 'eventClassKey') or hasattr(evt, 'eventClass'): return evt - elif evt.has_key( 'ntevid'): + elif hasattr(evt, 'ntevid'): evt['eventClassKey'] = "%s_%s" % (evt['component'],evt['ntevid']) - elif evt.has_key( 'component'): + elif hasattr(evt, 'component'): evt['eventClassKey'] = evt['component'] - if evt.has_key( 'eventClassKey'): + if hasattr(evt, 'eventClassKey'): slog.debug("eventClassKey=%s", evt['eventClassKey']) try: evt['eventClassKey'] = evt['eventClassKey'].decode('latin-1') Deleted: sandboxen/jplouis/Products-remoteStuff/ZenEvents/tests/testSyslogProcessing.py |
From: <sv...@ze...> - 2008-05-19 13:09:24
|
Author: ecn Date: 2008-05-19 09:09:32 -0400 (Mon, 19 May 2008) New Revision: 9290 Added: trunk/Products/ZenEvents/tests/testSyslogProcessing.py Modified: trunk/Products/ZenEvents/SyslogProcessing.py Log: fixes #3181: this time on the trunk Modified: trunk/Products/ZenEvents/SyslogProcessing.py =================================================================== --- trunk/Products/ZenEvents/SyslogProcessing.py 2008-05-19 12:53:21 UTC (rev 9289) +++ trunk/Products/ZenEvents/SyslogProcessing.py 2008-05-19 13:09:32 UTC (rev 9290) @@ -177,13 +177,13 @@ syslog events we use the summary of the event to perform a full text or'ed search. """ - if hasattr(evt, 'eventClassKey') or hasattr(evt, 'eventClass'): + if evt.has_key('eventClassKey') or evt.has_key( 'eventClass'): return evt - elif hasattr(evt, 'ntevid'): + elif evt.has_key( 'ntevid'): evt['eventClassKey'] = "%s_%s" % (evt['component'],evt['ntevid']) - elif hasattr(evt, 'component'): + elif evt.has_key( 'component'): evt['eventClassKey'] = evt['component'] - if hasattr(evt, 'eventClassKey'): + if evt.has_key( 'eventClassKey'): slog.debug("eventClassKey=%s", evt['eventClassKey']) try: evt['eventClassKey'] = evt['eventClassKey'].decode('latin-1') Added: trunk/Products/ZenEvents/tests/testSyslogProcessing.py |