added some args stuff, added dummy shell parser, renamed classes in processors...

This commit is contained in:
Johannes Findeisen 2013-06-19 04:45:23 +02:00
commit 66ab7b6d9c
5 changed files with 28 additions and 4 deletions

6
lib/parsers/shell.py Normal file
View file

@ -0,0 +1,6 @@
from parser import Parser
class ShellParser(Parser):
def __init__(self):
pass

14
lib/processors/mariadb.py Normal file
View file

@ -0,0 +1,14 @@
"""
The MariaDB processor
"""
from processor import Processor
class MariadbProcessor(Processor):
def __init__(self):
pass
def create(kwargs):
return MariadbProcessor(**kwargs)

View file

@ -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)
return MongodbProcessor(**kwargs)

View file

@ -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)
return SyslogProcessor(**kwargs)

View file

@ -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":[