From 66ab7b6d9cb9117a3a7f09ce27077498b55ecc17 Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Wed, 19 Jun 2013 04:45:23 +0200 Subject: [PATCH] added some args stuff, added dummy shell parser, renamed classes in processors... --- lib/parsers/shell.py | 6 ++++++ lib/processors/mariadb.py | 14 ++++++++++++++ lib/processors/mongodb.py | 4 ++-- lib/processors/syslog.py | 4 ++-- linspector.json | 4 ++++ 5 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 lib/parsers/shell.py create mode 100644 lib/processors/mariadb.py diff --git a/lib/parsers/shell.py b/lib/parsers/shell.py new file mode 100644 index 0000000..15d5bf9 --- /dev/null +++ b/lib/parsers/shell.py @@ -0,0 +1,6 @@ +from parser import Parser + + +class ShellParser(Parser): + def __init__(self): + pass \ No newline at end of file diff --git a/lib/processors/mariadb.py b/lib/processors/mariadb.py new file mode 100644 index 0000000..f8094ec --- /dev/null +++ b/lib/processors/mariadb.py @@ -0,0 +1,14 @@ +""" +The MariaDB processor +""" + +from processor import Processor + + +class MariadbProcessor(Processor): + def __init__(self): + pass + + +def create(kwargs): + return MariadbProcessor(**kwargs) \ No newline at end of file diff --git a/lib/processors/mongodb.py b/lib/processors/mongodb.py index c94c84c..8b9d579 100644 --- a/lib/processors/mongodb.py +++ b/lib/processors/mongodb.py @@ -5,10 +5,10 @@ The MongoDB processor from processor import Processor -class Mongodb(Processor): +class MongodbProcessor(Processor): def __init__(self): pass def create(kwargs): - return Mongodb(**kwargs) \ No newline at end of file + return MongodbProcessor(**kwargs) \ No newline at end of file diff --git a/lib/processors/syslog.py b/lib/processors/syslog.py index c75e158..645b488 100644 --- a/lib/processors/syslog.py +++ b/lib/processors/syslog.py @@ -5,10 +5,10 @@ The syslog processor from processor import Processor -class Syslog(Processor): +class SyslogProcessor(Processor): def __init__(self): pass def create(kwargs): - return Syslog(**kwargs) \ No newline at end of file + return SyslogProcessor(**kwargs) \ No newline at end of file diff --git a/linspector.json b/linspector.json index b0d6794..aae9209 100644 --- a/linspector.json +++ b/linspector.json @@ -40,6 +40,10 @@ { "class": "syslog", "args":{ "host": "syslog.linspector.org", "user": "syslog", "password": "secret" } + }, + { + "class": "mariadb", + "args":{ "host": "mariadb.linspector.org", "port": "3306", "user": "maria", "password": "secret", "database": "linspector" } } ], "services":[