Return to Snippet

Revision: 36850
at November 28, 2010 15:54 by ge01f


Initial Code
package:
  name: "Red Eye Monitor"
  version: "2010.11.22.00"
  stability: unstable
  short: rem
  author: Geoff Howland
  maintainer: Geoff Howland
  contributors: []
  info: "Comprehensive cloud automation for lazy control freaks"
  website: http://redeyemon.wordpress.com/
  type: suite

launcher: launcher.py

state evaluator: rem_state_evaluator.py

paths:
  script: package/rem/package/scripts/
  base: package/rem/package/


modules:
  monitors:
    ping:
      remote: true
      script:
        - monitors/ping.py
    snmp:
      remote: true
      script:
        - monitors/snmp.py
    tcp:
      remote: true
      script:
        - monitors/tcp.py
    local:
      remote: false
      script:
        - monitors/local.py


module result processors:
  monitors: scripts/process/monitor_processor.py

module result specifications:
  monitors: data/monitor/monitor_result_processor.yaml

communication:
  static:
    path: static/html/
  
  http:
    show:
      run:
        - script: scripts/web_demo/show.py
    
    admin:
      run:
        - script: scripts/web_demo/admin.py
      
      template:
        path: static/html/simple.html
    
    __load: data/web/user_pages.yaml
  
  rpc:
    ReloadWidgets:
      run:
        - script: scripts/admin/reload_widgets.py
    
    DynamicRPC:
      run:
        - script: scripts/dynamic/dynamic_rpc.py
    
    MonitorHostList:
      run:
        - script: scripts/monitor_admin/host_list.py
    
    MonitorHostView:
      run:
        - script: scripts/monitor_admin/host_view.py
    
    MonitorGraphList:
      run:
        - script: scripts/monitor_admin/graph_list.py


state machine:
  state: initial

  context:
    initial:
      script run times: 0
      script completed times: 0
      
      script:
        platform:
          xplat:
            - script: script/rem/initial.py
    
    active:
      script run times: 0
      script completed times: 0
      
      script:
        platform:
          xplat:
            - script: script/rem/active.py
    
    shutdown:
      script run times: 0
      script completed times: 0
      
      script:
        platform:
          xplat:
            - script: script/rem/shutdown.py


requires packages: {}
  
mount packages: {}

jobs:
  monitor_storage:
    platform:
      freebsd:
        - script: scripts/monitor/queue_storage.py
          interval: 5
      xplat:
        - script: scripts/monitor/queue_storage.py
          interval: 5
  
  alert_sla_monitoring:
    platform:
      xplat:
        - script: scripts/monitor/alert_sla.py
          interval: 5
  
  alert_sla_outage_handler:
    platform:
      xplat:
        - script: scripts/monitor/alert_sla_outage.py
          interval: 30


load state:
  monitors.hosts: data/monitor/hosts.yaml
  monitors.host_groups: data/monitor/host_groups.yaml
  monitors.alerts: data/monitor/alerts.yaml
  monitors.roles: data/monitor/roles.yaml
  monitors.contacts: data/monitor/contacts.yaml
  monitors.silences: data/monitor/silences.yaml
  monitors.globals: data/monitor/globals.yaml

load counters:
  monitors.outages: data/monitor/counters/monitors.outages
  monitors.outage_groups: data/monitor/counters/monitors.outage_groups
  monitors.notifications: data/monitor/counters/monitors.notifications

Initial URL

                                

Initial Description
YAML, not Python.  This version is stripped of comments and lots of repetition.

Initial Title
RAM Package example (stripped)

Initial Tags

                                

Initial Language
Python