Pārlūkot izejas kodu

Revert "turn off check swap if needed"

This reverts commit a63f4053f3.
tags/mcp0.5
vmikes pirms 8 gadiem
vecāks
revīzija
37837f3280
2 mainītis faili ar 4 papildinājumiem un 10 dzēšanām
  1. +3
    -9
      linux/map.jinja
  2. +1
    -1
      linux/meta/sensu.yml

+ 3
- 9
linux/map.jinja Parādīt failu

{% set storage = salt['grains.filter_by']({ {% set storage = salt['grains.filter_by']({
'Arch': { 'Arch': {
'mount': {}, 'mount': {},
'swap': {
'enabled': True,
},
'swap': {},
'lvm': {}, 'lvm': {},
'multipath': { 'multipath': {
'enabled': False, 'enabled': False,
}, },
'Debian': { 'Debian': {
'mount': {}, 'mount': {},
'swap': {
'enabled': True,
},
'swap': {},
'lvm': {}, 'lvm': {},
'multipath': { 'multipath': {
'enabled': False, 'enabled': False,
}, },
'RedHat': { 'RedHat': {
'mount': {}, 'mount': {},
'swap': {
'enabled': True,
},
'swap': {},
'lvm': {}, 'lvm': {},
'multipath': { 'multipath': {
'enabled': False, 'enabled': False,

+ 1
- 1
linux/meta/sensu.yml Parādīt failu

occurrences: 1 occurrences: 1
subscribers: subscribers:
- local-linux-system - local-linux-system
{%- if storage.swap.enabled %}
{%- if storage.swap is defined %}
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 50% -c 20%" command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_swap -a -w 50% -c 20%"
interval: 60 interval: 60

Notiek ielāde…
Atcelt
Saglabāt