Re: SNMP traps via Minion not working

Marc Doesburg <[email protected]>
Newsgroups gmane.network.opennms.general
Message-ID <CAE_XvpZFYvDppaH7OoO9FFwhfxku9u2W-5=u5iLxNueXND_ezg@mail.gmail.com>
COOL!!! Thanks!!!

Would have been nice if that was in the manual instead of the firewalld
"crap"  :-) Would have saved me a few hours trying to get that to work :-)

Thanks again!

On Tue, Feb 13, 2018 at 5:35 PM, Dino Yancey <[email protected]>
wrote:

> Hi,
>
> I (and others) have had the exact same experience.  @mobius in
> chat.opennms.com suggested to create an
> /opt/minion/etc/org.opennms.netmgt.trapd.cfg containing:
>
> trapd.listen.port = 162
> trapd.listen.interface = 0.0.0.0
>
>
> ...and then restarting the minion, to instead bind it directly to 162
> and bypassing all the firewalld / iptables BS.
>
> It worked for me.
>
> Dino
>
> On Tue, Feb 13, 2018 at 4:31 AM, Marc Doesburg <[email protected]>
> wrote:
> > Hello All,
> >
> >
> >
> > I'm having trouble setting up SNMP traps using Minion.
> >
> >
> >
> > The Minion is setup and OpenNMS can query SNMP and is able to get the
> SNMP
> > information out of the systems that are monitored.
> >
> >
> >
> > The problem is that the Minion doesn't seem to get the SNMP traps on
> > 127.0.0.1:1162. When I tcpdump the ens160 interface (Centos7) I can see
> the
> > traps coming in on port 162. But when I do a tcpdump of the lo interface
> I
> > do not see any data coming in on port 1162.
> >
> >
> >
> > The Minion (Java) is listening on port 1162 and firewalld rules are
> setup:
> >
> >
> >
> > public (active)
> >
> >   target: default
> >
> >   icmp-block-inversion: no
> >
> >   interfaces: ens160
> >
> >   sources:
> >
> >   services: dhcpv6-client ssh
> >
> >   ports: 514/tcp 162/udp 514/udp 162/tcp
> >
> >   protocols:
> >
> >   masquerade: yes
> >
> >   forward-ports: port=514:proto=udp:toport=1514:toaddr=127.0.0.1
> >
> >         port=162:proto=udp:toport=1162:toaddr=127.0.0.1
> >
> >         port=514:proto=tcp:toport=1514:toaddr=127.0.0.1
> >
> >         port=162:proto=tcp:toport=1162:toaddr=127.0.0.1
> >
> >   source-ports:
> >
> >   icmp-blocks:
> >
> >   rich rules:
> >
> >
> >
> > I even tried to setup firewalld on lo but that doesn't work either:
> >
> >
> >
> > trusted (active)
> >
> >   target: ACCEPT
> >
> >   icmp-block-inversion: no
> >
> >   interfaces: lo
> >
> >   sources:
> >
> >   services:
> >
> >   ports: 1162/udp 1162/tcp 1514/udp 1514/tcp
> >
> >   protocols:
> >
> >   masquerade: no
> >
> >   forward-ports:
> >
> >   source-ports:
> >
> >   icmp-blocks:
> >
> >   rich rules:
> >
> >
> >
> > I think it's an CentOS issue somewhere... But I just can't find the
> > problem...
> >
> >
> >
> > If someone can help me with this it would be awesome!
> >
> >
> >
> > Best regards,
> >
> > --
> >
> > Marc D.
> >
> > Real is just a matter of perception
> >
> >
> > ------------------------------------------------------------
> ------------------
> > 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
>
> ------------------------------------------------------------
> ------------------
> 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
>



-- 
Marc D.

Real is just a matter of perception

------------------------------------------------------------------------------
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.