SHARE
TWEET

Untitled

a guest Oct 4th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   1 # This configuration file is used by salt-monitor and is "overlaid" on the
  2.   2 # configuration in /etc/salt/minion.
  3.   3
  4.   4 ######         Logging settings       #####
  5.   5 ###########################################
  6.   6 # The location of the monitor log file
  7.   7 #log_file: /var/log/salt/monitor
  8.   8 # The level of messages to send to the log file.
  9.   9 # One of 'info', 'quiet', 'critical', 'error', 'debug', 'warning'.
  10.  10 # Default: 'warning'
  11.  11 #log_level: warning
  12.  12 #
  13.  13 # Logger levels can be used to tweak specific loggers logging levels.
  14.  14 # Imagine you want to have the salt library at the 'warning' level, but, you
  15.  15 # still wish to have 'salt.modules' at the 'debug' level:
  16.  16 #   log_granular_levels: {
  17.  17 #     'salt': 'warning',
  18.  18 #     'salt.modules': 'debug'
  19.  19 #   }
  20.  20 #
  21.  21 #log_granular_levels: {}
  22.  22
  23.  23
  24.  24 ######     Monitor configuration      #####
  25.  25 ###########################################
  26.  26 # When the 'monitor' value is set salt will run the commands at the specified
  27.  27 # interval or at the default interval.
  28.  28
  29.  29 #monitor.default_interval:
  30.  30 #  hour: 0
  31.  31 #  minute: 0
  32.  32 #  second: 10
  33.  33
  34.  34 # Where monitor output should be collected.  If you don't set this value
  35.  35 # monitor data is silently discarded.
  36.  36 monitor.collector: mongo
  37.  37
  38.  38 # You can override the mongo/redis/etc returner parameters here.
  39.  39 mongo.host:
  40.  40   - mongorep-monitor-01_prod.la.bo
  41.  41   - mongorep-monitor-02_prod.la.bo
  42.  42   - mongorep-monitor-03_prod.la.bo
  43.  43 #mongo.port: 27017
  44.  44 #mongo.user: myuser
  45.  45 #mongo.password: mypassword
  46.  46
  47.  47 # The monitor command(s) to run.
  48.  48 monitor:
  49.  49 #  - id: low-disk
  50.  50 #    run: status.diskusage / /var
  51.  51 #    every:
  52.  52 #      minute: 0
  53.  53 #      second: 10
  54.  54 #    foreach mntpt, usage:
  55.  55 #      - if ${usage.available} * 100 / ${usage.total} < 10:
  56.  56 #        - 'alert.warning disk.full "free disk space running low on $mntpt: ${usage.available/2.0**30:0.1f} GB free"'
  57.  57 #
  58.  58   - id: high-load
  59.  59     run: status.loadavg
  60.  60     every:
  61.  61       minute: 0
  62.  62       second: 30
  63.  63     foreach interval, loadavg:
  64.  64       - if interval == '5-min' and loadavg > 20:
  65.  65         - alert.warning loadavg '5 minute load average is $loadavg'
  66.  66       - elif interval == '5-min' and loadavg > 10:
  67.  67         - alert.notice loadavg '5 minute load average is $loadavg'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top