<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Notify alert when threshold reached with audit.d in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/notify-alert-when-threshold-reached-with-audit-d/m-p/3837026#M24546</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to figure how I can add an alert with the audit.conf file (/etc/audit.audit.conf) to send and e-mail when the threshold is reached.&lt;BR /&gt;&lt;BR /&gt;I am new to Linux and not an expert in writing Linux scripts.  Please help.&lt;BR /&gt;&lt;BR /&gt;Attached, is the original audit.conf so you can see and help me when the threshold is reached.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
    <pubDate>Thu, 03 Aug 2006 22:39:15 GMT</pubDate>
    <dc:creator>Jorge Cocomess</dc:creator>
    <dc:date>2006-08-03T22:39:15Z</dc:date>
    <item>
      <title>Notify alert when threshold reached with audit.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/notify-alert-when-threshold-reached-with-audit-d/m-p/3837026#M24546</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to figure how I can add an alert with the audit.conf file (/etc/audit.audit.conf) to send and e-mail when the threshold is reached.&lt;BR /&gt;&lt;BR /&gt;I am new to Linux and not an expert in writing Linux scripts.  Please help.&lt;BR /&gt;&lt;BR /&gt;Attached, is the original audit.conf so you can see and help me when the threshold is reached.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Thu, 03 Aug 2006 22:39:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/notify-alert-when-threshold-reached-with-audit-d/m-p/3837026#M24546</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-08-03T22:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Notify alert when threshold reached with audit.d</title>
      <link>https://community.hpe.com/t5/operating-system-linux/notify-alert-when-threshold-reached-with-audit-d/m-p/3837027#M24547</link>
      <description>I am going to include the script within this posting, since my attachment did not work on the first posting.  Thanks, J&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# kernel interface&lt;BR /&gt;device-file = "/dev/audit";&lt;BR /&gt; &lt;BR /&gt;# filter config&lt;BR /&gt;filter-config = "/etc/audit/filter.conf";&lt;BR /&gt; &lt;BR /&gt;# Standard output method is bin mode.&lt;BR /&gt;#&lt;BR /&gt;output {&lt;BR /&gt;        mode            = bin;&lt;BR /&gt;        num-files       = 4;&lt;BR /&gt;        file-size       = 20M;&lt;BR /&gt;        file-name       = "/var/log/audit.d/bin";&lt;BR /&gt;        notify          = "/usr/sbin/audbin -S /var/log/audit.d/save.%u -C";&lt;BR /&gt; &lt;BR /&gt;        # The following symlink is created whenever we switch to&lt;BR /&gt;        # a new bin.&lt;BR /&gt;        current         = "/var/log/audit";&lt;BR /&gt; &lt;BR /&gt;        sync            = yes;&lt;BR /&gt;        error {&lt;BR /&gt;                action {&lt;BR /&gt;                        type = suspend;&lt;BR /&gt;                };&lt;BR /&gt;        };&lt;BR /&gt;};&lt;BR /&gt; &lt;BR /&gt;# Alternatively, write to /var/log/audit in normal&lt;BR /&gt;# append mode&lt;BR /&gt;# output {&lt;BR /&gt;#       mode            = append;&lt;BR /&gt;#       file-name       = "/var/log/audit";&lt;BR /&gt;#       sync            = yes;&lt;BR /&gt;# };&lt;BR /&gt; &lt;BR /&gt;# Alternative output&lt;BR /&gt;# output {&lt;BR /&gt;#       mode            = stream;&lt;BR /&gt;#       command         = "/usr/local/sbin/send_to_syslog"&lt;BR /&gt;# };&lt;BR /&gt; &lt;BR /&gt;# Disk usage thresholds.&lt;BR /&gt;# These thresholds are checked at regular intervals when&lt;BR /&gt;# append mode is used.&lt;BR /&gt;# (bin mode doesn't require these checks as the bin files&lt;BR /&gt;# are preallocated).&lt;BR /&gt;threshold disk-space-low {&lt;BR /&gt;        space-left = 10M;&lt;BR /&gt;        action {&lt;BR /&gt;                type = syslog;&lt;BR /&gt;                facility = security;&lt;BR /&gt;                priority = warning;&lt;BR /&gt;        };&lt;BR /&gt;        action {&lt;BR /&gt;                type = notify;&lt;BR /&gt;                command = "/usr/local/bin/page-admin";&lt;BR /&gt;        };&lt;BR /&gt;        action {&lt;BR /&gt;                type = audit;&lt;BR /&gt;                event = AUDIT_disklow;&lt;BR /&gt;        };&lt;BR /&gt;};&lt;BR /&gt;threshold disk-full {&lt;BR /&gt;        space-left = 20K;&lt;BR /&gt;        action {&lt;BR /&gt;                type = syslog;&lt;BR /&gt;                facility = security;&lt;BR /&gt;                priority = crit;&lt;BR /&gt;        };&lt;BR /&gt;        action {&lt;BR /&gt;                type = audit;&lt;BR /&gt;                event = AUDIT_diskfull;&lt;BR /&gt;        };&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 03 Aug 2006 23:22:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/notify-alert-when-threshold-reached-with-audit-d/m-p/3837027#M24547</guid>
      <dc:creator>Jorge Cocomess</dc:creator>
      <dc:date>2006-08-03T23:22:55Z</dc:date>
    </item>
  </channel>
</rss>

