Skip to content

Instantly share code, notes, and snippets.

View damilare's full-sized avatar
🎯
Focusing

Damilare Onajole damilare

🎯
Focusing
View GitHub Profile
@cluther
cluther / __init__.py
Created October 21, 2014 14:25
Forking Zenoss metrics.
# This code goes into the __init__.py of a ZenPack. It patches the
# Products.ZenRRD.RRDUtil.RRDUtil.put() method. This allows for
# executing custom code for every RRD update that's made.
from Products.ZenUtils.Utils import monkeypatch
@monkeypatch('Products.ZenRRD.RRDUtil.RRDUtil')
def put(self, *args, **kwargs):
value = original(self, *args, **kwargs)