Saltstack Official Linux Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sensu.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {%- from "linux/map.jinja" import system,network,storage,monitoring 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 {{ monitoring.zombie.warn }} -c {{ monitoring.zombie.crit }} -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 {{ monitoring.procs.warn }} -c {{ monitoring.procs.crit }}"
  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 {{ monitoring.load.warn }} -c {{ monitoring.load.crit }}"
  17. interval: 60
  18. occurrences: 1
  19. subscribers:
  20. - local-linux-system
  21. {%- if storage.swap|length > 0 %}
  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 {{ monitoring.swap.warn }} -c {{ monitoring.swap.crit }}"
  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 {{ monitoring.disk.warn }} -c {{ monitoring.disk.crit }} -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