corsade

Client settings for ncpa.cfg

Feb 3rd, 2023
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.20 KB | None | 0 0
  1. #
  2. # NCPA Main Config File
  3. # ---------------------
  4. #
  5.  
  6. #
  7. # -------------------------------
  8. # General Configuration
  9. # -------------------------------
  10. #
  11.  
  12. [general]
  13.  
  14. #
  15. # Check logging (in ncpa.db and the interface) is on by default, you can disable it
  16. # if you do not want to record the check requests that are coming in or checks being
  17. # sent over NRDP.
  18. # Default: check_logging = 1
  19. #
  20. check_logging = 1
  21.  
  22. #
  23. # Check logging time - how long in DAYS you'd like to keep checks in the database.
  24. # Default: 30
  25. #
  26. check_logging_time = 30
  27.  
  28. #
  29. # Display all mounted disk partitions
  30. # (essentially setting all=True here: https://psutil.readthedocs.io/en/latest/#psutil.disk_partitions)
  31. # Default: 1
  32. #
  33. all_partitions = 1
  34.  
  35. #
  36. # Excluded file system types removes these fs types from the disk metrics
  37. # (This is mostly only noteable on UNIX systems but also works on Windows if you need it)
  38. # Default: aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,
  39. # encryptfs,efivarfs,fuse,fusectl,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,
  40. # rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs,nfsd,xenfs
  41. #
  42. exclude_fs_types = aufs,autofs,binfmt_misc,cifs,cgroup,configfs,debugfs,devpts,devtmpfs,encryptfs,efivarfs,fuse,fusectl,hugetlbfs,mqueue,nfs,overlayfs,proc,pstore,rpc_pipefs,securityfs,selinuxfs,smb,sysfs,tmpfs,tracefs,nfsd,xenfs
  43.  
  44. #
  45. # The default unit to convert bytes (B) into if no unit is specified
  46. # (Gi = 1024 MiB, G = 1000 MB)
  47. #
  48. default_units = Gi
  49.  
  50. #
  51. # -------------------------------
  52. # Listener Configuration (daemon)
  53. # -------------------------------
  54. #
  55.  
  56. [listener]
  57.  
  58. #
  59. # User and group to run plugins as (recommended to use nagios:nagios)
  60. # Default: uid = nagios
  61. # Default: gid = nagios
  62. #
  63. # ** Note - The daemon runs as root, but forks a child process when running a plugin
  64. # that is defined by the user, for security reasons. However, without the main daemon
  65. # running as root, much of the system information would be missing. This is typical behavior. **
  66. #
  67. # This is for Unix only (Linux, Mac OS X, etc)
  68. #
  69. uid = nagios
  70. gid = nagios
  71.  
  72. #
  73. # IP address and port number for the Listener to use for the web GUI and API
  74. #
  75. # :: allows for dual stack (IPv4 and IPv6 on most linux systems) but will only allow
  76. # for IPv6 connections on Windows
  77. # 0.0.0.0 allows for IPv4 connections only on Windows and most linux systems
  78. #
  79. # Default: ip = ::
  80. # Default (Windows): ip = 0.0.0.0
  81. # Default: port = 5693
  82. #
  83. ip = ::
  84. port = 5693
  85.  
  86. #
  87. # SSL connection and certificate config (if an SSL option is not available on some older
  88. # operating systems it will default back to TLSv1)
  89. # ssl_version options: TLSv1, TLSv1_1, TLSv1_2
  90. #
  91. # ssl_ciphers = <list of ciphers>
  92. #
  93. ssl_version = TLSv1_2
  94. #certificate = adhoc
  95.  
  96. #
  97. # Listener logging file level, location, and the PID location
  98. # Default: loglevel = info (debug, info, warning, error)
  99. # Default: logfile = var/log/ncpa_listener.log
  100. # Default: pidfile = var/run/ncpa_listener.pid (leave listener in pid file name)
  101. #
  102. loglevel = info
  103. logfile = var/log/ncpa_listener.log
  104. pidfile = var/run/ncpa_listener.pid
  105.  
  106. #
  107. # Delay the listener (API & web GUI) from starting in seconds
  108. # Default: 0
  109. #
  110. # delay_start = 30
  111.  
  112. #
  113. # Allow admin functionality in the web GUI. When this is set to 0, the admin section will not
  114. # be displayed in the header and will not be available to be accessed.
  115. # Default: 1
  116. #
  117. admin_gui_access = 0
  118.  
  119. #
  120. # Admin password for the admin section in the web GUI, by default there is no admin
  121. # password and the admin section of the GUI can be accessed by anyone if admin_gui_access is set to 1.
  122. # Default: None
  123. #
  124. # Note: Setting this value to 'None' will automatically log you in, setting it empty will allow you to
  125. # log in using a blank password.
  126. #
  127. admin_password = None
  128.  
  129. #
  130. # Require admin password to access ALL of the web GUI.
  131. # This does not affect API access via token (community_string).
  132. # Default: 0
  133. #
  134. admin_auth_only = 0
  135.  
  136. #
  137. # Comma separated list of allowed hosts that can access the API (and GUI)
  138. # Supported types: IPv4, IPv4-mapped IPv6, IPv6, hostnames
  139. # Hostname wildcards are not supported.
  140. #
  141. # Exmaple IPv4: 192.168.23.15
  142. # Example IPv4 subnet: 192.168.0.0/28
  143. # Example IPv4-mapped IPv6: ::ffff:192.168.1.15
  144. # Example IPv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
  145. # Example hostname: asterisk.mydomain.com
  146. # Example mixed types: 192.168.23.15, 192.168.0.0/28, ::ffff:192.168.1.15, 2001:0db8:85a3:0000:0000:8a2e:0370:7334, asterisk.mydomain.com
  147. #
  148. allowed_hosts = 10.0.0.125
  149.  
  150. #
  151. # Number of maximum concurrent connections to the NCPA server.
  152. # Use "None" for unlimited. Default is 200.
  153. # Example: 200
  154. #
  155. # max_connections =
  156.  
  157. #
  158. # Set the URL to use in the X-Frame-Options and Content-Security-Policy headers
  159. # in order to enable the NCPA GUI to be allowed to load into a frame
  160. # Default: None
  161. # Example: mycoolwebsite.com
  162. # Example: *.mycoolwebsite.com
  163. #
  164. # allowed_sources =
  165.  
  166. #
  167. # The max size allowed for a log file in megabytes.
  168. # When the log becomes larger than this, the log will be rolled over
  169. # and a new log will be started.
  170. # Default: 5
  171. #
  172. # logmaxmb =
  173.  
  174. #
  175. # The max number of log rollovers that will be kept.
  176. # Default: 5
  177. #
  178. # logbackups =
  179.  
  180. #
  181. # -------------------------------
  182. # Listener Configuration (API)
  183. # -------------------------------
  184. #
  185.  
  186. [api]
  187.  
  188. #
  189. # The token that will be used to log into the basic web GUI (API browser, graphs, top charts, etc)
  190. # and to authenticate requests to the API and requests through check_ncpa.py
  191. #
  192.  
  193. community_string = corsadetoken123
  194.  
  195. #
  196. # -------------------------------
  197. # Passive Configuration (daemon)
  198. # -------------------------------
  199. #
  200.  
  201. [passive]
  202.  
  203. #
  204. # Handlers are a comma separated list of what you would like the passive agent to run
  205. # Default: None
  206. # Options:
  207. # nrdp, kafkaproducer
  208. #
  209. # Example:
  210. # handlers = nrdp,kafkaproducer
  211. #
  212. handlers = None
  213.  
  214. #
  215. # User and group to run passive checks as (Recommended to use nagios:nagios)
  216. # Default: uid = nagios
  217. # Default: gid = nagios
  218. #
  219. # This is for Unix only (Linux, Mac OS X, etc)
  220. #
  221. uid = nagios
  222. gid = nagios
  223.  
  224. #
  225. # Passive check interval - the amount in seconds to wait between each passive check by default,
  226. # this can be overwritten by adding on a "|<duration>" in seconds to the passive check config
  227. # Default: 300 (5 minutes)
  228. #
  229. sleep = 300
  230.  
  231. #
  232. # Passive logging file level, location, and the PID location
  233. # Default: loglevel = info (debug, info, warning, error)
  234. # Default: logfile = var/log/ncpa_passive.log
  235. # Default: pidfile = var/run/ncpa_passive.pid (leave passive in pid file name)
  236. #
  237. loglevel = info
  238. logfile = var/log/ncpa_passive.log
  239. pidfile = var/run/ncpa_passive.pid
  240.  
  241. #
  242. # Delay passive checks from starting in seconds
  243. # Default: 0
  244. #
  245. # delay_start = 30
  246.  
  247. #
  248. # The max size allowed for a log file in megabytes.
  249. # When the log becomes larger than this, the log will be rolled over
  250. # and a new log will be started.
  251. # Default: 5
  252. #
  253. # logmaxmb =
  254.  
  255. #
  256. # The max number of log rollovers that will be kept.
  257. # Default: 5
  258. #
  259. # logbackups =
  260.  
  261. #
  262. # -------------------------------
  263. # Passive Configuration (NRDP)
  264. # -------------------------------
  265. #
  266.  
  267. [nrdp]
  268.  
  269. #
  270. # Connection settings to the NRDP server
  271. # parent = NRDP server location (ex: http://<address>/nrdp)
  272. # token = NRDP server token used to send NRDP results
  273. #
  274. parent =
  275. token =
  276.  
  277. #
  278. # The hostname that will replace %HOSTNAME% in the check definitions and will be
  279. # sent to NRDP with the check name as the service description (service name)
  280. #
  281. hostname = NCPA 2
  282.  
  283. #
  284. # Connection timeout in seconds that will be used for transmitting the
  285. # passive check results via HTTP POST requests to the NRDP server
  286. #
  287. connection_timeout = 10
  288.  
  289. #
  290. # -------------------------------
  291. # Passive Configuration (Kafka)
  292. # -------------------------------
  293. #
  294.  
  295. [kafkaproducer]
  296.  
  297. hostname = None
  298. servers = localhost:9092
  299. clientname = NCPA-Kafka
  300. topic = ncpa
  301.  
  302. #
  303. # -------------------------------
  304. # Plugin Configuration
  305. # -------------------------------
  306. #
  307.  
  308. [plugin directives]
  309.  
  310. #
  311. # Plugin path where all plugins will be ran from.
  312. #
  313. plugin_path = plugins/
  314.  
  315. #
  316. # Follow symlinks located in the plugin path
  317. #
  318. # This is for Unix only (Linux, Mac OS X, etc)
  319. #
  320. follow_symlinks = 0
  321.  
  322. #
  323. # Plugin execution timeout in seconds. Different than the check_ncpa.py timeout, which is
  324. # normally for network connection issues. Will return a CRITICAL value and error when the plugin
  325. # reaches the defined max execution timeout and kills the process.
  326. # Default: 59
  327. #
  328. # plugin_timeout = 59
  329.  
  330. #
  331. # Comma separated list of plugins to run through sudo. Note: You will need to update your sudoers
  332. # configuration for these plugins to work when called with sudo.
  333. #
  334. # Example: check_special,check_root_files
  335. # (Command line: sudo /<plugin_absolute_path>/check_special <arguments>)
  336. #
  337. # This is for Unix only (Linux, Mac OS X, etc)
  338. #
  339. # run_with_sudo =
  340.  
  341. #
  342. # Extensions for plugins
  343. # ----------------------
  344. # The extension for the plugin denotes how NCPA will try to run the plugin. Use this
  345. # for setting how you want to run the plugin in the command line.
  346. #
  347. # NOTE: Plugins without an extension will be ran in the cmdline as follows:
  348. # $plugin_name $plugin_args
  349. #
  350. # Defaults:
  351. # .sh = /bin/sh $plugin_name $plugin_args
  352. # .py = python3 $plugin_name $plugin_args
  353. # .pl = perl $plugin_name $plugin_args
  354. # .php = php $plugin_name $plugin_args
  355. # .ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
  356. # .vbs = cscript $plugin_name $plugin_args //NoLogo
  357. # .wsf = cscript $plugin_name $plugin_args //NoLogo
  358. # .bat = cmd /c $plugin_name $plugin_args
  359. #
  360. # Since windows NCPA is 32-bit, if you need to use 64-bit powershell, try the following for
  361. # the powershell plugin definition:
  362. # .ps1 = c:\windows\sysnative\windowspowershell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -File $plugin_name $plugin_args
  363. #
  364.  
  365. # Linux / Mac OS X
  366. .sh = /bin/sh $plugin_name $plugin_args
  367. .py = python3 $plugin_name $plugin_args
  368. .pl = perl $plugin_name $plugin_args
  369. .php = php $plugin_name $plugin_args
  370.  
  371. # Windows
  372. .ps1 = powershell -ExecutionPolicy Bypass -File $plugin_name $plugin_args
  373. .vbs = cscript $plugin_name $plugin_args //NoLogo
  374. .wsf = cscript $plugin_name $plugin_args //NoLogo
  375. .bat = cmd /c $plugin_name $plugin_args
  376.  
Add Comment
Please, Sign In to add comment