Cisco Cisco Elastic Services Controller 2.3 Guida Dello Sviluppatore

Pagina di 85
                      <gateway>10.91.90.1</gateway> 
                    </subnet> 
                  </network> 
                </networks> 
                <vm_group> 
                  <name>csr-vm</name> 
                  <bootup_time>600</bootup_time> 
     <reboot_time>300</reboot_time> 
                  <recovery_wait_time>0</recovery_wait_time> 
                  <interfaces> 
                    <interface> 
                      <nicid>0</nicid> 
                      <network>esc-net</network> 
                    </interface> 
                    <interface> 
                      <nicid>1</nicid> 
                      <network>mk-yesc-net-u</network> 
                    </interface> 
                  </interfaces> 
                  <kpi_data> 
                    <kpi> 
                      <event_name>VM_ALIVE</event_name> 
                      <metric_value>1</metric_value> 
                      <metric_cond>GT</metric_cond> 
                      <metric_type>UINT32</metric_type> 
                      <metric_collector> 
                        <type>ICMPPing</type> 
                        <nicid>0</nicid> 
                        <poll_frequency>3</poll_frequency> 
                        <polling_unit>seconds</polling_unit> 
                        <continuous_alarm>false</continuous_alarm> 
                      </metric_collector> 
                    </kpi> 
                    <kpi> 
                      <event_name>VM_OVERLOADED</event_name> 
                      <metric_value>1</metric_value> 
                      <metric_cond>GE</metric_cond> 
                      <metric_type>UINT32</metric_type> 
                      <metric_collector> 
                        <type>Memory</type> 
                        <nicid>0</nicid> 
                        <poll_frequency>3</poll_frequency> 
                        <polling_unit>seconds</polling_unit> 
                        <continuous_alarm>false</continuous_alarm> 
                      </metric_collector> 
                    </kpi> 
                    <kpi> 
                      <event_name>VM_UNDERLOADED</event_name> 
                      <metric_value>99</metric_value> 
                      <metric_cond>LE</metric_cond> 
                      <metric_type>UINT32</metric_type> 
                      <metric_collector> 
                        <type>CPU</type> 
                        <nicid>0</nicid> 
                        <poll_frequency>3</poll_frequency> 
                        <polling_unit>seconds</polling_unit> 
                        <continuous_alarm>false</continuous_alarm> 
                      </metric_collector> 
                    </kpi> 
                  </kpi_data> 
                  <rules> 
                    <admin_rules> 
                      <rule> 
                        <event_name>VM_ALIVE</event_name> 
                        <action>>ALWAYS log</action> 
                        <action>FALSE recover autohealing</action> 
                        <action>TRUE servicebooted.sh</action> 
                      </rule> 
                      <rule> 
                        <event_name>VM_OVERLOADED</event_name> 
                        <action>ALWAYS log</action>