Interface CurrentUtilization graphs contain gaps
search cancel

Interface CurrentUtilization graphs contain gaps

book

Article ID: 333085

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

  • Smarts monitored devices interface utilization graphs (such as Report Library>>EMC Smarts>>IP (AM-PM)>>device>>Category>>Containment>>Interfaces>>Traffic>>interface>>Interface Utilization % (In & Out))  contain gaps at some data points.
  • Metric name=CurrentUtilization. There were no issues collecting data at these times. No collector, smarts, network outages or missed polling cycles.

Environment

Watch4Net/M&R - 7.x
 
Smarts - 10.1.x

Cause

  • The Smarts IP domain was providing CurrentUtilization greater than 100%.
  • To prevent these high values from reaching the Watch4net | M&R database, the Smarts collector has a capping script to drop any CurrentUtilization values which are greater than 100%.
  • In <APG-INSTALL-DIR>/Collecting/Smarts-Collector/<Instance_Name>/conf/pm.xml:

    <script id="bandwidth-capping-script" in="utilPct inRate outRate speed">

                    <![CDATA[

                            if (ctx.value(utilPct) <= 100.0) {
                                    ctx.create("CurrentUtilization", ctx.value(utilPct), "%");
                            }


                            if(ctx.value(speed) != null) {

                                    if (ctx.value(inRate) != null && (ctx.value(inRate) * 8) <= ctx.value(speed)) {

                                            ctx.create("ifInOctets", ctx.value(inRate), "Octets/s");

                                    }

                                    if (ctx.value(outRate) != null && (ctx.value(outRate) * 8) <= ctx.value(speed)) {

                                            ctx.create("ifOutOctets", ctx.value(outRate), "Octets/s");

                                    }

                            }

                    ]]>

            </script>

Resolution

  • To resolve this you can add an extra condition to the bandwidth capping script in pm.xml to round any CurrentUtilization values greater than 100  from Smarts down to 100 so that there are no gaps in the resulting graphs:

    <script id="bandwidth-capping-script" in="utilPct inRate outRate speed">

                    <![CDATA[

                            if (ctx.value(utilPct) <= 100.0) {

                                    ctx.create("CurrentUtilization", ctx.value(utilPct), "%");

                            }

                              if (ctx.value(utilPct) > 100.0) {
                                    ctx.create("CurrentUtilization", 100.0, "%");
                            }


                            if(ctx.value(speed) != null) {

                                    if (ctx.value(inRate) != null && (ctx.value(inRate) * 8) <= ctx.value(speed)) {

                                            ctx.create("ifInOctets", ctx.value(inRate), "Octets/s");

                                    }

                                    if (ctx.value(outRate) != null && (ctx.value(outRate) * 8) <= ctx.value(speed)) {

                                            ctx.create("ifOutOctets", ctx.value(outRate), "Octets/s");

                                    }

                            }

                    ]]>

            </script>
  • After this change is made you will need to restart the emc-smarts collector-manager for the new setting to take effect: <APG_BASE>/bin/manage-modules.sh service restart collector-manager emc-smarts