Collecting new metrics from Smarts-Source using the Smarts-Collector
search cancel

Collecting new metrics from Smarts-Source using the Smarts-Collector

book

Article ID: 333363

calendar_today

Updated On:

Products

VMware Smart Assurance

Issue/Introduction

User like to collect new metrics from other source using the respective collector

Environment

Watch4Net/M&R - 7.x

Resolution

Following are the metrics need to be collected from smarts:
<value name="ifInDiscards ifOutDiscards" rename="ifInDiscardsPct ifOutDiscardsPct" unit="%" />
<value name="ifInErrors ifOutErrors" rename="ifInErrorsPct ifOutErrorsPct" unit="%" />
In order to do this, the following modification needs to be made in the PM.xml file for the SMARTS collector, note that the correct data class needs to be referenced in order to allow the new metrics to be collected.
<data class="NetworkAdapter_PerformanceData_MIB2"
instance-name-pattern="@PREVIOUS">
<scripted-property script-id="datagrp-tag" />
<scripted-value script-id="bandwidth-capping-script"
in="CurrentUtilization ifInOctetsRate ifOutOctetsRate MaxSpeed" />
<value name="ifInDiscardsRate ifOutDiscardsRate" rename="ifInDiscardsPkts ifOutDiscardsPkts" unit="Pkts/s" />
<value name="ifInErrorsRate ifOutErrorsRate" rename="ifInErrorsPkts ifOutErrorsPkts" unit="Pkts/s" />

<value name="ifInDiscards ifOutDiscards" rename="ifInDiscardsPct ifOutDiscardsPct" unit="%" />
<value name="ifInErrors ifOutErrors" rename="ifInErrorsPct ifOutErrorsPct" unit="%" />
 
The above modification will allow the new metrics to be collected from SMARTS and to have the new metrics/properties to be populated in Watch4net