Absent Member.. Absent Member..
Absent Member..
550 views

Customising HI of CI

Hi,

We have OMi 10 integrated with NNMi 10 and are receving the alerts of the network devices in the Event browser.
We have created a business service which contains the business, application and infrastructure layers.
There is a requirement that, when a specific interface of a network device goes down, there should be an impact on this business service view we have created. When other interfaces of the same network device go down, there should not be an impact on this view. While exploring the options we found that we can do these changes on the  KPI and Health Indicator Customizations per CI on the view that we have created. We were trying to modify the Network Availability KPI since this KPI was getting trigerred when the interface goes down. We have also identified 2 fields which are present in the event received at OMi to filter the status according to the requirement. Can we use the API Group and Sibling Rule to acheive this requirement ? Is this the right way of doing this customisation ?

Labels (1)
0 Likes
2 Replies
Absent Member.. Absent Member..
Absent Member..

Have figured out maybe KPI and Health Indicator Customizations per CI is the way to achieve this.

Attaching a document which contains details and screenshots.

We want the Status/Availability of the Router to change only when an event from the interface(Gi1) is received. For all other interface events the status of the router should not change, the only other events for which the status changes will be the other events such as Node down/Performance issues etc. Based on this conditional status change of the router, the parent CI’s Network: CI Collection and Test: Business Service should be affected.

Below are the screenshots from Administration > Service Health > CI Status Calculation > KPI and Health Indicator Customizations per CI à Test_Sabhan . This is a test view which we have created.

0 Likes
Absent Member.. Absent Member..
Absent Member..

We are looking to modify the Network availability KPI of the router such that it depends only on a specific interface for its status.
Found an API Group and Sibling Rule example and modified it as below.
But this leads to the Network Availability KPI of the router not updating, my guess is that the childKPI.value is not matching against the value returned, but am not sure how we can check the values returned.

public void calculateKPI(CI ci, KPI kpi) {
    KPI childKPI = ci.getChildKpiByChildId(KpiType.Availability, "83a0688b709523fd69aaa1050132f56f");
    
    // Check if childKPI is not null. It is null if no child CI with this RTSM ID exists, or if this CI does not have the Availability KPI.
    if (childKPI != null) {
    
        // Check if the child KPI has a value.
        if (childKPI.valueExist) {
            if (childKPI.value == 100) {
                kpi.status = Status.CRITICAL
        }
        else {
                kpi.status = Status.OK
            }
        }
    }
}

 

Any suggestions ?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.