Commits

dizzyd committed 47a6b5c

Add SASL and SNMP config to app.config; add base SNMP agent config files

  • Participants
  • Parent commits e2ad0e6

Comments (0)

Files changed (10)

File rel/overlay/etc/app.config

 [
+ %% Riak config
  {riak, [
          %% storage_backend specifies the Erlang module defining the storage mechanism
          %%  that will be used on this node. 
          %% raw_name is the first part of all URLS used by Riak's raw HTTP interface.
          %%  See riak_web.erl and raw_http_resource.erl for details.
          {raw_name, "raw"}
+        ]},
+
+ %% SASL config
+ {sasl, [
+         {sasl_error_logger, {file, "log/sasl-error.log"}},
+         {errlog_type, error},
+         {error_logger_mf_dir, "log/sasl"},      % Log directory
+         {error_logger_mf_maxbytes, 10485760},   % 10 MB max file size
+         {error_logger_mf_maxfiles, 5}           % 5 files max
+         ]},
+
+ %% SNMP config
+ {snmp, [
+         {agent, [
+                  {config, [{dir, "etc/snmp"}]},
+                  {db_dir, "data/snmp"}
+                 ]}
         ]}
 ].
 

File rel/overlay/etc/snmp/agent.conf

+{intAgentIpAddress, [127,0,0,1]}.
+{intAgentUDPPort, 4000}.
+{snmpEngineID, "Riak SNMP"}.
+{snmpEngineMaxMessageSize, 484}.

File rel/overlay/etc/snmp/community.conf

+{"public", "public", "initial", "", ""}.

File rel/overlay/etc/snmp/context.conf

+%% This file was automatically generated by snmp_config v4.13.3  2009-10-21 11:15:18
+
+%% The default context
+"".

File rel/overlay/etc/snmp/notify.conf

+%% Contains information about SNMP Trap Notify Definitions
+%% {NotifyName, Tag, Type}.
+%%    * NotifyName is a unique non-empty string.
+%%    * Tag is a string referenced in TagList of the target_addr.conf file.
+%%    * Type = trap or inform.
+

File rel/overlay/etc/snmp/standard.conf

+{sysName, "Riak Server"}.
+{sysDescr, "Internet-scale Data Store"}.
+{sysContact, "info@basho.com"}.
+{sysLocation, "Data center"}.
+{sysObjectID, [3,6,1,4,1,193,19]}.  % {ericsson otp}
+{sysServices, 72}.
+{snmpEnableAuthenTraps, enabled}.

File rel/overlay/etc/snmp/target_addr.conf

+%% Stores the information about Target Address Definitions.
+%%
+%% The corresponding tables are snmpTargetAddrTable in the SNMP-TARGET-MIB and
+%% snmpTargetAddrExtTable in the SNMP-COMMUNITY-MIB.
+%%
+%% Each entry is a term of one of the following forms:
+%%
+%% {TargetName, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId}.
+%% {TargetName, Ip, Udp, Timeout, RetryCount, TagList, ParamsName, EngineId, TMask, MaxMessageSize}.
+%%
+%%   * TargetName is a unique non-empty string matching the NotifyName entry in the nofity.conf file.
+%%   * Ip is a list of four integers.
+%%   * Udp is an integer.
+%%   * Timeout is an integer.
+%%   * RetryCount is an integer.
+%%   * TagList is a string.
+%%   * ParamsName is a string.
+%%   * EngineId is a string.
+%%   * TMask is a string of size 0, or size 6 (default: []).
+%%   * MaxMessageSize is an integer (default: 2048).
+

File rel/overlay/etc/snmp/target_params.conf

+%% The information about Target Parameters Definitions
+%% The corresponding table is snmpTargetParamsTable in the SNMP-TARGET-MIB.
+%%
+%% Each entry is a term:
+%%
+%% {ParamsName, MPModel, SecurityModel, SecurityName, SecurityLevel}.
+%%     * ParamsName is a unique non-empty string.
+%%     * MPModel is v1, v2c or v3
+%%     * SecurityModel is v1, v2c, or usm.
+%%     * SecurityName is a string from the vacmSecurityToGroup table in the VASM file.
+%%     * SecurityLevel is noAuthNoPriv, authNoPriv or authPriv
+

File rel/overlay/etc/snmp/usm.conf

Empty file added.

File rel/overlay/etc/snmp/vacm.conf

+%% vacmViewTreeFamilyTable in the SNMP-VIEW-BASED-ACM-MIB.
+%%
+%% Each entry is one of the terms, one entry corresponds to one row in one of the tables.
+%%
+%% {vacmSecurityToGroup, SecModel, SecurityName, GroupName}.
+%% {vacmAccess, GroupName, Prefix, SecModel, SecLevel, Match, ReadView, WriteView, NotifyView}.
+%% {vacmViewTreeFamily, ViewIndex, ViewSubtree, ViewStatus, ViewMask}.
+%%
+%%     * SecModel is any, v1, v2c, or usm.
+%%     * SecurityName is a string.
+%%     * GroupName is a string.
+%%     * Prefix is a string.
+%%     * SecLevel is noAuthNoPriv, authNoPriv, or authPriv
+%%     * Match is prefix or exact.
+%%     * ReadView is a string.
+%%     * WriteView is a string.
+%%     * NotifyView is a string.
+%%     * ViewIndex is an integer.
+%%     * ViewSubtree is a list of integer.
+%%     * ViewStatus is either included or excluded
+%%     * ViewMask is either null or a list of ones and zeros. Ones nominate that
+%%       an exact match is used for this sub-identifier. Zeros are w%%   rds which
+%%       match any sub-identifier. If the mask is shorter than the subtree, the tail
+%%       is regarded as all ones. null is shorthand for a mask with all ones.
+
+{vacmSecurityToGroup, v2c, "initial", "initial"}.
+{vacmSecurityToGroup, usm, "initial", "initial"}.
+{vacmAccess, "initial", "", any, noAuthNoPriv, exact, "restricted", "", "restricted"}.
+{vacmAccess, "initial", "", usm, authNoPriv, exact, "internet", "internet", "internet"}.
+{vacmAccess, "initial", "", usm, authPriv, exact, "internet", "internet", "internet"}.
+{vacmViewTreeFamily, "internet", [1,3,6,1], included, null}.
+{vacmViewTreeFamily, "restricted", [1,3,6,1], included, null}.