At 10:54 AM -0400 4/29/08, Jon Myers wrote:
I'm working on a probe for Watchguard Fireboxes, and it returns CPU
Utilization measured in 0.01%. So a value of 234 is really 2.34%.
It seems a little odd how Intermapper handles these calculations,
but in my <snmp-device-variables> section, I'm doing this:
cpu.u, 1.3.6.1.4.1.3097.6.3.4.0, INTEGER, "CPU Load"
cpu.util, ${cpu.u} / 100, CALCULATION, "CPU Load"
the number returned seems to chop off the decimal portion. Really
not much of a big deal, but I'd like to have the whole thing there.
Also, is there a way to do this calculation without having those two
lines, and using two variables? Once the calculation is made, I
don't need the first variable (cpu.u).
If you want to see decimal places, you need to use the "chartable"
syntax when you display it. You can see the syntax here (scroll down):
http://download.dartware.com/docs/DevGuide/Content/02-CustomProbes/Probe_Variables.htm
-- Christopher
--
================================================
Christopher L. Sweeney
Dartware, LLC
http://www.dartware.com/
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]