metadata.yaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. plugin_name: charts.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: charts.d.plugin
  5. module_name: libreswan
  6. monitored_instance:
  7. name: Libreswan
  8. link: "https://libreswan.org/"
  9. categories:
  10. - data-collection.vpns
  11. icon_filename: "libreswan.png"
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - vpn
  19. - libreswan
  20. - network
  21. - ipsec
  22. most_popular: false
  23. overview:
  24. data_collection:
  25. metrics_description: "Monitor Libreswan performance for optimal IPsec VPN operations. Improve your VPN operations with Netdata''s real-time metrics and built-in alerts."
  26. method_description: "The collector uses the `ipsec` command to collect the information it needs."
  27. supported_platforms:
  28. include: []
  29. exclude: []
  30. multi_instance: true
  31. additional_permissions:
  32. description: ""
  33. default_behavior:
  34. auto_detection:
  35. description: ""
  36. limits:
  37. description: ""
  38. performance_impact:
  39. description: ""
  40. setup:
  41. prerequisites:
  42. list:
  43. - title: "Install charts.d plugin"
  44. description: |
  45. If [using our official native DEB/RPM packages](https://github.com/netdata/netdata/blob/master/packaging/installer/UPDATE.md#determine-which-installation-method-you-used), make sure `netdata-plugin-chartsd` is installed.
  46. - title: "Permissions to execute `ipsec`"
  47. description: |
  48. The plugin executes 2 commands to collect all the information it needs:
  49. ```sh
  50. ipsec whack --status
  51. ipsec whack --trafficstatus
  52. ```
  53. The first command is used to extract the currently established tunnels, their IDs and their names.
  54. The second command is used to extract the current uptime and traffic.
  55. Most probably user `netdata` will not be able to query libreswan, so the `ipsec` commands will be denied.
  56. The plugin attempts to run `ipsec` as `sudo ipsec ...`, to get access to libreswan statistics.
  57. To allow user `netdata` execute `sudo ipsec ...`, create the file `/etc/sudoers.d/netdata` with this content:
  58. ```
  59. netdata ALL = (root) NOPASSWD: /sbin/ipsec whack --status
  60. netdata ALL = (root) NOPASSWD: /sbin/ipsec whack --trafficstatus
  61. ```
  62. Make sure the path `/sbin/ipsec` matches your setup (execute `which ipsec` to find the right path).
  63. configuration:
  64. file:
  65. name: charts.d/libreswan.conf
  66. options:
  67. description: |
  68. The config file is sourced by the charts.d plugin. It's a standard bash file.
  69. The following collapsed table contains all the options that can be configured for the libreswan collector.
  70. folding:
  71. title: "Config options"
  72. enabled: true
  73. list:
  74. - name: libreswan_update_every
  75. description: The data collection frequency. If unset, will inherit the netdata update frequency.
  76. default_value: 1
  77. required: false
  78. - name: libreswan_priority
  79. description: The charts priority on the dashboard
  80. default_value: 90000
  81. required: false
  82. - name: libreswan_retries
  83. description: The number of retries to do in case of failure before disabling the collector.
  84. default_value: 10
  85. required: false
  86. - name: libreswan_sudo
  87. description: Whether to run `ipsec` with `sudo` or not.
  88. default_value: 1
  89. required: false
  90. examples:
  91. folding:
  92. enabled: false
  93. title: "Config"
  94. list:
  95. - name: Run `ipsec` without sudo
  96. description: Run the `ipsec` utility without sudo
  97. config: |
  98. # the data collection frequency
  99. # if unset, will inherit the netdata update frequency
  100. #libreswan_update_every=1
  101. # the charts priority on the dashboard
  102. #libreswan_priority=90000
  103. # the number of retries to do in case of failure
  104. # before disabling the module
  105. #libreswan_retries=10
  106. # set to 1, to run ipsec with sudo (the default)
  107. # set to 0, to run ipsec without sudo
  108. libreswan_sudo=0
  109. troubleshooting:
  110. problems:
  111. list: []
  112. alerts: []
  113. metrics:
  114. folding:
  115. title: Metrics
  116. enabled: false
  117. description: ""
  118. availability: []
  119. scopes:
  120. - name: IPSEC tunnel
  121. description: "Metrics related to IPSEC tunnels. Each tunnel provides its own set of the following metrics."
  122. labels: []
  123. metrics:
  124. - name: libreswan.net
  125. description: LibreSWAN Tunnel ${name} Traffic
  126. unit: "kilobits/s"
  127. chart_type: area
  128. dimensions:
  129. - name: in
  130. - name: out
  131. - name: libreswan.uptime
  132. description: LibreSWAN Tunnel ${name} Uptime
  133. unit: "seconds"
  134. chart_type: line
  135. dimensions:
  136. - name: uptime