~orchestra/orchestra/trunk

« back to all changes in this revision

Viewing changes to monitoring-server/etc/rsyslog.d/99-orchestra.conf

  • Committer: Marc Cluet
  • Date: 2011-05-03 14:17:44 UTC
  • Revision ID: marc.cluet@ubuntu.com-20110503141744-qwn0xrdge4ytdmgy
* Added rsyslog integration (client and server)
* Added ubuntu-orchestra-monitoring-server
* Modified preinst templates for hostname discovery

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Server Config
 
2
$ModLoad imudp
 
3
$UDPServerAddress 0.0.0.0
 
4
$UDPServerRun 514
 
5
$ModLoad imtcp
 
6
$TCPServerAddress 0.0.0.0
 
7
$TCPServerRun 514
 
8
 
 
9
# Reduce message repetition
 
10
$RepeatedMsgReduction on
 
11
$RepeatedMsgContainsOrigionalMsg on
 
12
 
 
13
# Message templating
 
14
$template DYNmessages,"/var/log/remote/%$YEAR%/%$MONTH%/%HOSTNAME%/messages_%$DAY%_%$MONTH%_%$YEAR%"
 
15
$template DYNsecure,"/var/log/remote/%$YEAR%/%$MONTH%/%HOSTNAME%/secure_%$DAY%_%$MONTH%_%$YEAR%"
 
16
$template DYNmaillog,"/var/log/remote/%$YEAR%/%$MONTH%/%HOSTNAME%/maillog_%$DAY%_%$MONTH%_%$YEAR%"
 
17
$template DYNcron,"/var/log/remote/%$YEAR%/%$MONTH%/%HOSTNAME%/cron_%$DAY%_%$MONTH%_%$YEAR%"
 
18
$template DYNspooler,"/var/log/remote/%$YEAR%/%$MONTH%/%HOSTNAME%/spooler_%$DAY%_%$MONTH%_%$YEAR%"
 
19
$template DYNboot,"/var/log/remote/%$YEAR%/%$MONTH%/%HOSTNAME%/boot_%$DAY%_%$MONTH%_%$YEAR%"
 
20
 
 
21
if \
 
22
        $source != 'localhost' \
 
23
        and \
 
24
             $syslogseverity <= '6' \
 
25
        and ( \
 
26
                        $syslogfacility-text != 'mail' \
 
27
                and \
 
28
                        $syslogfacility-text != 'authpriv' \
 
29
                and \
 
30
                        $syslogfacility-text != 'cron' \
 
31
        ) \
 
32
then    ?DYNmessages
 
33
 
 
34
if \
 
35
        $source != 'localhost' \
 
36
                and \
 
37
        $syslogfacility-text == 'authpriv' \
 
38
then    ?DYNsecure
 
39
 
 
40
if \
 
41
        $source != 'localhost' \
 
42
                and \
 
43
        $syslogfacility-text == 'mail' \
 
44
then    -?DYNmaillog
 
45
 
 
46
if \
 
47
        $source != 'localhost' \
 
48
                and \
 
49
        $syslogfacility-text == 'cron' \
 
50
then    ?DYNcron
 
51
 
 
52
if \
 
53
        $source != 'localhost' \
 
54
                and \
 
55
        (\
 
56
                $syslogfacility-text == 'uucp' \
 
57
                        or \
 
58
                $syslogfacility-text == 'news' \
 
59
        )\
 
60
                and \
 
61
        $syslogseverity-text == 'crit' \
 
62
then    ?DYNspooler
 
63
 
 
64
if \
 
65
        $source != 'localhost' \
 
66
                and \
 
67
        $syslogfacility-text == 'local7' \
 
68
then    ?DYNboot
 
69