Forum Discussion

Jeff_Kinny's avatar
Jeff_Kinny
Icon for Contributor III rankContributor III
31 days ago

SNMP Performance OID parsing

We recently onboarded some Ubiquiti switches which ScienceLogic does not have a default pack for. I discovered that the "EdgeSwitch" mibs have relevant OIDs for performance metrics for these devices. One OID that we're interested in is "CPU Process Percent Utilization" (1.3.6.1.4.1.4413.1.1.1.1.4.8.1.3). The out of the box SNMP Performance Dynamic App Presentation is not able to parse the output of this OID, here's a sample:

agentSwitchCpuProcessPercentageUtilization  u'5 Sec (  0.00%)    60 Sec (  0.08%)   300 Sec (  0.04%)'

Is there any way to easily get this to display in an SNMP Performance DA chart, or do I have to use a Snippet DA and custom code to parse this output into an integer for display? Ideally I'd be able to use the 300 second average as this DA runs on a 5 minute polling cycle.