Guest User

config example

a guest
Apr 27th, 2015
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.91 KB | None | 0 0
  1. system:
  2.   snmp:
  3.     version: 3
  4.     sequrityName: beast
  5.     privType: AES
  6.     privAuth: AuthPriv
  7.     authType: SHA
  8.     authPass: helloallhello
  9.     privPass: helloallhello
  10.   database:
  11.     user: user
  12.     password: pass
  13.     database: db
  14.     host: localhost
  15.     port: 8086
  16.  
  17. hosts:
  18.  - salt
  19.   - yandex.ru
  20.  
  21. groups:
  22.   - name: salt
  23.     hosts:
  24.      - salt
  25.     triggers:
  26.      - disk
  27.     checks:
  28.      - disk
  29.   - name: external
  30.     hosts:
  31.      - yandex.ru
  32.     triggers:
  33.      - yandex
  34.       - rambler
  35.  
  36.  
  37.  
  38. checks:
  39.   - name: network
  40.     period: '* * * * *'
  41.     snmp:
  42.       version: 3
  43.       sequrityName: othername
  44.       privType: AES
  45.       privAuth: AuthPriv
  46.       authType: SHA
  47.       authPass: hello
  48.       privPass: helloall
  49.     type: network.interface
  50.  
  51.   - name: disk
  52.     period: '* * * * *'
  53.     type: system.disk
  54.  
  55.   - name: ya
  56.     period: '* * * * *'
  57.     type: http.simple
  58.     url: http://yandex.ru
  59.     redirects: 3
  60.  
  61.   - name: rambler
  62.     period: '* * * * *'
  63.     type: http.simple
  64.     url: http://rambler.ru
  65.     redirects: 3
  66.  
  67.  
  68. triggers:
  69.   - name: disk
  70.     checks:
  71.      - disk
  72.     description: dist size here
  73.     result: root:system.disk.free > 35GB && root:system.disk.used > 10GB && swap:system.disk.used > 1GB
  74.  
  75.   - name: networkt
  76.     checks:
  77.      - network
  78.       - disk
  79.     description: тупо проверка имени
  80.     result: eth0:network.interface.name = "eth0" || lo:network.interface.name = "lo" || root:system.disk.free > 35GB
  81.  
  82.   - name: other
  83.     checks:
  84.      - network
  85.     description: last here
  86.     result: last(br0:network.interface.name,2) = "eth0"
  87.  
  88.   - name: yandex
  89.     checks:
  90.       - ya
  91.       - rambler
  92.     description: yandex status
  93.     result: ya:http.simple.status = 200 && rambler:http.simple.status = 200
  94.  
  95.   - name: rambler
  96.     checks:
  97.      - rambler
  98.     description: rambler status
  99.     result: rambler:http.simple.status = 300
Advertisement
Add Comment
Please, Sign In to add comment