ESC uses several
monitoring methods to monitor the VNFs. You must configure the KPI data model
for the monitoring methods.
ICMP Ping monitoring, ICMP pings assess the liveliness or reachability of a VNF.
If the VM is dead then the healing of the VM is triggered. At
every defined interval, ESC polls the metric value and sends alarms whenever
needed. The number of
polls, metric value, and other configuration are set in the KPI datamodel.
In script based monitoring, scripts are executed to assess a condition on a VM. Custom scripts are pre-installed on ESC VM. These scripts are executed at defined intervals to assess the liveliness of the VNFs, and also support special operations. The execution of these scripts are controlled by the data model, kpi, metric_occurrences and so on. The script must return 0 for success, and 1 for failure.
For example, to add custom action scripts, include the details in the dynamic mapping file and update your KPI model to reference it.
You can update the dynamic mapping script with
Update your KPI model. For example,
The rule section of the same deployment can have the following custom script.
Upon execution of the action identified by TRUE Sample_Demo_Script, the custom script defined in the property script_filename is run, and the event VM_UNDERLOADED_EMPTY_SAMPLE is triggered.