diff --git a/plugins/BosMon/BosMon.py b/plugins/BosMon/BosMon.py index df73f08..c4923bc 100644 --- a/plugins/BosMon/BosMon.py +++ b/plugins/BosMon/BosMon.py @@ -13,7 +13,7 @@ def run(typ,freq,data): #ConfigParser logging.debug("reading config file") try: - for key,val in globals.config.items("BOSWatch"): + for key,val in globals.config.items("BosMon"): logging.debug(" - %s = %s", key, val) except: logging.exception("cannot read config file") @@ -53,4 +53,4 @@ def run(typ,freq,data): else: logging.warning("undefined typ '%s'", typ) except: - logging.exception("") \ No newline at end of file + logging.exception("") diff --git a/plugins/template/template.py b/plugins/template/template.py index 5b70cba..b7db7d8 100644 --- a/plugins/template/template.py +++ b/plugins/template/template.py @@ -28,7 +28,7 @@ def run(typ,freq,data): #ConfigParser logging.debug("reading config file") try: - for key,val in globals.config.items("BOSWatch"): + for key,val in globals.config.items("template"): logging.debug(" - %s = %s", key, val) except: logging.exception("cannot read config file") @@ -43,4 +43,4 @@ def run(typ,freq,data): logging.warning(typ + " not supported") except: - logging.exception("unknown error") \ No newline at end of file + logging.exception("unknown error")