Saltstack Official Linux Formula
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

41 lines
1.5KB

  1. {%- from "linux/map.jinja" import system,network,storage with context -%}
  2. check:
  3. local_linux_system_zombie_procs:
  4. command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -w 3 -c 7 -s Z"
  5. interval: 60
  6. occurrences: 3
  7. subscribers:
  8. - local-linux-system
  9. local_linux_system_total_procs:
  10. command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -w 5000 -c 10000"
  11. interval: 60
  12. occurrences: 5
  13. subscribers:
  14. - local-linux-system
  15. local_linux_system_load:
  16. command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_load -r -w 6,4,2 -c 12,8,4"
  17. interval: 60
  18. occurrences: 1
  19. subscribers:
  20. - local-linux-system
  21. {%- if storage.swap is defined %}
  22. local_linux_storage_swap_usage_{{ system.name|replace('.', '-') }}-{{ system.domain|replace('.', '-') }}:
  23. command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_swap -a -w 50% -c 20%"
  24. interval: 60
  25. occurrences: 1
  26. subscribers:
  27. - {{ system.name|replace('.', '-') }}-{{ system.domain|replace('.', '-') }}
  28. {%- endif %}
  29. local_linux_storage_disk_usage:
  30. command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_disk -w 15% -c 5% -p / -p /var -p /usr -p /tmp -p /var/log"
  31. interval: 60
  32. occurrences: 1
  33. subscribers:
  34. - local-linux-storage
  35. local_linux_network_fqdn:
  36. command: "PATH=$PATH:/etc/sensu/plugins check_fqdn.py -n :::hostname::: -f :::fqdn:::"
  37. interval: 60
  38. occurrences: 1
  39. subscribers:
  40. - local-linux-network