<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Configuring event reporting</title>
    <link>/en/admin/monitoring/monitoring-events/configuring-event-reporting/</link>
    <description>Recent content in Configuring event reporting on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/monitoring/monitoring-events/configuring-event-reporting/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Configuring reporting for the simple notification service (SNS)</title>
      <link>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-simple-notification-service-sns/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-simple-notification-service-sns/</guid>
      <description>
        
        
        &lt;p&gt;You can monitor &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/data-collector/&#34; title=&#34;A utility that collects and retains database monitoring information.&#34;&gt;Data collector&lt;/a&gt; (DC) components and send new rows to Amazon Web Services (AWS) Simple Notification Service (SNS). SNS notifiers are configured with &lt;a href=&#34;../../../../../en/sql-reference/config-parameters/sns-parameters/&#34;&gt;database-level SNS parameters&lt;/a&gt;.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

&lt;p&gt;Several &lt;a href=&#34;../../../../../en/sql-reference/config-parameters/sns-parameters/&#34;&gt;SNS configuration parameters&lt;/a&gt; have and fall back to equivalents for &lt;a href=&#34;../../../../../en/sql-reference/config-parameters/s3-parameters/&#34;&gt;S3&lt;/a&gt;. This lets you to share configurations between S3 and SNS. For example, if you set the values for AWSAuth but not for SNSAuth, OpenText™ Analytics Database automatically uses the AWSAuth credentials. For brevity, the procedures on this page will not use this fallback behavior and instead use the SNS configuration parameters.&lt;/p&gt;
&lt;p&gt;For details, see &lt;a href=&#34;../../../../../en/sql-reference/config-parameters/sns-parameters/#&#34;&gt;SNS parameters&lt;/a&gt;.&lt;/p&gt;


