This file contains 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
# 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) |