Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Convert to numeric value & Finding reports in Orion SDK

$
0
0

I am trying to sum values from a report that is using custom pollers. The pollers gives me two columns (see below). The Current Value column I can easily find in our database. However, it is a string and I cannot use the SUM function. Based on my Googling, SWQL does not have a way to convert the string to an integer? Does anyone know how to find the Current Numeric Value in a database? The report says something about it being located at "Custom Poller Current Status/Current Numeric Value" but I cannot find that location for the life of me. If anyone knows a work around, where the Current Numeric Value column is located, or maybe a report feature I am forgetting, please let me know!

 

My query:

SELECT p.CustomPoller.MIB, p.CurrentValue , p.Node.Caption

FROM Orion.NPM.CustomPollerAssignmentOnNode as p

WHERE p.CustomPoller.MIB Like '%myMIB%' AND p.CurrentValue IS NOT NULL

 

Report results:

 

Thanks!


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>