&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Minimally, to send DC data to SNS topics, you must configure and specify the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;An SNS notifier&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A Simple Notification Service (SNS) topic&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;An AWS region (SNSRegion)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;An SNS endpoint (SNSEndpoint) (FIPS only)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Credentials to authenticate to AWS&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Information about how to handle HTTPS&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;creating-an-sns-notifier&#34;&gt;Creating an SNS notifier&lt;/h2&gt;
&lt;p&gt;To create an SNS notifier, use &lt;a href=&#34;../../../../../en/sql-reference/statements/create-statements/create-notifier/#&#34;&gt;CREATE NOTIFIER&lt;/a&gt;, specifying &lt;code&gt;sns&lt;/code&gt; as the ACTION.&lt;/p&gt;
&lt;h2 id=&#34;sns-configuration&#34;&gt;SNS configuration&lt;/h2&gt;
&lt;p&gt;SNS topics and their subscribers should be configured with AWS. For details, see the AWS documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html&#34;&gt;Creating an Amazon SNS topic&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.aws.amazon.com/sns/latest/dg/sns-create-subscribe-endpoint-to-topic.html&#34;&gt;Subscribing to an Amazon SNS topic&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;aws-region-and-endpoint&#34;&gt;AWS region and endpoint&lt;/h2&gt;
&lt;p&gt;In most use cases, you only need to set the AWS region with the SNSRegion parameter; if the SNSEndpoint is set to an empty string (default) and the SNSRegion is set, the database automatically finds and uses the appropriate endpoint:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSRegion=&amp;#39;us-east-1&amp;#39;;
=&amp;gt; ALTER DATABASE DEFAULT SET SNSEndpoint=&amp;#39;&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you want to specify an endpoint, its region must match the region specified in SNSRegion:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSEndpoint=&amp;#39;sns.us-east-1.amazonaws.com&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you use FIPS, you should manually set SNSEndpoint to a &lt;a href=&#34;https://aws.amazon.com/compliance/fips/&#34;&gt;FIPS-compliant endpoint&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSEndpoint=&amp;#39;sns-fips.us-east-1.amazonaws.com&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;aws-credentials&#34;&gt;AWS credentials&lt;/h2&gt;
&lt;p&gt;AWS credentials can be set with SNSAuth, which takes an access key and secret access key in the following format:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;access_key&lt;/span&gt;:&lt;span class=&#34;code-variable&#34;&gt;secret_access_key&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To set SNSAuth:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSAuth=&amp;#39;VNDDNVOPIUQF917O5PDB:+mcnVONVIbjOnf1ekNis7nm3mE83u9fjdwmlq36Z&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;handling-https&#34;&gt;Handling HTTPS&lt;/h2&gt;
&lt;p&gt;The SNSEnableHttps parameter determines whether the SNS notifier uses TLS to secure the connection between the database and AWS. HTTPS is enabled by default and can be manually enabled with:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSEnableHttps=1;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If SNSEnableHttps is enabled, depending on your configuration, you might need to specify a custom set of CA bundles with SNSCAFile or SNSCAPath. Amazon root certificates are typically contained in the set of trusted CA certificates already, so you should not have to set these parameters in most environments:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSCAFile=&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;path/to/ca/bundle.pem&lt;/span&gt;&amp;#39;
=&amp;gt; ALTER DATABASE DEFAULT SET SNSCAPath=&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;path/to/ca/bundles/&lt;/span&gt;&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;HTTPS can be manually disabled with:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSEnableHttps=0;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example creates an SNS topic, subscribes to it with an SQS queue, and then configures an SNS notifier for the DC component &lt;code&gt;LoginFailures&lt;/code&gt;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html&#34;&gt;Create an SNS topic&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-setting-up.html&#34;&gt;Create an SQS queue&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-configure-subscribe-queue-sns-topic.html&#34;&gt;Subscribe the SQS queue to the SNS topic.&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set SNSAuth with your AWS credentials:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSAuth=&amp;#39;VNDDNVOPIUQF917O5PDB:+mcnVONVIbjOnf1ekNis7nm3mE83u9fjdwmlq36Z&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set SNSRegion:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSRegion=&amp;#39;us-east-1&amp;#39;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Enable HTTPS:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SNSEnableHttps=1;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/create-statements/create-notifier/&#34;&gt;Create&lt;/a&gt; an SNS notifier:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NOTIFIER v_sns_notifier ACTION &amp;#39;sns&amp;#39; MAXPAYLOAD &amp;#39;256K&amp;#39; MAXMEMORYSIZE &amp;#39;10M&amp;#39; CHECK COMMITTED;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that the SNS notifier, SNS topic, and SQS queue are properly configured:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Manually send a message from the notifier to the SNS topic with &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/notifier-functions/notify/#&#34;&gt;NOTIFY&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT NOTIFY(&amp;#39;test message&amp;#39;, &amp;#39;v_sns_notifier&amp;#39;, &amp;#39;arn:aws:sns:us-east-1:123456789012:MyTopic&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/step-receive-delete-message.html&#34;&gt;Poll the SQS queue&lt;/a&gt; for your message.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Attach the SNS notifier to the &lt;code&gt;LoginFailures&lt;/code&gt; component with &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/notifier-functions/set-data-collector-notify-policy/#&#34;&gt;SET_DATA_COLLECTOR_NOTIFY_POLICY&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SET_DATA_COLLECTOR_NOTIFY_POLICY(&amp;#39;LoginFailures&amp;#39;, &amp;#39;v_sns_notifier&amp;#39;, &amp;#39;Login failed!&amp;#39;, true)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To disable an SNS notifier:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SET_DATA_COLLECTOR_NOTIFY_POLICY(&amp;#39;LoginFailures&amp;#39;, &amp;#39;v_sns_notifier&amp;#39;, &amp;#39;Login failed!&amp;#39;, false)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Admin: Configuring reporting for syslog</title>
      <link>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-syslog/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-syslog/</guid>
      <description>
        
        
        &lt;p&gt;Syslog is a network-logging utility that issues, stores, and processes log messages. It is a useful way to get heterogeneous data into a single data repository.&lt;/p&gt;
