From: Buchan M. <bg...@st...> - 2008-01-13 12:31:05
|
Our 7613s have ATM interfaces, but the ATM interfaces seem to generate a few 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 (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 (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 undefined: I've done (2) on the devmon instance in question: Index: modules/dm_tests.pm =================================================================== --- modules/dm_tests.pm (revision 30) +++ modules/dm_tests.pm (working copy) @@ -1799,8 +1799,9 @@ # Get our oid vars my $val = $oid_h->{'val'}{$leaf}; my $color = $oid_h->{'color'}{$leaf}; - $val = 'Undefined' if !defined $val; - $color = 'clear' if !defined $color; + #$val = 'Undefined' if !defined $val; + #$color = '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%) &green 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 |