This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Products/ZenUtils/zencatalog.py | |
=================================================================== | |
--- Products/ZenUtils/zencatalog.py (revision 74143) | |
+++ Products/ZenUtils/zencatalog.py (working copy) | |
@@ -115,6 +115,10 @@ | |
action="store_true", | |
default=False, | |
help="Create global catalog and populate it") | |
+ self.parser.add_option("--continueindex", | |
+ action="store_true", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Products/ZenUtils/zencatalog.py | |
=================================================================== | |
--- Products/ZenUtils/zencatalog.py (revision 73688) | |
+++ Products/ZenUtils/zencatalog.py (working copy) | |
@@ -115,6 +115,10 @@ | |
action="store_true", | |
default=False, | |
help="Create global catalog and populate it") | |
+ self.parser.add_option("--continueindex", | |
+ action="store_true", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import time | |
import transaction | |
import Globals | |
from Products.ZenUtils.ZenScriptBase import ZenScriptBase | |
from OFS.ObjectManager import ObjectManager | |
from Products.ZenRelations.ToManyContRelationship import ToManyContRelationship | |
from Products.ZenModel.ZenModelRM import ZenModelRM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from OFS.ObjectManager import ObjectManager | |
import time | |
import transaction | |
from Products.ZenModel.ZenModelRM import ZenModelRM | |
from Products.ZenRelations.ToManyContRelationship import ToManyContRelationship | |
def recurse(obj): | |
if isinstance(obj, ObjectManager): | |
# Bottom up, for multiple-path efficiency | |
for ob in obj.objectValues(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RABBITMQ_HOST=localhost | |
RABBITMQ_PASS=zenoss | |
RABBITMQ_PORT=5672 | |
RABBITMQ_SSL=0 | |
rabbitmqctl add_user ${RABBITMQ_USER} ${RABBITMQ_PASS} | |
rabbitmqctl add_vhost ${RABBITMQ_VHOST} | |
rabbitmqctl set_permissions -p ${RABBITMQ_VHOST} ${RABBITMQ_USER} '.*' '.*' '.*' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Products/ZenWidgets/messaging.py | |
=================================================================== | |
--- Products/ZenWidgets/messaging.py.orig | |
+++ Products/ZenWidgets/messaging.py | |
@@ -182,6 +182,7 @@ class MessageSender(object): | |
@param image: Optional URL of an image to be displayed in the message | |
@type image: str | |
""" | |
+ pass | |
context = self.context.REQUEST.SESSION.get('messages') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Get a stack trace of the tasks matching the supplied regex | |
# | |
# This script was inspired by: | |
# http://old.zope.org/Members/4am/debugspinningzope | |
############################################################################### | |
#============================================================================== | |
function Usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOCK TABLES event_summary WRITE; | |
ALTER TABLE event_summary | |
DROP KEY `fingerprint_hash`, | |
DROP KEY `element_uuid`, | |
DROP KEY `element_sub_uuid`, | |
DROP KEY `event_summary_clear_idx`, | |
DROP KEY `event_summary_age_idx`, | |
DROP KEY `event_summary_archive_idx`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: Products/DataCollector/ApplyDataMap.py | |
=================================================================== | |
--- Products/DataCollector/ApplyDataMap.py.orig | |
+++ Products/DataCollector/ApplyDataMap.py | |
@@ -178,6 +178,23 @@ class ApplyDataMap(object): | |
if not hasattr(device.dmd, 'zport'): | |
transaction.abort() | |
+ # save apply datamaps | |
+ try: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: lib/python/relstorage/adapters/mysql.py | |
=================================================================== | |
--- lib/python/relstorage/adapters/mysql.py.orig | |
+++ lib/python/relstorage/adapters/mysql.py | |
@@ -91,6 +91,26 @@ disconnected_exceptions = ( | |
# when the adapter attempts to close a database connection. | |
close_exceptions = disconnected_exceptions + (MySQLdb.ProgrammingError,) | |
+# attempt to ping MySQL connections | |
+OPEN_CONNECTIONS = [] |