&lt;p&gt;To log events to syslog, enable event reporting for each individual event you want logged. Messages are logged, by default, to &lt;code&gt;/var/log/messages&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Configuring event reporting to syslog consists of:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enabling OpenText™ Analytics Database to trap events for syslog.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Defining which events the database traps for syslog.&lt;/p&gt;
&lt;p&gt;It is strongly recommended that you trap the Stale Checkpoint event.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Defining which syslog facility to use.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;enabling-the-database-to-trap-events-for-syslog&#34;&gt;Enabling the database to trap events for syslog&lt;/h2&gt;
&lt;p&gt;To enable event trapping for syslog, issue the following SQL command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEnabled = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To disable event trapping for syslog, issue the following SQL command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEnabled = 0;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;defining-events-to-trap-for-syslog&#34;&gt;Defining events to trap for syslog&lt;/h2&gt;
&lt;p&gt;To define events that generate a syslog entry, issue the following SQL command, one of the events described in the list below the command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEvents = &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;events-list&lt;/span&gt;&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;where &lt;em&gt;&lt;code&gt;events-list&lt;/code&gt;&lt;/em&gt; is a comma-delimited list of events, one or more of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Low Disk Space&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Read Only File System&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Loss Of K Safety&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Current Fault Tolerance at Critical Level&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Too Many ROS Containers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Node State Change&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Failure&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Lock Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Projection Retrieval Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Refresh Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Refresh Lock Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tuple Mover Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Timer Service Task Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stale Checkpoint&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following example generates a syslog entry for low disk space and recovery failure:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEvents = &amp;#39;Low Disk Space, Recovery Failure&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;defining-the-syslogfacility-to-use-for-reporting&#34;&gt;Defining the SyslogFacility to use for reporting&lt;/h2&gt;
&lt;p&gt;The syslog mechanism allows for several different general classifications of logging messages, called facilities. Typically, all authentication-related messages are logged with the &lt;code&gt;auth&lt;/code&gt; (or &lt;code&gt;authpriv&lt;/code&gt;) facility. These messages are intended to be secure and hidden from unauthorized eyes. Normal operational messages are logged with the &lt;code&gt;daemon&lt;/code&gt; facility, which is the collector that receives and optionally stores messages.&lt;/p&gt;
&lt;p&gt;The SyslogFacility directive allows all logging messages to be directed to a different facility than the default. When the directive is used, &lt;em&gt;all&lt;/em&gt; logging is done using the specified facility, both authentication (secure) and otherwise.&lt;/p&gt;
&lt;p&gt;To define which SyslogFacility the database uses, issue the following SQL command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogFacility = &amp;#39;Facility_Name&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Where the facility-level argument &lt;code&gt;&amp;lt;Facility_Name&amp;gt;&lt;/code&gt; is one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;auth&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;authpriv (Linux only)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;cron&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;uucp (UUCP subsystem)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;daemon&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;ftp (Linux only)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;lpr (line printer subsystem)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;mail (mail system)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;news (network news subsystem)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;user (default system)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local0 (local use 0)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local1 (local use 1)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local2 (local use 2)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local3 (local use 3)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local4 (local use 4)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local5 (local use 5)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local6 (local use 6)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;local7 (local use 7)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;trapping-other-event-types&#34;&gt;Trapping other event types&lt;/h2&gt;
&lt;p&gt;To trap events other than the ones listed above, &lt;a href=&#34;../../../../../en/sql-reference/statements/create-statements/create-notifier/&#34;&gt;create a syslog notifier&lt;/a&gt; and allow it to trap the desired events with &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/notifier-functions/set-data-collector-notify-policy/#&#34;&gt;SET_DATA_COLLECTOR_NOTIFY_POLICY&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Events monitored by this notifier type are not logged to &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/monitoring-events/#&#34;&gt;MONITORING_EVENTS&lt;/a&gt; nor &lt;code&gt;vertica.log&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The following example creates a notifier that writes a message to syslog when the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/data-collector/&#34; title=&#34;A utility that collects and retains database monitoring information.&#34;&gt;Data collector&lt;/a&gt; (DC) component &lt;code&gt;LoginFailures&lt;/code&gt; updates:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enable syslog notifiers for the current database:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SyslogEnabled = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Create and enable a syslog notifier &lt;code&gt;v_syslog_notifier&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; CREATE NOTIFIER v_syslog_notifier ACTION &amp;#39;syslog&amp;#39;
    ENABLE
    MAXMEMORYSIZE &amp;#39;10M&amp;#39;
    IDENTIFIED BY &amp;#39;f8b0278a-3282-4e1a-9c86-e0f3f042a971&amp;#39;
    PARAMETERS &amp;#39;eventSeverity = 5&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configure the syslog notifier &lt;code&gt;v_syslog_notifier&lt;/code&gt; for updates to the &lt;code&gt;LoginFailures&lt;/code&gt; DC component with &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/notifier-functions/set-data-collector-notify-policy/#&#34;&gt;SET_DATA_COLLECTOR_NOTIFY_POLICY&lt;/a&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SET_DATA_COLLECTOR_NOTIFY_POLICY(&amp;#39;LoginFailures&amp;#39;,&amp;#39;v_syslog_notifier&amp;#39;, &amp;#39;Login failed!&amp;#39;, true);
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This notifier writes the following message to syslog (default location: &lt;code&gt;/var/log/messages&lt;/code&gt;) when a user fails to authenticate as the user &lt;code&gt;Bob&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Apr 25 16:04:58
vertica_host_01
vertica:
    Event Posted:
        Event Code:21
        Event Id:0
        Event Severity: Notice [5]
        PostedTimestamp: 2022-04-25 16:04:58.083063
        ExpirationTimestamp: 2022-04-25 16:04:58.083063
        EventCodeDescription: Notifier
        ProblemDescription: (Login failed!)
    {
       &amp;#34;_db&amp;#34;:&amp;#34;VMart&amp;#34;,
       &amp;#34;_schema&amp;#34;:&amp;#34;v_internal&amp;#34;,
       &amp;#34;_table&amp;#34;:&amp;#34;dc_login_failures&amp;#34;,
       &amp;#34;_uuid&amp;#34;:&amp;#34;f8b0278a-3282-4e1a-9c86-e0f3f042a971&amp;#34;,
       &amp;#34;authentication_method&amp;#34;:&amp;#34;Reject&amp;#34;,
       &amp;#34;client_authentication_name&amp;#34;:&amp;#34;default: Reject&amp;#34;,
       &amp;#34;client_hostname&amp;#34;:&amp;#34;::1&amp;#34;,
       &amp;#34;client_label&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;client_os_user_name&amp;#34;:&amp;#34;dbadmin&amp;#34;,
       &amp;#34;client_pid&amp;#34;:523418,
       &amp;#34;client_version&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;database_name&amp;#34;:&amp;#34;dbadmin&amp;#34;,
       &amp;#34;effective_protocol&amp;#34;:&amp;#34;3.8&amp;#34;,
       &amp;#34;node_name&amp;#34;:&amp;#34;v_vmart_node0001&amp;#34;,
       &amp;#34;reason&amp;#34;:&amp;#34;REJECT&amp;#34;,
       &amp;#34;requested_protocol&amp;#34;:&amp;#34;3.8&amp;#34;,
       &amp;#34;ssl_client_fingerprint&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;ssl_client_subject&amp;#34;:&amp;#34;&amp;#34;,
       &amp;#34;time&amp;#34;:&amp;#34;2022-04-25 16:04:58.082568-05&amp;#34;,
       &amp;#34;user_name&amp;#34;:&amp;#34;Bob&amp;#34;
    }#012
    DatabaseName: VMart
    Hostname: vertica_host_01
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/admin/monitoring/monitoring-events/event-reporting-examples/#&#34;&gt;Event reporting examples&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Configuring reporting for SNMP</title>
      <link>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-snmp/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-reporting-snmp/</guid>
      <description>
        
        
        &lt;p&gt;Configuring event reporting for SNMP consists of:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Configuring OpenText™ Analytics Database to enable event trapping for SNMP as described below.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Importing the Management Information Base (MIB) file into the SNMP monitoring device.&lt;/p&gt;
