|
From: Buchan M. <bg...@st...> - 2011-10-31 13:12:21
|
On Wednesday, 19 October 2011 22:30:39 Contreras, Mario wrote:
> Hi
>
>
>
> Last night I apply revision 228 but when running devmon with -readbbhosts
> option it started to complain about MATH function:
>
>
>
> "MATH transform uses only math/numeric symbols and an optional precision
> number at /opt/devmon-0.3.1-beta1/templates/cisco-2800/if_dsc/transforms,
> line 6"
>
>
>
> That line is as follows:
>
> ifOutBps : MATH : {ifOutOps} x 8
>
>
>
> (There is a space at both sides of x)
>
>
>
> After checking the issue more in detail the problem seem to appear because
> two changes in line 547 of dm_templates.pm: deletion of "|\s" and
> addition of "|\sx\s"
I think you mean this change:
http://devmon.svn.sourceforge.net/viewvc/devmon/trunk/modules/dm_templates.pm?r1=208&r2=219
and the associated portion in dm_tests.pm:
http://devmon.svn.sourceforge.net/viewvc/devmon/trunk/modules/dm_tests.pm?r1=192&r2=195&view=patch
Which was replacement of '|x' with '|\sx\s'
This change was specifically to fix a bug affecting the use of the letter x in
OID names used in MATH operators (where e.g. {index} would not work as the x
would be recognised as a mathematical operator).
The next change to that file allowed the use of '*' as a multiplication
operator as well.
> I´m running devmon over a sparc solaris 10 box.
>
>
>
> Any ideas why is happening?
I don't see why this should be causing a problem.
I have a few production servers running r214 without problem (which, granted,
doesn't have the dm_templates.pm part), and my laptop has a clean checkout of
trunk monitoring at least itself with linux-netsnmp template, with working
if_load graphs.
I really can't see how this could have broken ...
Does reverting to the '|x' version in dm_templates.pm make any difference?
Regards,
Buchan
|