author | Tero Marttila <terom@fixme.fi> |
Sat, 20 Feb 2010 23:06:43 +0200 | |
changeset 64 | 8574aeff9b36 |
parent 62 | e4db89a5f6bc |
permissions | -rw-r--r-- |
40
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
1 |
from fixbot.logwatch import filters |
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
2 |
from fixbot.logwatch.sources import * |
22 | 3 |
|
46
ee58a22e5baa
use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
40
diff
changeset
|
4 |
import os.path |
ee58a22e5baa
use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
40
diff
changeset
|
5 |
|
40
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
6 |
## shared secret for API client |
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
7 |
api_secret = "xyz" |
22 | 8 |
|
40
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
9 |
## Path to logfiles |
46
ee58a22e5baa
use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
40
diff
changeset
|
10 |
logwatch_dir = "logs" |
40
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
11 |
|
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
12 |
## Iterable of LogSource objects |
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
13 |
logwatch_sources = ( |
46
ee58a22e5baa
use os.path.join in etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
40
diff
changeset
|
14 |
Fifo("test", os.path.join(logwatch_dir, "test.fifo"), ( |
48
ba101beeb062
work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents:
46
diff
changeset
|
15 |
filters.sudo, |
ba101beeb062
work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents:
46
diff
changeset
|
16 |
filters.ssh, |
ba101beeb062
work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents:
46
diff
changeset
|
17 |
filters.cron_killer, |
ba101beeb062
work on logwatch docs, small tweaks
Tero Marttila <terom@fixme.fi>
parents:
46
diff
changeset
|
18 |
filters.su_nobody_killer, |
40
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
19 |
filters.all, |
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
20 |
)), |
62
e4db89a5f6bc
restructure api, using AMP as the client-server protocol
Tero Marttila <terom@fixme.fi>
parents:
58
diff
changeset
|
21 |
# UnixDatagramSocket("test", os.path.join(logwatch_dir, "test.sock"), ( |
e4db89a5f6bc
restructure api, using AMP as the client-server protocol
Tero Marttila <terom@fixme.fi>
parents:
58
diff
changeset
|
22 |
# filters.sudo, |
e4db89a5f6bc
restructure api, using AMP as the client-server protocol
Tero Marttila <terom@fixme.fi>
parents:
58
diff
changeset
|
23 |
# filters.ssh, |
e4db89a5f6bc
restructure api, using AMP as the client-server protocol
Tero Marttila <terom@fixme.fi>
parents:
58
diff
changeset
|
24 |
# filters.cron_killer, |
e4db89a5f6bc
restructure api, using AMP as the client-server protocol
Tero Marttila <terom@fixme.fi>
parents:
58
diff
changeset
|
25 |
# filters.all, |
e4db89a5f6bc
restructure api, using AMP as the client-server protocol
Tero Marttila <terom@fixme.fi>
parents:
58
diff
changeset
|
26 |
# )), |
40
b9fdb7710768
move logwatch*.py to separate fixbot.logwatch package, and move logwatch_sources to etc/fixbot-logwatch.py
Tero Marttila <terom@fixme.fi>
parents:
35
diff
changeset
|
27 |
) |