&lt;p&gt;The MIB file allows the SNMP trap receiver to understand the traps it receives from the database. This, in turn, allows you to configure the actions it takes when it receives traps.&lt;/p&gt;
&lt;p&gt;OpenText™ Analytics Database supports the SNMPv1 trap protocol, and it is located in /opt/vertica/sbin/VERTICA-MIB. See the documentation for your SNMP monitoring device for more information about importing MIB files.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Configuring the SNMP trap receiver to handle traps from the database.&lt;/p&gt;
&lt;p&gt;SNMP trap receiver configuration differs greatly from vendor to vendor. As such, the directions presented here for configuring the SNMP trap receiver to handle traps from the database are generic.&lt;/p&gt;
&lt;p&gt;Database traps are single, generic traps that contain several fields of identifying information. These fields equate to the event data described in &lt;a href=&#34;../../../../../en/admin/monitoring/monitoring-events/#&#34;&gt;Monitoring events&lt;/a&gt;. However, the format used for the field names differs slightly. Under SNMP, the field names contain no spaces. Also, field names are pre-pended with “vert”. For example, Event Severity becomes vertEventSeverity.&lt;/p&gt;
&lt;p&gt;When configuring your trap receiver, be sure to use the same hostname, port, and community string you used to configure event trapping in the database.&lt;/p&gt;
&lt;p&gt;Examples of network management providers:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://software.microfocus.com/en-us/software/network-node-manager-i-network-management-software&#34;&gt;Network Node Manager i&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;IBM Tivoli&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;AdventNet&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Net-SNMP (Open Source)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Nagios (Open Source)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open NMS (Open Source)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Configuring event trapping for SNMP</title>
      <link>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-event-trapping-snmp/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/monitoring/monitoring-events/configuring-event-reporting/configuring-event-trapping-snmp/</guid>
      <description>
        
        
        &lt;p&gt;The following events are trapped by default when you configure OpenText™ Analytics Database to trap events for SNMP:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Low Disk Space&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Read Only File System&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Loss of K Safety&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Current Fault Tolerance at Critical Level&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Too Many ROS Containers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Node State Change&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Failure&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stale Checkpoint&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CRC Mismatch&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;to-configure-the-database-to-trap-events-for-snmp&#34;&gt;To configure the database to trap events for SNMP&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Enable the database to trap events for SNMP.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Define where the database sends the traps.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Optionally redefine which SNMP events the database traps.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

