metadata.yaml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: megacli
  6. monitored_instance:
  7. name: MegaCLI
  8. link: "https://wikitech.wikimedia.org/wiki/MegaCli"
  9. categories:
  10. - data-collection.storage-mount-points-and-filesystems
  11. icon_filename: "hard-drive.svg"
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ""
  17. keywords:
  18. - storage
  19. - raid-controller
  20. - manage-disks
  21. most_popular: false
  22. overview:
  23. data_collection:
  24. metrics_description: "Examine MegaCLI metrics with Netdata for insights into RAID controller performance. Improve your RAID controller efficiency with real-time MegaCLI metrics."
  25. method_description: |
  26. Collects adapter, physical drives and battery stats using megacli command-line tool
  27. Executed commands:
  28. - `sudo -n megacli -LDPDInfo -aAll`
  29. - `sudo -n megacli -AdpBbuCmd -a0`
  30. supported_platforms:
  31. include: []
  32. exclude: []
  33. multi_instance: false
  34. additional_permissions:
  35. description: "The module uses megacli, which can only be executed by root. It uses sudo and assumes that it is configured such that the netdata user can execute megacli as root without a password."
  36. default_behavior:
  37. auto_detection:
  38. description: "After all the permissions are satisfied, netdata should be to execute commands via the megacli command line utility"
  39. limits:
  40. description: ""
  41. performance_impact:
  42. description: ""
  43. setup:
  44. prerequisites:
  45. list:
  46. - title: Grant permissions for netdata, to run megacli as sudoer
  47. description: |
  48. The module uses megacli, which can only be executed by root. It uses sudo and assumes that it is configured such that the netdata user can execute megacli as root without a password.
  49. Add to your /etc/sudoers file:
  50. which megacli shows the full path to the binary.
  51. ```bash
  52. netdata ALL=(root) NOPASSWD: /path/to/megacli
  53. ```
  54. - title: "Reset Netdata's systemd unit CapabilityBoundingSet (Linux distributions with systemd)"
  55. description: |
  56. The default CapabilityBoundingSet doesn't allow using sudo, and is quite strict in general. Resetting is not optimal, but a next-best solution given the inability to execute arcconf using sudo.
  57. As root user, do the following:
  58. ```bash
  59. mkdir /etc/systemd/system/netdata.service.d
  60. echo -e '[Service]\nCapabilityBoundingSet=~' | tee /etc/systemd/system/netdata.service.d/unset-capability-bounding-set.conf
  61. systemctl daemon-reload
  62. systemctl restart netdata.service
  63. ```
  64. configuration:
  65. file:
  66. name: "python.d/megacli.conf"
  67. options:
  68. description: |
  69. There are 2 sections:
  70. * Global variables
  71. * One or more JOBS that can define multiple different instances to monitor.
  72. The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
  73. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  74. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  75. folding:
  76. title: "Config options"
  77. enabled: true
  78. list:
  79. - name: update_every
  80. description: Sets the default data collection frequency.
  81. default_value: 5
  82. required: false
  83. - name: priority
  84. description: Controls the order of charts at the netdata dashboard.
  85. default_value: 60000
  86. required: false
  87. - name: autodetection_retry
  88. description: Sets the job re-check interval in seconds.
  89. default_value: 0
  90. required: false
  91. - name: penalty
  92. description: Indicates whether to apply penalty to update_every in case of failures.
  93. default_value: yes
  94. required: false
  95. - name: do_battery
  96. description: default is no. Battery stats (adds additional call to megacli `megacli -AdpBbuCmd -a0`).
  97. default_value: no
  98. required: false
  99. examples:
  100. folding:
  101. enabled: true
  102. title: "Config"
  103. list:
  104. - name: Basic
  105. folding:
  106. enabled: false
  107. description: A basic example configuration per job
  108. config: |
  109. job_name:
  110. name: myname
  111. update_every: 1
  112. priority: 60000
  113. penalty: yes
  114. autodetection_retry: 0
  115. troubleshooting:
  116. problems:
  117. list: []
  118. alerts:
  119. - name: megacli_adapter_state
  120. link: https://github.com/netdata/netdata/blob/master/health/health.d/megacli.conf
  121. metric: megacli.adapter_degraded
  122. info: "adapter is in the degraded state (0: false, 1: true)"
  123. - name: megacli_pd_media_errors
  124. link: https://github.com/netdata/netdata/blob/master/health/health.d/megacli.conf
  125. metric: megacli.pd_media_error
  126. info: number of physical drive media errors
  127. - name: megacli_pd_predictive_failures
  128. link: https://github.com/netdata/netdata/blob/master/health/health.d/megacli.conf
  129. metric: megacli.pd_predictive_failure
  130. info: number of physical drive predictive failures
  131. - name: megacli_bbu_relative_charge
  132. link: https://github.com/netdata/netdata/blob/master/health/health.d/megacli.conf
  133. metric: megacli.bbu_relative_charge
  134. info: average battery backup unit (BBU) relative state of charge over the last 10 seconds
  135. - name: megacli_bbu_cycle_count
  136. link: https://github.com/netdata/netdata/blob/master/health/health.d/megacli.conf
  137. metric: megacli.bbu_cycle_count
  138. info: average battery backup unit (BBU) charge cycles count over the last 10 seconds
  139. metrics:
  140. folding:
  141. title: Metrics
  142. enabled: false
  143. description: ""
  144. availability: []
  145. scopes:
  146. - name: global
  147. description: "These metrics refer to the entire monitored application."
  148. labels: []
  149. metrics:
  150. - name: megacli.adapter_degraded
  151. description: Adapter State
  152. unit: "is degraded"
  153. chart_type: line
  154. dimensions:
  155. - name: a dimension per adapter
  156. - name: megacli.pd_media_error
  157. description: Physical Drives Media Errors
  158. unit: "errors/s"
  159. chart_type: line
  160. dimensions:
  161. - name: a dimension per physical drive
  162. - name: megacli.pd_predictive_failure
  163. description: Physical Drives Predictive Failures
  164. unit: "failures/s"
  165. chart_type: line
  166. dimensions:
  167. - name: a dimension per physical drive
  168. - name: battery
  169. description: "Metrics related to Battery Backup Units, each BBU provides its own set of the following metrics."
  170. labels: []
  171. metrics:
  172. - name: megacli.bbu_relative_charge
  173. description: Relative State of Charge
  174. unit: "percentage"
  175. chart_type: line
  176. dimensions:
  177. - name: adapter {battery id}
  178. - name: megacli.bbu_cycle_count
  179. description: Cycle Count
  180. unit: "cycle count"
  181. chart_type: line
  182. dimensions:
  183. - name: adapter {battery id}