Guest User

Untitled

a guest
Sep 12th, 2012
260
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # cat /etc/snmp/snmptt.ini
  2. #
  3. # SNMPTT v1.3 Configuration File
  4. #
  5. # Linux / Unix
  6. #
  7.  
  8. [General]
  9. # Name of this system for $H variable.  If blank, system name will be the computer's
  10. # hostname via Sys::Hostname.
  11. snmptt_system_name =
  12.  
  13. # Set to either 'standalone' or 'daemon'
  14. # standalone: snmptt called from snmptrapd.conf
  15. # daemon: snmptrapd.conf calls snmptthandler
  16. # Ignored by Windows.  See documentation
  17. mode = daemon
  18.  
  19. # Set to 1 to allow multiple trap definitions to be executed for the same trap.
  20. # Set to 0 to have it stop after the first match.
  21. # This option should normally be set to 1.  See the section 'SNMPTT.CONF Configuration
  22. # file Notes' in the SNMPTT documentation for more information.
  23. # Note: Wildcard matches are only matched if there are NO exact matches.  This takes
  24. #       into consideration the NODES list.  Therefore, if there is a matching trap, but
  25. #       the NODES list prevents it from being considered a match, the wildcard entry will
  26. #       only be used if there are no other exact matches.
  27. multiple_event = 1
  28.  
  29. # SNMPTRAPD passes the IP address of device sending the trap, and the IP address of the
  30. # actual SNMP agent.  These addresses could differ if the trap was sent on behalf of another
  31. # device (relay, proxy etc).
  32. # If DNS is enabled, the agent IP address is converted to a host name using a DNS lookup
  33. # (which includes the local hosts file, depending on how the OS is configured).  This name
  34. # will be used for: NODES entry matches, hostname field in logged traps (file / database),
  35. # and the $A variable.  Host names on the NODES line will be resolved and the IP address
  36. # will then be used for comparing.
  37. # Set to 0 to disable DNS resolution
  38. # Set to 1 to enable DNS resolution
  39. dns_enable = 0
  40.  
  41. # Set to 0 to enable the use of FQDN (Fully Qualified Domain Names).  If a host name is
  42. # passed to SNMPTT that contains a domain name, it will not be altered in any way by
  43. # SNMPTT.  This also affects resolve_value_ip_addresses.
  44. # Set to 1 to have SNMPTT strip the domain name from the host name passed to it.  For
  45. # example, server01.domain.com would be changed to server01
  46. # Set to 2 to have SNMPTT strip the domain name from the host name passed to it
  47. # based on the list of domains in strip_domain_list
  48. strip_domain = 0
  49.  
  50. # List of domain names that should be stripped when strip_domain is set to 2.
  51. # List can contain one or more domains.  For example, if the FQDN of a host is
  52. # server01.city.domain.com and the list contains domain.com, the 'host' will be
  53. # set as server01.city.
  54. strip_domain_list = <<END
  55. domain.com
  56. END
  57.  
  58. # Configures how IP addresses contained in the VALUE of the variable bindings are handled.
  59. # This only applies to the values for $n, $+n, $-n, $vn, $+*, $-*.
  60. # Set to 0 to disable resolving ip address to host names
  61. # Set to 1 to enable resolving ip address to host names
  62. # Note: net_snmp_perl_enable *must* be enabled.  The strip_domain settings influence the
  63. # format of the resolved host name.  DNS must be enabled (dns_enable)
  64. resolve_value_ip_addresses = 0
  65.  
  66. # Set to 1 to enable the use of the Perl module from the UCD-SNMP / NET-SNMP package.
  67. # This is required for $v variable substitution to work, and also for some other options
  68. # that are enabled in this .ini file.
  69. # Set to 0 to disable the use of the Perl module from the UCD-SNMP / NET-SNMP package.
  70. # Note: Enabling this with stand-alone mode can cause SNMPTT to run very slowly due to
  71. #       the loading of the MIBS at startup.
  72. net_snmp_perl_enable = 1
  73.  
  74. # This sets the best_guess parameter used by the UCD-SNMP / NET-SNMP Perl module for
  75. # translating symbolic nams to OIDs and vice versa.
  76. # For UCD-SNMP, and Net-SNMP 5.0.8 and previous versions, set this value to 0.
  77. # For Net-SNMP 5.0.9, or any Net-SNMP with patch 722075 applied, set this value to 2.
  78. # A value of 2 is equivalent to -IR on Net-SNMP command line utilities.
  79. # UCD-SNMP and Net-SNMP 5.0.8 and previous may not be able to translate certain formats of
  80. # symbolic names such as RFC1213-MIB::sysDescr.  Net-SNMP 5.0.9 or patch 722075 will allow
  81. # all possibilities to be translated.  See the FAQ section in the README for more info
  82. net_snmp_perl_best_guess = 0
  83.  
  84. # Configures how the OID of the received trap is handled when outputting to a log file /
  85. # database.  It does NOT apply to the $O variable.
  86. # Set to 0 to use the default of numerical OID
  87. # Set to 1 to translate the trap OID to short text (symbolic form) (eg: linkUp)
  88. # Set to 2 to translate the trap OID to short text with module name (eg: IF-MIB::linkUp)
  89. # Set to 3 to translate the trap OID to long text (eg: iso...snmpTraps.linkUp)
  90. # Set to 4 to translate the trap OID to long text with module name (eg:
  91. # IF-MIB::iso...snmpTraps.linkUp)
  92. # Note: -The output of the long format will vary depending on the version of Net-SNMP you
  93. #        are using.
  94. #       -net_snmp_perl_enable *must* be enabled
  95. #       -If using database logging, ensure the trapoid column is large enough to hold the
  96. #        entire line
  97. translate_log_trap_oid = 1
  98.  
  99. # Configures how OIDs contained in the VALUE of the variable bindings are handled.
  100. # This only applies to the values for $n, $+n, $-n, $vn, $+*, $-*.  For substitutions
  101. # that include variable NAMES ($+n etc), only the variable VALUE is affected.
  102. # Set to 0 to disable translating OID values to text (symbolic form)
  103. # Set to 1 to translate OID values to short text (symbolic form) (eg: BuildingAlarm)
  104. # Set to 2 to translate OID values to short text with module name (eg: UPS-MIB::BuildingAlarm)
  105. # Set to 3 to translate OID values to long text (eg: iso...upsAlarm.BuildingAlarm)
  106. # Set to 4 to translate OID values to long text with module name (eg:
  107. # UPS-MIB::iso...upsAlarm.BuildingAlarm)
  108. # For example, if the value contained: 'A UPS Alarm (.1.3.6.1.4.1.534.1.7.12) has cleared.',
  109. # it could be translated to: 'A UPS Alarm (UPS-MIB::BuildingAlarm) has cleared.'
  110. # Note: net_snmp_perl_enable *must* be enabled
  111. translate_value_oids = 1
  112.  
  113. # Configures how the symbolic enterprise OID will be displayed for $E.
  114. # Set to 1, 2, 3 or 4.  See translate_value_oids options 1,2,3 and 4.
  115. # Note: net_snmp_perl_enable *must* be enabled
  116. translate_enterprise_oid_format = 1
  117.  
  118. # Configures how the symbolic trap OID will be displayed for $O.
  119. # Set to 1, 2, 3 or 4.  See translate_value_oids options 1,2,3 and 4.
  120. # Note: net_snmp_perl_enable *must* be enabled
  121. translate_trap_oid_format = 0
  122.  
  123. # Configures how the symbolic trap OID will be displayed for $v, $-n, $+n, $-* and $+*.
  124. # Set to 1, 2, 3 or 4.  See translate_value_oids options 1,2,3 and 4.
  125. # Note: net_snmp_perl_enable *must* be enabled
  126. translate_varname_oid_format = 0
  127.  
  128. # Set to 0 to disable converting INTEGER values to enumeration tags as defined in the
  129. # MIB files
  130. # Set to 1 to enable converting INTEGER values to enumeration tags as defined in the
  131. # MIB files
  132. # Example: moverDoorState:open instead of moverDoorState:2
  133. # Note: net_snmp_perl_enable *must* be enabled
  134. translate_integers = 1
  135.  
  136. # Allows you to set the MIBS environment variable used by SNMPTT
  137. # Leave blank or comment out to have the systems enviroment settings used
  138. # To have all MIBS processed, set to ALL
  139. # See the snmp.conf manual page for more info
  140. #mibs_environment = ALL
  141.  
  142. # Set what is used to separate variables when wildcards are expanded on the FORMAT /
  143. # EXEC line.  Defaults to a space.  Value MUST be within quotes.  Can contain 1 or
  144. # more characters
  145. wildcard_expansion_separator = " "
  146.  
  147. # Set to 1 to allow unsafe REGEX code to be executed.
  148. # Set to 0 to prevent unsafe REGEX code from being executed (default).
  149. # Enabling unsafe REGEX code will allow variable interopolation and the use of the e
  150. # modifier to allow statements such as substitution with captures such
  151. # as:            (one (two) three)(five $1 six)
  152. # which outputs: five two six
  153. # or:            (one (two) three)("five ".length($1)." six")e
  154. # which outputs: five 3 six
  155. #
  156. # This is considered unsafe because the contents of the regular expression
  157. # (right) is executed (eval) by Perl which *could contain unsafe code*.
  158. # BE SURE THAT THE SNMPTT CONFIGURATION FILES ARE SECURE!
  159. allow_unsafe_regex = 0
  160.  
  161. # Set to 1 to have the backslash (escape) removed from quotes passed from
  162. # snmptrapd.  For example, \" would be changed to just "
  163. # Set to 0 to disable
  164. remove_backslash_from_quotes = 0
  165.  
  166. # Set to 1 to have NODES files loaded each time a trap is processed.
  167. # Set to 0 to have all NODES files loaded when the snmptt.conf files are loaded.
  168. # If NODES files are used (files that contain lists of NODES), then setting to 1
  169. # will cause the list to be loaded each time an EVENT is processed that uses
  170. # NODES files.  This will allow the NODES file to be modified while SNMPTT is
  171. # running but can result in many file reads depending on the number of traps
  172. # received.  Defaults to 0
  173. dynamic_nodes = 0
  174.  
  175. # This option allows you to use the $D substitution variable to include the
  176. # description text from the SNMPTT.CONF or MIB files.
  177. # Set to 0 to disable the $D substitution variable.  If $D is used, nothing
  178. #  will be outputted.
  179. # Set to 1 to enable the $D substitution variable and have it use the
  180. #  descriptions stored in the SNMPTT .conf files.  Enabling this option can
  181. #  greatly increase the amount of memory used by SNMPTT.
  182. # Set to 2 to enable the $D substitution variable and have it use the
  183. #  description from the MIB files.  This enables the UCD-SNMP / NET-SNMP Perl
  184. #  module save_descriptions variable.  Enabling this option can greatly
  185. #  increase the amount of memory used by the Net-SNMP SNMP Perl module, which
  186. #  will result in an increase of memory usage by SNMPTT.
  187. description_mode = 0
  188.  
  189. # Set to 1 to remove any white space at the start of each line from the MIB
  190. # or SNMPTT.CONF description when description_mode is set to 1 or 2.
  191. description_clean = 1
  192.  
  193. # Warning: Experimental.  Not recommended for production environments.
  194. #          When threads are enabled, SNMPTT may quit unexpectedly.
  195. # Set to 1 to enable threads (ithreads) in Perl 5.6.0 or higher.  If enabled,
  196. # EXEC will launch in a thread to allow SNMPTT to continue processing other
  197. # traps.  See also threads_max.
  198. # Set to 0 to disable threads (ithreads).
  199. # Defaults to 0
  200. threads_enable = 0
  201.  
  202. # Warning: Experimental.  Not recommended for production environments.
  203. #          When threads are enabled, SNMPTT may quit unexpectedly.
  204. # This option allows you to set the maximum number of threads that will
  205. # execute at once.  Defaults to 10
  206. threads_max = 10
  207.  
  208. # The date format for $x in strftime() format.  If not defined, defaults
  209. # to %a %b %e %Y.
  210. #date_format = %a %b %e %Y
  211.  
  212. # The time format for $X in strftime() format.  If not defined, defaults
  213. # to %H:%M:%S.
  214. #time_format = %H:%M:%S
  215.  
  216. # The date time format in strftime() format for the date/time when logging
  217. # to standard output, snmptt log files (log_file) and the unknown log file
  218. # (unknown_trap_log_file).  Defaults to localtime().  For SQL, see
  219. # date_time_format_sql.
  220. # Example:  %a %b %e %Y %H:%M:%S
  221. #date_time_format =
  222.  
  223. [DaemonMode]
  224. # Set to 1 to have snmptt fork to the background when run in daemon mode
  225. # Ignored by Windows.  See documentation
  226. daemon_fork = 1
  227.  
  228. # Set to the numerical user id (eg: 500) or textual user id (eg: snmptt)
  229. # that snmptt should change to when running in daemon mode.  Leave blank
  230. # to disable.  The user used should have read/write access to all log
  231. # files, the spool folder, and read access to the configuration files.
  232. # Only use this if you are starting snmptt as root.
  233. # A second (child) process will be started as the daemon_uid user so
  234. # there will be two snmptt processes running.  The first process will
  235. # continue to run as the user that ran snmptt (root), waiting for the
  236. # child to quit.  After the child quits, the parent process will remove
  237. # the snmptt.pid file and exit.
  238. daemon_uid = snmptt
  239.  
  240. # Complete path of file to store process ID when running in daemon mode.
  241. pid_file = /var/run/snmptt.pid
  242.  
  243. # Directory to read received traps from.  Ex: /var/spool/snmptt/
  244. # Don't forget the trailing slash!
  245. spool_directory = /var/spool/snmptt/
  246.  
  247. # Amount of time in seconds to sleep between processing spool files
  248. sleep = 5
  249.  
  250. # Set to 1 to have SNMPTT use the time that the trap was processed by SNMPTTHANDLER
  251. # Set to 0 to have SNMPTT use the time the trap was processed.  Note:  Using 0 can
  252. # result in the time being off by the number of seconds used for 'sleep'
  253. use_trap_time = 1
  254.  
  255. # Set to 0 to have SNMPTT erase the spooled trap file after it attempts to process
  256. # the trap even if it did not successfully log the trap to any of the log systems.
  257. # Set to 1 to have SNMPTT erase the spooled trap file only after it successfully
  258. # logs to at least ONE log system.
  259. # Set to 2 to have SNMPTT erase the spooled trap file only after it successfully
  260. # logs to ALL of the enabled log systems.  Warning:  If multiple log systems are
  261. # enabled and only one fails, the other log system will continuously be logged to
  262. # until ALL of the log systems function.
  263. # The recommended setting is 1 with only one log system enabled.
  264. keep_unlogged_traps = 1
  265.  
  266. # How often duplicate traps will be processed.  An MD5 hash of all incoming traps
  267. # is stored in memory and is used to check for duplicates.  All variables except for
  268. # the uptime variable are used when calculating the MD5.  The larger this variable,
  269. # the more memory snmptt will require.
  270. # Note:  In most cases it may be a good idea to enable this but sometimes it can have a
  271. #        negative effect.  For example, if you are trying to troubleshoot a wireless device
  272. #        that keeps losing it's connection you may want to disable this so that you see
  273. #        all the associations and disassociations.
  274. # 5 minutes = 300
  275. # 10 minutes = 600
  276. # 15 minutes = 900
  277. duplicate_trap_window = 0
  278.  
  279. [Logging]
  280. # Set to 1 to enable messages to be sent to standard output, or 0 to disable.
  281. # Would normally be disabled unless you are piping this program to another
  282. stdout_enable = 0
  283.  
  284. # Set to 1 to enable text logging of *TRAPS*.  Make sure you specify a log_file
  285. # location
  286. log_enable = 0
  287.  
  288. # Log file location.  The COMPLETE path and filename.  Ex: '/var/log/snmptt/snmptt.log'
  289. log_file = /var/log/snmptt/snmptt.log
  290.  
  291. # Set to 1 to enable text logging of *SNMPTT system errors*.  Make sure you
  292. # specify a log_system_file location
  293. log_system_enable = 0
  294.  
  295. # Log file location.  The COMPLETE path and filename.
  296. # Ex: '/var/log/snmptt/snmpttsystem.log'
  297. log_system_file = /var/log/snmptt/snmpttsystem.log
  298.  
  299. # Set to 1 to enable logging of unknown traps.  This should normally be left off
  300. # as the file could grow large quickly.  Used primarily for troubleshooting.  If
  301. # you have defined a trap in snmptt.conf, but it is not executing, enable this to
  302. # see if it is being considered an unknown trap due to an incorrect entry or
  303. # simply missing from the snmptt.conf file.
  304. # Unknown traps can be logged either a text file, a SQL table or both.
  305. # See SQL section to define a SQL table to log unknown traps to.
  306. unknown_trap_log_enable = 0
  307.  
  308. # Unknown trap log file location.  The COMPLETE path and filename.
  309. # Ex: '/var/log/snmptt/snmpttunknown.log'
  310. # Leave blank to disable logging to text file if logging to SQL is enabled
  311. # for unknown traps
  312. unknown_trap_log_file = /var/log/snmptt/snmpttunknown.log
  313.  
  314. # How often in seconds statistics should be logged to syslog or the event log.
  315. # Set to 0 to disable
  316. # 1 hour = 216000
  317. # 12 hours = 2592000
  318. # 24 hours = 5184000
  319. statistics_interval = 0
  320.  
  321. # Set to 1 to enable logging of *TRAPS* to syslog.  If you do not have the Sys::Syslog
  322. # module then disable this.  Windows users should disable this.
  323. syslog_enable = 1
  324.  
  325. # Syslog facility to use for logging of *TRAPS*.  For example: 'local0'
  326. syslog_facility = local0
  327.  
  328. # Set the syslog level for *TRAPS* based on the severity level of the trap
  329. # as defined in the snmptt.conf file.  Values must be one per line between
  330. # the syslog_level_* and END lines, and are not case sensitive.  For example:
  331. #   Warning
  332. #   Critical
  333. # Duplicate definitions will use the definition with the higher severity.
  334. syslog_level_debug = <<END
  335. END
  336. syslog_level_info = <<END
  337. END
  338. syslog_level_notice = <<END
  339. END
  340. syslog_level_warning = <<END
  341. END
  342. syslog_level_err = <<END
  343. END
  344. syslog_level_crit = <<END
  345. END
  346. syslog_level_alert = <<END
  347. END
  348.  
  349. # Syslog default level to use for logging of *TRAPS*.  For example: warning
  350. # Valid values: emerg, alert, crit, err, warning, notice, info, debug
  351. syslog_level = warning
  352.  
  353. # Set to 1 to enable logging of *SNMPTT system errors* to syslog.  If you do not have the
  354. # Sys::Syslog module then disable this.  Windows users should disable this.
  355. syslog_system_enable = 1
  356.  
  357. # Syslog facility to use for logging of *SNMPTT system errors*.  For example: 'local0'
  358. syslog_system_facility = local0
  359.  
  360. # Syslog level to use for logging of *SNMPTT system errors*..  For example: 'warning'
  361. # Valid values: emerg, alert, crit, err, warning, notice, info, debug
  362. syslog_system_level = warning
  363.  
  364. [SQL]
  365. # Determines if the enterprise column contains the numeric OID or symbolic OID
  366. # Set to 0 for numeric OID
  367. # Set to 1 for symbolic OID
  368. # Uses translate_enterprise_oid_format to determine format
  369. # Note: net_snmp_perl_enable *must* be enabled
  370. db_translate_enterprise = 0
  371.  
  372. # FORMAT line to use for unknown traps.  If not defined, defaults to $-*.
  373. db_unknown_trap_format = '$-*'
  374.  
  375. # List of custom SQL column names and values for the table of received traps
  376. # (defined by *_table below).  The format is
  377. #   column name
  378. #   value
  379. #
  380. # For example:
  381. #
  382. #   binding_count
  383. #   $#
  384. #   uptime2
  385. #   The agent has been up for $T.
  386. sql_custom_columns = <<END
  387. END
  388.  
  389. # List of custom SQL column names and values for the table of unknown traps
  390. # (defined by *_table_unknown below).  See sql_custom_columns for the format.
  391. sql_custom_columns_unknown = <<END
  392. END
  393.  
  394. # MySQL: Set to 1 to enable logging to a MySQL database via DBI (Linux / Windows)
  395. # This requires DBI:: and DBD::mysql
  396. mysql_dbi_enable = 0
  397.  
  398. # MySQL: Hostname of database server (optional - default localhost)
  399. mysql_dbi_host = localhost
  400.  
  401. # MySQL: Port number of database server (optional - default 3306)
  402. mysql_dbi_port = 3306
  403.  
  404. # MySQL: Database to use
  405. mysql_dbi_database = snmptt
  406.  
  407. # MySQL: Table to use
  408. mysql_dbi_table = snmptt
  409.  
  410. # MySQL: Table to use for unknown traps
  411. # Leave blank to disable logging of unknown traps to MySQL
  412. # Note: unknown_trap_log_enable must be enabled.
  413. mysql_dbi_table_unknown = snmptt_unknown
  414.  
  415. # MySQL: Table to use for statistics
  416. # Note: statistics_interval must be set.  See also stat_time_format_sql.
  417. #mysql_dbi_table_statistics = snmptt_statistics
  418. mysql_dbi_table_statistics =
  419.  
  420. # MySQL: Username to use
  421. mysql_dbi_username = snmpttuser
  422.  
  423. # MySQL: Password to use
  424. mysql_dbi_password = password
  425.  
  426. # MySQL: Whether or not to 'ping' the database before attempting an INSERT
  427. # to ensure the connection is still valid.  If *any* error is generate by
  428. # the ping such as 'Unable to connect to database', it will attempt to
  429. # re-create the database connection.
  430. # Set to 0 to disable
  431. # Set to 1 to enable
  432. # Note:  This has no effect on mysql_ping_interval.
  433. mysql_ping_on_insert = 1
  434.  
  435. # MySQL: How often in seconds the database should be 'pinged' to ensure the
  436. # connection is still valid.  If *any* error is generate by the ping such as
  437. # 'Unable to connect to database', it will attempt to re-create the database
  438. # connection.  Set to 0 to disable pinging.
  439. # Note:  This has no effect on mysql_ping_on_insert.
  440. # disabled = 0
  441. # 5 minutes = 300
  442. # 15 minutes = 900
  443. # 30 minutes = 1800
  444. mysql_ping_interval = 300
  445.  
  446. # PostgreSQL: Set to 1 to enable logging to a PostgreSQL database via DBI (Linux / Windows)
  447. # This requires DBI:: and DBD::PgPP
  448. postgresql_dbi_enable = 0
  449.  
  450. # Set to 0 to use the DBD::PgPP module
  451. # Set to 1 to use the DBD::Pg module
  452. postgresql_dbi_module = 0
  453.  
  454. # Set to 0 to disable host and port network support
  455. # Set to 1 to enable host and port network support
  456. # If set to 1, ensure PostgreSQL is configured to allow connections via TCPIP by setting
  457. # tcpip_socket = true in the $PGDATA/postgresql.conf file, and adding the ip address of
  458. # the SNMPTT server to $PGDATApg_hba.conf.  The common location for the config files for
  459. # RPM installations of PostgreSQL is /var/lib/pgsql/data.
  460. postgresql_dbi_hostport_enable = 0
  461.  
  462. # PostgreSQL: Hostname of database server (optional - default localhost)
  463. postgresql_dbi_host = localhost
  464.  
  465. # PostgreSQL: Port number of database server (optional - default 5432)
  466. postgresql_dbi_port = 5432
  467.  
  468. # PostgreSQL: Database to use
  469. postgresql_dbi_database = snmptt
  470.  
  471. # PostgreSQL: Table to use for unknown traps
  472. # Leave blank to disable logging of unknown traps to PostgreSQL
  473. # Note: unknown_trap_log_enable must be enabled.
  474. postgresql_dbi_table_unknown = snmptt_unknown
  475.  
  476. # PostgreSQL: Table to use for statistics
  477. # Note: statistics_interval must be set.  See also stat_time_format_sql.
  478. #postgresql_dbi_table_statistics = snmptt_statistics
  479. postgresql_dbi_table_statistics =
  480.  
  481. # PostgreSQL: Table to use
  482. postgresql_dbi_table = snmptt
  483.  
  484. # PostgreSQL: Username to use
  485. postgresql_dbi_username = snmpttuser
  486.  
  487. # PostgreSQL: Password to use
  488. postgresql_dbi_password = password
  489.  
  490. # PostgreSQL: Whether or not to 'ping' the database before attempting an INSERT
  491. # to ensure the connection is still valid.  If *any* error is generate by
  492. # the ping such as 'Unable to connect to database', it will attempt to
  493. # re-create the database connection.
  494. # Set to 0 to disable
  495. # Set to 1 to enable
  496. # Note:  This has no effect on postgresqll_ping_interval.
  497. postgresql_ping_on_insert = 1
  498.  
  499. # PostgreSQL: How often in seconds the database should be 'pinged' to ensure the
  500. # connection is still valid.  If *any* error is generate by the ping such as
  501. # 'Unable to connect to database', it will attempt to re-create the database
  502. # connection.  Set to 0 to disable pinging.
  503. # Note:  This has no effect on postgresql_ping_on_insert.
  504. # disabled = 0
  505. # 5 minutes = 300
  506. # 15 minutes = 900
  507. # 30 minutes = 1800
  508. postgresql_ping_interval = 300
  509.  
  510. # ODBC: Set to 1 to enable logging to a database via ODBC using DBD::ODBC.
  511. # This requires both DBI:: and DBD::ODBC
  512. dbd_odbc_enable = 0
  513.  
  514. # DBD:ODBC: Database to use
  515. dbd_odbc_dsn = snmptt
  516.  
  517. # DBD:ODBC: Table to use
  518. dbd_odbc_table = snmptt
  519.  
  520. # DBD:ODBC: Table to use for unknown traps
  521. # Leave blank to disable logging of unknown traps to DBD:ODBC
  522. # Note: unknown_trap_log_enable must be enabled.
  523. dbd_odbc_table_unknown = snmptt_unknown
  524.  
  525. # DBD:ODBC: Table to use for statistics
  526. # Note: statistics_interval must be set.  See also stat_time_format_sql.
  527. #dbd_odbc_table_statistics = snmptt_statistics
  528. dbd_odbc_table_statistics =
  529.  
  530. # DBD:ODBC: Username to use
  531. dbd_odbc_username = snmptt
  532.  
  533. # DBD:DBC:: Password to use
  534. dbd_odbc_password = password
  535.  
  536.  
  537. # DBD:ODBC: Whether or not to 'ping' the database before attempting an INSERT
  538. # to ensure the connection is still valid.  If *any* error is generate by
  539. # the ping such as 'Unable to connect to database', it will attempt to
  540. # re-create the database connection.
  541. # Set to 0 to disable
  542. # Set to 1 to enable
  543. # Note:  This has no effect on dbd_odbc_ping_interval.
  544. dbd_odbc_ping_on_insert = 1
  545.  
  546. # DBD:ODBC:: How often in seconds the database should be 'pinged' to ensure the
  547. # connection is still valid.  If *any* error is generate by the ping such as
  548. # 'Unable to connect to database', it will attempt to re-create the database
  549. # connection.  Set to 0 to disable pinging.
  550. # Note:  This has no effect on dbd_odbc_ping_on_insert.
  551. # disabled = 0
  552. # 5 minutes = 300
  553. # 15 minutes = 900
  554. # 30 minutes = 1800
  555. dbd_odbc_ping_interval = 300
  556.  
  557. # The date time format for the traptime column in SQL.  Defaults to
  558. # localtime().  When a date/time field is used in SQL, this should
  559. # be changed to follow a standard that is supported by the SQL server.
  560. # Example:  For a MySQL DATETIME, use %Y-%m-%d %H:%M:%S.
  561. #date_time_format_sql =
  562.  
  563. # The date time format for the stat_time column in SQL.  Defaults to
  564. # localtime().  When a date/time field is used in SQL, this should
  565. # be changed to follow a standard that is supported by the SQL server.
  566. # Example:  For a MySQL DATETIME, use %Y-%m-%d %H:%M:%S.
  567. #stat_time_format_sql =
  568.  
  569. [Exec]
  570.  
  571. # Set to 1 to allow EXEC statements to execute.  Should normally be left on unless you
  572. # want to temporarily disable all EXEC commands
  573. exec_enable = 1
  574.  
  575. # Set to 1 to allow PREEXEC statements to execute.  Should normally be left on unless you
  576. # want to temporarily disable all PREEXEC commands
  577. pre_exec_enable = 1
  578.  
  579. # If defined, the following command will be executed for ALL unknown traps.  Passed to the
  580. # command will be all standard and enterprise variables, similar to unknown_trap_log_file
  581. # but without the newlines.
  582. unknown_trap_exec =
  583.  
  584. # FORMAT line that is passed to the unknown_trap_exec command.  If not defined, it
  585. # defaults to what is described in the unknown_trap_exec setting.  The following
  586. # would be *similar* to the default described in the unknown_trap_exec setting
  587. # (all on one line):
  588. # $x !! $X: Unknown trap ($o) received from $A at: Value 0: $A Value 1: $aR
  589. # Value 2: $T Value 3: $o Value 4: $aA Value 5: $C Value 6: $e Ent Values: $+*
  590. unknown_trap_exec_format =
  591.  
  592. # Set to 1 to escape wildards (* and ?) in EXEC, PREEXEC and the unknown_trap_exec
  593. # commands.  Enable this to prevent the shell from expanding the wildcard
  594. # characters.  The default is 1.
  595. exec_escape = 1
  596.  
  597. [Debugging]
  598. # 0 - do not output messages
  599. # 1 - output some basic messages
  600. # 2 - out all messages
  601. DEBUGGING = 0
  602.  
  603. # Debugging file - SNMPTT
  604. # Location of debugging output file.  Leave blank to default to STDOUT (good for
  605. # standalone mode, or daemon mode without forking)
  606. DEBUGGING_FILE =
  607. # DEBUGGING_FILE = /var/log/snmptt/snmptt.debug
  608.  
  609. # Debugging file - SNMPTTHANDLER
  610. # Location of debugging output file.  Leave blank to default to STDOUT
  611. DEBUGGING_FILE_HANDLER =
  612. # DEBUGGING_FILE_HANDLER = /var/log/snmptt/snmptthandler.debug
  613.  
  614. [TrapFiles]
  615. # A list of snmptt.conf files (this is NOT the snmptrapd.conf file).  The COMPLETE path
  616. # and filename.  Ex: '/etc/snmp/snmptt.conf'
  617. snmptt_conf_files = <<END
  618. /etc/snmp/snmptt.conf
  619. END
RAW Paste Data