BOSWatch/includes/pluginHandler.py

14 lines
365 B
Python
Raw Normal View History

#!/usr/bin/python
# -*- coding: cp1252 -*-
import logging
from includes import globals # Global variables
from includes import pluginloader
2015-05-22 17:44:34 +02:00
def throwAlarm(typ,freq,data):
logging.debug("[ ALARM ]")
for name, plugin in globals.pluginList.items():
logging.debug("call Plugin: %s", name)
2015-05-22 17:44:34 +02:00
plugin.run(typ,freq,data)
2015-05-22 21:27:46 +02:00
logging.debug("[END ALARM]")