summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2014-03-03 17:32:42 +0100
committervarac <varacanero@zeromail.org>2014-03-03 17:36:39 +0100
commit984939c4a74b71ce67db27a035ca5017f82c416f (patch)
tree38f446abfb08cfde9e5b4c1ae774d614445e1dfd /puppet/modules
parent0152667c246e1f835021ad13f3df00a6c08eb5c0 (diff)
move generic syslog patterns to the end of syslog.cfg so we can ignore patterns first
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_check_mk/files/agent/logwatch/syslog_header.cfg1
-rw-r--r--puppet/modules/site_check_mk/files/agent/logwatch/syslog_tail.cfg (renamed from puppet/modules/site_check_mk/files/agent/logwatch/syslog.cfg)1
-rw-r--r--puppet/modules/site_check_mk/manifests/agent/logwatch/syslog.pp7
3 files changed, 7 insertions, 2 deletions
diff --git a/puppet/modules/site_check_mk/files/agent/logwatch/syslog_header.cfg b/puppet/modules/site_check_mk/files/agent/logwatch/syslog_header.cfg
new file mode 100644
index 00000000..f60d752b
--- /dev/null
+++ b/puppet/modules/site_check_mk/files/agent/logwatch/syslog_header.cfg
@@ -0,0 +1 @@
+/var/log/syslog
diff --git a/puppet/modules/site_check_mk/files/agent/logwatch/syslog.cfg b/puppet/modules/site_check_mk/files/agent/logwatch/syslog_tail.cfg
index f3505c1c..450b9e90 100644
--- a/puppet/modules/site_check_mk/files/agent/logwatch/syslog.cfg
+++ b/puppet/modules/site_check_mk/files/agent/logwatch/syslog_tail.cfg
@@ -1,4 +1,3 @@
-/var/log/syslog
# some general patterns
C panic
C Oops
diff --git a/puppet/modules/site_check_mk/manifests/agent/logwatch/syslog.pp b/puppet/modules/site_check_mk/manifests/agent/logwatch/syslog.pp
index ac3dda64..c927780d 100644
--- a/puppet/modules/site_check_mk/manifests/agent/logwatch/syslog.pp
+++ b/puppet/modules/site_check_mk/manifests/agent/logwatch/syslog.pp
@@ -5,9 +5,14 @@ class site_check_mk::agent::logwatch::syslog {
}
concat::fragment { 'syslog_header':
- source => 'puppet:///modules/site_check_mk/agent/logwatch/syslog.cfg',
+ source => 'puppet:///modules/site_check_mk/agent/logwatch/syslog_header.cfg',
target => '/etc/check_mk/logwatch.d/syslog.cfg',
order => '01';
}
+ concat::fragment { 'syslog_tail':
+ source => 'puppet:///modules/site_check_mk/agent/logwatch/syslog_tail.cfg',
+ target => '/etc/check_mk/logwatch.d/syslog.cfg',
+ order => '99';
+ }
}