added some args stuff, added dummy shell parser, renamed classes in processors...
This commit is contained in:
parent
1a9b30eba2
commit
66ab7b6d9c
5 changed files with 28 additions and 4 deletions
6
lib/parsers/shell.py
Normal file
6
lib/parsers/shell.py
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
from parser import Parser
|
||||||
|
|
||||||
|
|
||||||
|
class ShellParser(Parser):
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
14
lib/processors/mariadb.py
Normal file
14
lib/processors/mariadb.py
Normal 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)
|
||||||
|
|
@ -5,10 +5,10 @@ The MongoDB processor
|
||||||
from processor import Processor
|
from processor import Processor
|
||||||
|
|
||||||
|
|
||||||
class Mongodb(Processor):
|
class MongodbProcessor(Processor):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def create(kwargs):
|
def create(kwargs):
|
||||||
return Mongodb(**kwargs)
|
return MongodbProcessor(**kwargs)
|
||||||
|
|
@ -5,10 +5,10 @@ The syslog processor
|
||||||
from processor import Processor
|
from processor import Processor
|
||||||
|
|
||||||
|
|
||||||
class Syslog(Processor):
|
class SyslogProcessor(Processor):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
def create(kwargs):
|
def create(kwargs):
|
||||||
return Syslog(**kwargs)
|
return SyslogProcessor(**kwargs)
|
||||||
|
|
@ -40,6 +40,10 @@
|
||||||
{
|
{
|
||||||
"class": "syslog",
|
"class": "syslog",
|
||||||
"args":{ "host": "syslog.linspector.org", "user": "syslog", "password": "secret" }
|
"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":[
|
"services":[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue