Browse Source

Merge pull request #99 from erickcantwell/MMO-132

[MMO-132] Check the length of the dict, instead of if it's defined (it
fix/change_group_user_order_preven_2x_run
Filip Pytloun 7 years ago
parent
commit
2d5b9509c4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/meta/sensu.yml

+ 1
- 1
linux/meta/sensu.yml View File

occurrences: 1 occurrences: 1
subscribers: subscribers:
- local-linux-system - local-linux-system
{%- if storage.swap is defined %}
{%- if storage.swap|length > 0 %}
local_linux_storage_swap_usage_{{ system.name|replace('.', '-') }}-{{ system.domain|replace('.', '-') }}: local_linux_storage_swap_usage_{{ system.name|replace('.', '-') }}-{{ system.domain|replace('.', '-') }}:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_swap -a -w {{ monitoring.swap.warn }} -c {{ monitoring.swap.crit }}" command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_swap -a -w {{ monitoring.swap.warn }} -c {{ monitoring.swap.crit }}"
interval: 60 interval: 60

Loading…
Cancel
Save