Re: Ignore snmptrap linkup and link down for some nodes

Zhi-Wei Lu <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <MWHPR08MB2831E175BAAE93AC7E271857CB6C0@MWHPR08MB2831.namprd08.prod.outlook.com>
I think that I found the problem.
<mevalue> can not contain expression like [1234678], I will have to spell out every one of them separately.

Zhi-Wei Lu
IET-CR-Network Operations Center
University of California, Davis
(530) 752-0155

From: Zhi-Wei Lu <[email protected]>
Sent: Tuesday, May 29, 2018 3:39 PM
To: [email protected]
Subject: [opennms-discuss] Ignore snmptrap linkup and link down for some nodes

Hi,

I have recently installed opennms 21.0 and I was able to ignore LinkUp and LinkDown traps after searching this forum.
However, after I upgraded opennms from 21.0 to 22.0. Now, I can now suppress it anymore.
Here are the code that I use:

  <!-- Drop the linkDown and linkUp traps for IDF devices -->
  <event>
    <mask>
      <maskelement>
        <mename>generic</mename>
        <mevalue>2</mevalue>
        <mevalue>3</mevalue>
      </maskelement>
      <maskelement>
        <mename>host</mename>
        <mevalue>10.[1234678].%</mevalue>
        <mevalue>10.1[1234].%</mevalue>
        <mevalue>10.42.%</mevalue>
        <mevalue>10.51.%</mevalue>
      </maskelement>
    </mask>
    <uei>noc.ucdavis.edu/generic/traps/SNMP_Link_State/discarded</uei>
    <event-label>Discard link state traps for IDF switches</event-label>
    <descr>Discard link state traps for IDF switches.</descr>
    <logmsg dest="suppress"></logmsg>
    <severity>Normal</severity>
  </event>

I put my modified code in front of the
<event-file>events/opennms.snmp.trap.translator.events.xml</event-file>
In the evetconf.xml file, which normally processes the linkup/down traps.

I would like to hear some tips at debugging such problems.  Thank you.

Zhi-Wei Lu
IET-CR-Network Operations Center
University of California, Davis
(530) 752-0155

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.