Saltstack Official Linux Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

63 lines
1.7KB

  1. {%- from "linux/map.jinja" import monitoring with context %}
  2. local_plugin:
  3. linux_network_netlink:
  4. plugin: netlink
  5. template: linux/files/collectd_netlink.conf
  6. ignore_selected: {{ monitoring.netlink.ignore_selected }}
  7. {%- if monitoring.netlink.interfaces is list and monitoring.netlink.interfaces|length > 0 %}
  8. {%- set interfaces = monitoring.netlink.interfaces %}
  9. {%- else %}
  10. {%- set interfaces = salt['linux_netlink.ls'](monitoring.netlink.interface_regex) %}
  11. {%- endif %}
  12. {%- if interfaces %}
  13. interfaces:
  14. {%- for interface_name in interfaces|sort %}
  15. - {{ interface_name }}
  16. {%- endfor %}
  17. {%- endif %}
  18. linux_system_cpu:
  19. plugin: cpu
  20. linux_system_entropy:
  21. plugin: entropy
  22. linux_system_load:
  23. plugin: load
  24. linux_system_contextswitch:
  25. plugin: contextswitch
  26. linux_system_memory:
  27. plugin: memory
  28. linux_system_uptime:
  29. plugin: uptime
  30. linux_system_users:
  31. plugin: users
  32. linux_storage_df:
  33. plugin: df
  34. template: linux/files/collectd_df.conf
  35. ignore_selected: True
  36. fs_types:
  37. - rootfs
  38. - sysfs
  39. - proc
  40. - devtmpfs
  41. - devpts
  42. - tmpfs
  43. - fusectl
  44. - cgroup
  45. - overlay
  46. linux_storage_disk:
  47. plugin: disk
  48. template: linux/files/collectd_disk.conf
  49. ignore_selected: True
  50. linux_storage_swap:
  51. plugin: swap
  52. template: linux/files/collectd_swap.conf
  53. report_bytes: True
  54. {%- if monitoring.bond_status.interfaces is defined and monitoring.bond_status.interfaces is list %}
  55. linux_bond_status:
  56. plugin: python
  57. template: linux/files/collectd_bond_status.conf
  58. interfaces:
  59. {%- for interface in monitoring.bond_status.interfaces %}
  60. - {{ interface }}
  61. {%- endfor %}
  62. {%- endif %}