On 9/24/07, Charles Jones <user-e86b4aeade4e@xymon.invalid> wrote:
Should it be "* 100" instead of "x 100" ?
PhysMemPerc : MATH : ({PhysMemUsed} / {PhysMemSize}) x 100
No, there's a translation that happens in the dm_tests.pm module:
# Convert our math symbols to their perl equivalents
$expr =~ s/x/\*/g; # Multiplication
$expr =~ s/\^/**/g; # Exponentiation
I assume that having asterisks in the string causes problems with
other devmon code prior to that point.
Anyway, it's the subract that either doesn't work, or fails to create
the PhysMemUsed variable that gets used in the subsequent calculation.
Ralph Mitchell