From 7c7469276ce45c0477557eb0733cf43b6d505c48 Mon Sep 17 00:00:00 2001 From: Tim Kuhlman Date: Wed, 19 Mar 2014 13:53:08 -0600 Subject: [PATCH] Added ossec/mon_log_backup attributes --- attributes/backup.rb | 2 ++ attributes/monitor.rb | 4 ++++ metadata.rb | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 attributes/backup.rb create mode 100644 attributes/monitor.rb diff --git a/attributes/backup.rb b/attributes/backup.rb new file mode 100644 index 0000000..6373e8a --- /dev/null +++ b/attributes/backup.rb @@ -0,0 +1,2 @@ +# Logs to backup +node.default[:mon_log_backup][:logs][:mon_notification] = [ '/var/log/mon-notification/notification.log' ] diff --git a/attributes/monitor.rb b/attributes/monitor.rb new file mode 100644 index 0000000..558eddf --- /dev/null +++ b/attributes/monitor.rb @@ -0,0 +1,4 @@ +# Have ossec watch the log +node.default[:ossec][:watched][:mon_notification] = { + '/var/log/mon-notification/notification.log' => :syslog +} diff --git a/metadata.rb b/metadata.rb index 9cf6acb..7a59c43 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,4 +4,4 @@ maintainer_email 'hpcs-mon@hp.com' license 'All rights reserved' description 'Installs/Configures mon_notification' long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -version '0.1.3' +version '0.1.4'