diff options
author | varac <varacanero@zeromail.org> | 2014-02-25 15:11:56 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2014-02-27 18:12:15 +0100 |
commit | 91365fb3b9b455253484fca6ffbc3dac8361e5b9 (patch) | |
tree | 551ce371926833f1cf68fae952675a5e4b46b7c0 /puppet/modules/site_check_mk | |
parent | ee83c7227f64bab9a36ecbfd86049bc3153b3760 (diff) |
check syslog for /usr/local/bin/couch-doc-update failures
Diffstat (limited to 'puppet/modules/site_check_mk')
-rw-r--r-- | puppet/modules/site_check_mk/files/agent/logwatch/syslog/couchdb.cfg | 2 | ||||
-rw-r--r-- | puppet/modules/site_check_mk/manifests/agent/couchdb.pp | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/site_check_mk/files/agent/logwatch/syslog/couchdb.cfg b/puppet/modules/site_check_mk/files/agent/logwatch/syslog/couchdb.cfg new file mode 100644 index 00000000..5f8d5b95 --- /dev/null +++ b/puppet/modules/site_check_mk/files/agent/logwatch/syslog/couchdb.cfg @@ -0,0 +1,2 @@ + C /usr/local/bin/couch-doc-update.*failed + C /usr/local/bin/couch-doc-update.*ERROR diff --git a/puppet/modules/site_check_mk/manifests/agent/couchdb.pp b/puppet/modules/site_check_mk/manifests/agent/couchdb.pp index f2d286ca..9456efcc 100644 --- a/puppet/modules/site_check_mk/manifests/agent/couchdb.pp +++ b/puppet/modules/site_check_mk/manifests/agent/couchdb.pp @@ -4,4 +4,10 @@ class site_check_mk::agent::couchdb { source => 'puppet:///modules/site_check_mk/agent/logwatch/bigcouch.cfg', } + concat::fragment { 'syslog_couchdb': + source => 'puppet:///modules/site_check_mk/agent/logwatch/syslog/couchdb.cfg', + target => '/etc/check_mk/logwatch.d/syslog.cfg', + order => '02'; + } + } |