From: xbgmsharp <xbg...@gm...> - 2008-01-14 13:46:17
|
I agree with the option 2. 2)Ignore rows from a repeater table where one of the repeaters is undefined: But you should write a message warning in the log file. Regards, Francois. Buchan Milne <bg...@st...> a =E9crit : > Our 7613s have ATM interfaces, but the ATM interfaces seem to generate a f= ew > entries in the if_* tables, e.g.: > > > Ifc name Ifc Speed Rate in (load %) Rate out (load %) > AT2/0/0 [---Link to XXX---] 10.24 Mbps &green 242.14 Kbps (2.36%)green > 81.06 Kbps (0.79%) > AT2/0/0 0.00 bps &clear Undefined (Undefined%) &clear Undefined > (Undefined%) > AT2/0/0 [---Link to XXX---] 10.24 Mbps &clear Undefined =20 > (Undefined%)clear > Undefined (Undefined%) > AT2/0/0 0.00 bps &green 208.80 Kbps (0.00%)green 58.26 Kbps (0.00%) > AT2/0/0 [---Link to XXX---] 10.24 Mbps &green 0.00 bps (0.00%)green > 0.00 bps (0.00%) > AT2/0/0.100 10.24 Mbps &clear Undefined (Undefined%) &clear Undefined > (Undefined%) > AT2/0/0.100 10.24 Mbps &green 212.23 Kbps (2.07%) &green 58.26 Kbps > (0.57%) > > Resulting in the page being clear (all other interfaces are green). > > > > The RRD lines looked like this: > > AT2_0_0 4213081072:2657713504 > AT2_0_0 U:U > AT2_0_0 U:U > AT2_0_0 1860389811:3500381518 > AT2_0_0 0:0 > AT2_0_0.100 U:U > AT2_0_0.100 1860389811:3500381518 > > > The options in fixing this seem to be: > 1)Extend the exceptions feature to address non-primary aliases =20 > (since both the > valid and invalid entries have the same primary alias), so we can except > on "Undefined" or "0.00 bps" on a per-template-test basis > 2)Ignore rows from a repeater table where one of the repeaters is undefine= d: > > I've done (2) on the devmon instance in question: > > Index: modules/dm_tests.pm > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- modules/dm_tests.pm (revision 30) > +++ modules/dm_tests.pm (working copy) > @@ -1799,8 +1799,9 @@ > # Get our oid vars > my $val =3D $oid_h->{'val'}{$leaf}; > my $color =3D $oid_h->{'color'}{$leaf}; > - $val =3D 'Undefined' if !defined $val; > - $color =3D 'clear' if !defined $color; > + #$val =3D 'Undefined' if !defined $val; > + #$color =3D 'clear' if !defined $color; > + next T_LEAF if !defined $val; > > # Check the exception types, if it is an 'ignore' > # dont include this leaf row if the data for this > > > and now I get: > > AT2/0/0 [---Link to XXX---] 10.24 Mbps &green 190.25 Kbps (1.86%) &gree= n > 52.06 Kbps (0.51%) > AT2/0/0 0.00 bps &green 8.13 Kbps (0.00%) &green 39.47 Kbps (0.00%) > AT2/0/0 [---Link to XXX---] 10.24 Mbps &green 0.00 bps (0.00%) &green > 0.00 bps (0.00%) > > The RRD lines still look the same: > > AT2_0_0 1766267040:3175078912 > AT2_0_0 U:U > AT2_0_0 U:U > AT2_0_0 3440140912:3883766474 > AT2_0_0 0:0 > AT2_0_0.100 U:U > AT2_0_0.100 3440140912:3883766474 > > So, I get a few graphs I don't need, however the page is green now. > > So, should rows with undefined non-primary aliases be ignored by default? = Or, > should it be possible to add them as exceptions per-template-test? > > Regards, > Buchan > --=20 Thanks for using xbgm# / Devmon / BBwin. http://xbgm.sourceforge.net/ http://devmon.sourceforge.net/ http://bbwin.sourceforge.net/ Please feedback. |