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