metadata.yaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. plugin_name: python.d.plugin
  2. modules:
  3. - meta:
  4. plugin_name: python.d.plugin
  5. module_name: hpssa
  6. monitored_instance:
  7. name: HP Smart Storage Arrays
  8. link: 'https://buy.hpe.com/us/en/software/server-management-software/server-management-software/smart-array-management-software/hpe-smart-storage-administrator/p/5409020'
  9. categories:
  10. - data-collection.storage-mount-points-and-filesystems
  11. icon_filename: 'hp.svg'
  12. related_resources:
  13. integrations:
  14. list: []
  15. info_provided_to_referring_integrations:
  16. description: ''
  17. keywords:
  18. - storage
  19. - hp
  20. - hpssa
  21. - array
  22. most_popular: false
  23. overview:
  24. data_collection:
  25. metrics_description: 'This collector monitors HP Smart Storage Arrays metrics about operational statuses and temperatures.'
  26. method_description: 'It uses the command line tool `ssacli`. The exact command used is `sudo -n ssacli ctrl all show config detail`'
  27. supported_platforms:
  28. include: []
  29. exclude: []
  30. multi_instance: false
  31. additional_permissions:
  32. description: ''
  33. default_behavior:
  34. auto_detection:
  35. description: 'If no configuration is provided, the collector will try to execute the `ssacli` binary.'
  36. limits:
  37. description: ''
  38. performance_impact:
  39. description: ''
  40. setup:
  41. prerequisites:
  42. list:
  43. - title: 'Enable the hpssa collector'
  44. description: |
  45. The `hpssa` collector is disabled by default. To enable it, use `edit-config` from the Netdata [config directory](https://github.com/netdata/netdata/blob/master/docs/configure/nodes.md), which is typically at `/etc/netdata`, to edit the `python.d.conf` file.
  46. ```bash
  47. cd /etc/netdata # Replace this path with your Netdata config directory, if different
  48. sudo ./edit-config python.d.conf
  49. ```
  50. Change the value of the `hpssa` setting to `yes`. Save the file and restart the Netdata Agent with `sudo systemctl restart netdata`, or the [appropriate method](https://github.com/netdata/netdata/blob/master/docs/configure/start-stop-restart.md) for your system.
  51. - title: 'Allow user netdata to execute `ssacli` as root.'
  52. description: |
  53. This module uses `ssacli`, which can only be executed by root. It uses `sudo` and assumes that it is configured such that the `netdata` user can execute `ssacli` as root without a password.
  54. - Add to your `/etc/sudoers` file:
  55. `which ssacli` shows the full path to the binary.
  56. ```bash
  57. netdata ALL=(root) NOPASSWD: /path/to/ssacli
  58. ```
  59. - Reset Netdata's systemd
  60. unit [CapabilityBoundingSet](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#Capabilities) (Linux
  61. distributions with systemd)
  62. 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 `ssacli` using `sudo`.
  63. As the `root` user, do the following:
  64. ```cmd
  65. mkdir /etc/systemd/system/netdata.service.d
  66. echo -e '[Service]\nCapabilityBoundingSet=~' | tee /etc/systemd/system/netdata.service.d/unset-capability-bounding-set.conf
  67. systemctl daemon-reload
  68. systemctl restart netdata.service
  69. ```
  70. configuration:
  71. file:
  72. name: python.d/hpssa.conf
  73. options:
  74. description: |
  75. There are 2 sections:
  76. * Global variables
  77. * One or more JOBS that can define multiple different instances to monitor.
  78. 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.
  79. Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
  80. Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
  81. folding:
  82. title: "Config options"
  83. enabled: true
  84. list:
  85. - name: update_every
  86. description: Sets the default data collection frequency.
  87. default_value: 5
  88. required: false
  89. - name: priority
  90. description: Controls the order of charts at the netdata dashboard.
  91. default_value: 60000
  92. required: false
  93. - name: autodetection_retry
  94. description: Sets the job re-check interval in seconds.
  95. default_value: 0
  96. required: false
  97. - name: penalty
  98. description: Indicates whether to apply penalty to update_every in case of failures.
  99. default_value: yes
  100. required: false
  101. - name: name
  102. description: Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works.
  103. default_value: ''
  104. required: false
  105. - name: ssacli_path
  106. description: Path to the `ssacli` command line utility. Configure this if `ssacli` is not in the $PATH
  107. default_value: ''
  108. required: false
  109. - name: use_sudo
  110. description: Whether or not to use `sudo` to execute `ssacli`
  111. default_value: 'True'
  112. required: false
  113. examples:
  114. folding:
  115. enabled: false
  116. title: "Config"
  117. list:
  118. - name: Local simple config
  119. description: A basic configuration, specyfing the path to `ssacli`
  120. folding:
  121. enabled: false
  122. config: |
  123. local:
  124. ssacli_path: /usr/sbin/ssacli
  125. troubleshooting:
  126. problems:
  127. list: []
  128. alerts: []
  129. metrics:
  130. folding:
  131. title: Metrics
  132. enabled: false
  133. description: ""
  134. availability: []
  135. scopes:
  136. - name: global
  137. description: "These metrics refer to the entire monitored application."
  138. labels: []
  139. metrics:
  140. - name: hpssa.ctrl_status
  141. description: Status 1 is OK, Status 0 is not OK
  142. unit: "Status"
  143. chart_type: line
  144. dimensions:
  145. - name: ctrl_{adapter slot}_status
  146. - name: cache_{adapter slot}_status
  147. - name: battery_{adapter slot}_status per adapter
  148. - name: hpssa.ctrl_temperature
  149. description: Temperature
  150. unit: "Celsius"
  151. chart_type: line
  152. dimensions:
  153. - name: ctrl_{adapter slot}_temperature
  154. - name: cache_{adapter slot}_temperature per adapter
  155. - name: hpssa.ld_status
  156. description: Status 1 is OK, Status 0 is not OK
  157. unit: "Status"
  158. chart_type: line
  159. dimensions:
  160. - name: a dimension per logical drive
  161. - name: hpssa.pd_status
  162. description: Status 1 is OK, Status 0 is not OK
  163. unit: "Status"
  164. chart_type: line
  165. dimensions:
  166. - name: a dimension per physical drive
  167. - name: hpssa.pd_temperature
  168. description: Temperature
  169. unit: "Celsius"
  170. chart_type: line
  171. dimensions:
  172. - name: a dimension per physical drive