[hobbit] Devmon MATH
    Ralph Mitchell 
    ralphmitchell at gmail.com
       
    Mon Sep 24 20:59:47 CEST 2007
    
    
  
On 9/24/07, Charles Jones <jonescr at cisco.com> 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
    
    
More information about the Xymon
mailing list