After you complete steps 1 and 2 above, the database automatically traps the default SNMP events. Only perform step 3 if you want to redefine which SNMP events are trapped. It is recommended that you trap the &lt;code&gt;Stale Checkpoint&lt;/code&gt; event even if you decide to reduce the number events the database traps for SNMP. The specific settings you define have no effect on traps sent to the log. All events are trapped to the log.

&lt;/div&gt;
&lt;h2 id=&#34;to-enable-event-trapping-for-snmp&#34;&gt;To enable event trapping for SNMP&lt;/h2&gt;
&lt;p&gt;Use the following SQL command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SnmpTrapsEnabled = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;to-define-where-the-database-sends-traps&#34;&gt;To define where the database sends traps&lt;/h2&gt;
&lt;p&gt;Use the following SQL command, where Host_name and port identify the computer where SNMP resides, and CommunityString acts like a password to control the database&#39;s access to the server:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SnmpTrapDestinationsList = &amp;#39;host_name port CommunityString&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;For example:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SnmpTrapDestinationsList = &amp;#39;localhost 162 public&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can also specify multiple destinations by specifying a list of destinations, separated by commas:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SnmpTrapDestinationsList = &amp;#39;host_name1 port1 CommunityString1, hostname2 port2 CommunityString2&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

: Setting multiple destinations sends any SNMP trap notification to all destinations listed.

&lt;/div&gt;
&lt;h2 id=&#34;to-define-which-events-the-database-traps&#34;&gt;To define which events the database traps&lt;/h2&gt;
&lt;p&gt;Use the following SQL command, where &lt;code&gt;Event_Name&lt;/code&gt; is one of the events in the list below the command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SnmpTrapEvents = &amp;#39;Event_Name1, Even_Name2&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Low Disk Space&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Read Only File System&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Loss Of K Safety&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Current Fault Tolerance at Critical Level&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Too Many ROS Containers&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Node State Change&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Failure&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Lock Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Recovery Projection Retrieval Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Refresh Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Tuple Mover Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Stale Checkpoint&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;CRC Mismatch&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

The above values are case sensitive.

&lt;/div&gt;
&lt;p&gt;The following example specifies two event names:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER DATABASE DEFAULT SET SnmpTrapEvents = &amp;#39;Low Disk Space, Recovery Failure&amp;#39;;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Admin: Verifying SNMP configuration</title>
      <link>/en/admin/monitoring/monitoring-events/configuring-event-reporting/verifying-snmp-config/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/monitoring/monitoring-events/configuring-event-reporting/verifying-snmp-config/</guid>
      <description>
        
        
        &lt;p&gt;To create a set of test events that checks SNMP configuration:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Set up SNMP trap handlers to catch OpenText™ Analytics Database events.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Test your setup with the following command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SELECT SNMP_TRAP_TEST();
    SNMP_TRAP_TEST
--------------------------
 Completed SNMP Trap Test
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
  </channel>
</rss>
