From 2ef65f6a8294cccb2009acc80568c247b28029cf Mon Sep 17 00:00:00 2001
From: Tristan Cavelier <tristan.cavelier@tiolive.com>
Date: Thu, 8 Oct 2015 14:48:06 +0000
Subject: [PATCH] monitor2: update README

---
 stack/monitor2/README.md | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/stack/monitor2/README.md b/stack/monitor2/README.md
index 2044a626b..5cbc25459 100644
--- a/stack/monitor2/README.md
+++ b/stack/monitor2/README.md
@@ -104,7 +104,7 @@ service.cfg:
 
     [service]
     {% for key, value in parameter_dict.items() -%}
-    {{ key }} = {{ dumps(value) }}
+    {{ key }} = {{ value.strip().replace("\n", "\n  ") }}
     {% endfor -%}
 
 
@@ -139,6 +139,7 @@ Tree for monitor runtime:
     srv/monitor/web/monitor.haljson  // generated by monitor.py
     srv/monitor/public/....          // generated by monitor.py
     srv/monitor/private/....         // generated by monitor.py
+    srv/monitor/cgi-bin/....         // generated by monitor.py
 
 Example for KVM log parsing promise
 
@@ -151,6 +152,7 @@ Example for KVM log parsing promise
     srv/monitor/public/kvm-log-parse/kvm.log -> var/log/kvm.log                                              // generated by monitor.py
     srv/monitor/public/kvm-log-parse/kvm-log-parse-last-report.csv -> var/log/kvm-log-parse-last-report.csv  // genareted by monitor.py
     srv/monitor/private/kvm-log-parse/interface -> var/kvm-log-parser-promise/interface                      // generated by monitor.py
+    srv/monitor/cgi-bin/kvm-log-parse/action.cgi -> var/kvm-log-parser-promise/action.cgi                    // generated by monitor.py
 
 
 Monitor promise config example
@@ -162,8 +164,13 @@ Example for KVM log parsing promise
     [service]
     title =             Kvm log parse
     frequency =         <Cron Syntax>
-    public-path-list =  $instance/var/log/kvm.log  # automatically symlink to srv/monitor/public/$service/
-    private-path-list = $instance/var/log          # automatically symlink to srv/monitor/private/$service/
+    cgi-path-list =                                   # automatically symlink to srv/monitor/cgi-bin/$service/
+      $instance/var/kvm-log-parser-promise/action.cgi
+    public-path-list =                                # automatically symlink to srv/monitor/public/$service/
+      $instance/var/log/kvm.log
+    private-path-list =                               # automatically symlink to srv/monitor/private/$service/
+      $instance/var/log
+      $instance/var/kvm-log-parser-promise/interface
 
 On cron, the command will be something like:
 
-- 
2.30.9