RAM Package example (stripped)


/ Published in: Python
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. package:
  2. name: "Red Eye Monitor"
  3. version: "2010.11.22.00"
  4. stability: unstable
  5. short: rem
  6. author: Geoff Howland
  7. maintainer: Geoff Howland
  8. contributors: []
  9. info: "Comprehensive cloud automation for lazy control freaks"
  10. website: http://redeyemon.wordpress.com/
  11. type: suite
  12.  
  13. launcher: launcher.py
  14.  
  15. state evaluator: rem_state_evaluator.py
  16.  
  17. paths:
  18. script: package/rem/package/scripts/
  19. base: package/rem/package/
  20.  
  21.  
  22. modules:
  23. monitors:
  24. ping:
  25. remote: true
  26. script:
  27. - monitors/ping.py
  28. snmp:
  29. remote: true
  30. script:
  31. - monitors/snmp.py
  32. tcp:
  33. remote: true
  34. script:
  35. - monitors/tcp.py
  36. local:
  37. remote: false
  38. script:
  39. - monitors/local.py
  40.  
  41.  
  42. module result processors:
  43. monitors: scripts/process/monitor_processor.py
  44.  
  45. module result specifications:
  46. monitors: data/monitor/monitor_result_processor.yaml
  47.  
  48. communication:
  49. static:
  50. path: static/html/
  51.  
  52. http:
  53. show:
  54. run:
  55. - script: scripts/web_demo/show.py
  56.  
  57. admin:
  58. run:
  59. - script: scripts/web_demo/admin.py
  60.  
  61. template:
  62. path: static/html/simple.html
  63.  
  64. __load: data/web/user_pages.yaml
  65.  
  66. rpc:
  67. ReloadWidgets:
  68. run:
  69. - script: scripts/admin/reload_widgets.py
  70.  
  71. DynamicRPC:
  72. run:
  73. - script: scripts/dynamic/dynamic_rpc.py
  74.  
  75. MonitorHostList:
  76. run:
  77. - script: scripts/monitor_admin/host_list.py
  78.  
  79. MonitorHostView:
  80. run:
  81. - script: scripts/monitor_admin/host_view.py
  82.  
  83. MonitorGraphList:
  84. run:
  85. - script: scripts/monitor_admin/graph_list.py
  86.  
  87.  
  88. state machine:
  89. state: initial
  90.  
  91. context:
  92. initial:
  93. script run times: 0
  94. script completed times: 0
  95.  
  96. script:
  97. platform:
  98. xplat:
  99. - script: script/rem/initial.py
  100.  
  101. active:
  102. script run times: 0
  103. script completed times: 0
  104.  
  105. script:
  106. platform:
  107. xplat:
  108. - script: script/rem/active.py
  109.  
  110. shutdown:
  111. script run times: 0
  112. script completed times: 0
  113.  
  114. script:
  115. platform:
  116. xplat:
  117. - script: script/rem/shutdown.py
  118.  
  119.  
  120. requires packages: {}
  121.  
  122. mount packages: {}
  123.  
  124. jobs:
  125. monitor_storage:
  126. platform:
  127. freebsd:
  128. - script: scripts/monitor/queue_storage.py
  129. interval: 5
  130. xplat:
  131. - script: scripts/monitor/queue_storage.py
  132. interval: 5
  133.  
  134. alert_sla_monitoring:
  135. platform:
  136. xplat:
  137. - script: scripts/monitor/alert_sla.py
  138. interval: 5
  139.  
  140. alert_sla_outage_handler:
  141. platform:
  142. xplat:
  143. - script: scripts/monitor/alert_sla_outage.py
  144. interval: 30
  145.  
  146.  
  147. load state:
  148. monitors.hosts: data/monitor/hosts.yaml
  149. monitors.host_groups: data/monitor/host_groups.yaml
  150. monitors.alerts: data/monitor/alerts.yaml
  151. monitors.roles: data/monitor/roles.yaml
  152. monitors.contacts: data/monitor/contacts.yaml
  153. monitors.silences: data/monitor/silences.yaml
  154. monitors.globals: data/monitor/globals.yaml
  155.  
  156. load counters:
  157. monitors.outages: data/monitor/counters/monitors.outages
  158. monitors.outage_groups: data/monitor/counters/monitors.outage_groups
  159. monitors.notifications: data/monitor/counters/monitors.notifications

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.