Advertisement
Guest User

Untitled

a guest
Jul 4th, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. cat /usr/local/nagios/etc/ndo2db.cfg
  2. #####################################################################
  3. # NDO2DB DAEMON CONFIG FILE
  4. #
  5. # Last Modified: 01-02-2009
  6. #####################################################################
  7.  
  8.  
  9.  
  10. # LOCK FILE
  11. # This is the lockfile that NDO2DB will use to store its PID number
  12. # in when it is running in daemon mode.
  13.  
  14. lock_file=/usr/local/nagios/var/ndo2db.lock
  15.  
  16.  
  17.  
  18. # USER/GROUP PRIVILIGES
  19. # These options determine the user/group that the daemon should run as.
  20. # You can specify a number (uid/gid) or a name for either option.
  21.  
  22. ndo2db_user=nagios
  23. ndo2db_group=nagios
  24.  
  25.  
  26.  
  27. # SOCKET TYPE
  28. # This option determines what type of socket the daemon will create
  29. # an accept connections from.
  30. # Value:
  31. # unix = Unix domain socket (default)
  32. # tcp = TCP socket
  33.  
  34. socket_type=unix
  35. #socket_type=tcp
  36.  
  37.  
  38.  
  39. # SOCKET NAME
  40. # This option determines the name and path of the UNIX domain
  41. # socket that the daemon will create and accept connections from.
  42. # This option is only valid if the socket type specified above
  43. # is "unix".
  44.  
  45. socket_name=/usr/local/nagios/var/ndo.sock
  46.  
  47.  
  48.  
  49. # TCP PORT
  50. # This option determines what port the daemon will listen for
  51. # connections on. This option is only vlaid if the socket type
  52. # specified above is "tcp".
  53.  
  54. tcp_port=5668
  55.  
  56.  
  57.  
  58. # ENCRYPTION
  59. # This option determines if the ndo2db daemon will accept SSL to encrypt the
  60. # network traffic between module and ndo2db daemon.
  61. # Both sides have to enable this feature which depends on SSL Libraries
  62. # like openssl or kerberos
  63. # This option is only valid if the output type
  64. # option specified above is "tcpsocket".
  65. #
  66. # A value of '1' will enable this feature
  67.  
  68. use_ssl=0
  69.  
  70.  
  71.  
  72. # DATABASE SERVER TYPE
  73. # This option determines what type of DB server the daemon should
  74. # connect to.
  75. # Values:
  76. # mysql = MySQL
  77. # pgsql = PostgreSQL
  78.  
  79. db_servertype=mysql
  80.  
  81.  
  82.  
  83. # DATABASE HOST
  84. # This option specifies what host the DB server is running on.
  85.  
  86. db_host=localhost
  87.  
  88.  
  89.  
  90. # DATABASE PORT
  91. # This option specifies the port that the DB server is running on.
  92. # Values:
  93. # 3306 = Default MySQL port
  94. # 5432 = Default PostgreSQL port
  95.  
  96. db_port=3306
  97.  
  98.  
  99.  
  100. # DATABASE NAME
  101. # This option specifies the name of the database that should be used.
  102.  
  103. db_name=nagios_
  104.  
  105.  
  106.  
  107. # DATABASE TABLE PREFIX
  108. # Determines the prefix (if any) that should be prepended to table names.
  109. # If you modify the table prefix, you'll need to modify the SQL script for
  110. # creating the database!
  111.  
  112. db_prefix=nagios_
  113.  
  114.  
  115.  
  116. # DATABASE USERNAME/PASSWORD
  117. # This is the username/password that will be used to authenticate to the DB.
  118. # The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on
  119. # the database.
  120.  
  121. db_user=ndouser
  122. db_pass=ndopassword
  123.  
  124.  
  125.  
  126. ## TABLE TRIMMING OPTIONS
  127. # Several database tables containing Nagios event data can become quite large
  128. # over time. Most admins will want to trim these tables and keep only a
  129. # certain amount of data in them. The options below are used to specify the
  130. # age (in MINUTES) that data should be allowd to remain in various tables
  131. # before it is deleted. Using a value of zero (0) for any value means that
  132. # that particular table should NOT be automatically trimmed.
  133.  
  134. # Keep timed events for 24 hours
  135. max_timedevents_age=1440
  136.  
  137. # Keep system commands for 1 week
  138. max_systemcommands_age=10080
  139.  
  140. # Keep service checks for 1 week
  141. max_servicechecks_age=10080
  142.  
  143. # Keep host checks for 1 week
  144. max_hostchecks_age=10080
  145.  
  146. # Keep event handlers for 31 days
  147. max_eventhandlers_age=44640
  148.  
  149. # Keep external commands for 31 days
  150. max_externalcommands_age=44640
  151.  
  152.  
  153.  
  154.  
  155. # DEBUG LEVEL
  156. # This option determines how much (if any) debugging information will
  157. # be written to the debug file. OR values together to log multiple
  158. # types of information.
  159. # Values: -1 = Everything
  160. # 0 = Nothing
  161. # 1 = Process info
  162. # 2 = SQL queries
  163.  
  164. debug_level=0
  165.  
  166.  
  167.  
  168. # DEBUG VERBOSITY
  169. # This option determines how verbose the debug log out will be.
  170. # Values: 0 = Brief output
  171. # 1 = More detailed
  172. # 2 = Very detailed
  173.  
  174. debug_verbosity=1
  175.  
  176.  
  177.  
  178. # DEBUG FILE
  179. # This option determines where the daemon should write debugging information.
  180.  
  181. debug_file=/usr/local/nagios/var/ndo2db.debug
  182.  
  183.  
  184.  
  185. # MAX DEBUG FILE SIZE
  186. # This option determines the maximum size (in bytes) of the debug file. If
  187. # the file grows larger than this size, it will be renamed with a .old
  188. # extension. If a file already exists with a .old extension it will
  189. # automatically be deleted. This helps ensure your disk space usage doesn't
  190. # get out of control when debugging.
  191.  
  192. max_debug_file_size=1000000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement