Quantcast

Minion SNMP Traps

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Minion SNMP Traps

Matthew Nichols
I have been following the instructions at https://docs.opennms.org/opennms/releases/latest/guide-install/guide-install.html#gi-install-minion-rhel-trapd to try and make it so that the minion can listen to SNMP traps.

The only thing I've gotten to work so far is to use `snmptrap 127.0.0.1:1162` on the machine the minion is running on. I can also do a `firewall-cmd --add-forward-port=port=222:proto=tcp:toport=22` which works as expected (though it doesn't work with `toaddr=127.0.0.1`).

Is it possible to have the minion bind to 0.0.0.0:162 instead? I haven't been able to find an option for that.

This is all running on a VMware virtual machine with one virtual NIC with a statically assigned address from DHCP, running a fully-updated CentOS 7.

Also, are there plans for the minion to support Debian like OpenNMS itself does?

Output of `firewall-cmd --list-all`:
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: ens33
  sources:
  services: dhcpv6-client ssh
  ports: 162/udp 162/tcp
  protocols:
  masquerade: yes
  forward-ports: port=162:proto=udp:toport=1162:toaddr=127.0.0.1
        port=162:proto=tcp:toport=1162:toaddr=127.0.0.1
  sourceports:
  icmp-blocks:
  rich rules:

Output of `netstat -pln`:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1047/sshd          
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1385/master        
tcp6       0      0 127.0.0.1:1299          :::*                    LISTEN      2471/java          
tcp6       0      0 :::8181                 :::*                    LISTEN      2471/java          
tcp6       0      0 :::22                   :::*                    LISTEN      1047/sshd          
tcp6       0      0 ::1:25                  :::*                    LISTEN      1385/master        
tcp6       0      0 127.0.0.1:36703         :::*                    LISTEN      2471/java          
tcp6       0      0 127.0.0.1:45444         :::*                    LISTEN      2471/java          
tcp6       0      0 127.0.0.1:8201          :::*                    LISTEN      2471/java          
udp        0      0 0.0.0.0:1302            0.0.0.0:*                           800/dhclient        
udp        0      0 127.0.0.1:323           0.0.0.0:*                           640/chronyd        
udp        0      0 0.0.0.0:68              0.0.0.0:*                           800/dhclient        
udp6       0      0 ::1:323                 :::*                                640/chronyd        
udp6       0      0 :::53672                :::*                                800/dhclient        
udp6       0      0 :::1514                 :::*                                2471/java          
udp6       0      0 127.0.0.1:1162          :::*                                2471/java          
raw6       0      0 :::58                   :::*                    7           2471/java          
raw6       0      0 :::58                   :::*                    7           2471/java          
raw6       0      0 :::58                   :::*                    7           688/NetworkManager  


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Minion SNMP Traps

Jesse White-3
Hi Matthew,

You configure the Minion to bind to 0.0.0.0:162 with:
  ssh -p 8201 admin@127.0.0.1
  ...
  admin@minion> config:edit org.opennms.netmgt.trapd
  admin@minion> property-set trapd.listen.interface 0.0.0.0
  admin@minion> property-set trapd.listen.port 162      
  admin@minion> config:update

We do plan on providing Debian packages as well. They will likely be part of the next major release.

Best,
Jesse

On 03/09/2017 11:43 AM, Matthew Nichols wrote:

> I have been following the instructions at https://docs.opennms.org/opennms/releases/latest/guide-install/guide-install.html#gi-install-minion-rhel-trapd to try and make it so that the minion can listen to SNMP traps.
>
> The only thing I've gotten to work so far is to use `snmptrap 127.0.0.1:1162` on the machine the minion is running on. I can also do a `firewall-cmd --add-forward-port=port=222:proto=tcp:toport=22` which works as expected (though it doesn't work with `toaddr=127.0.0.1`).
>
> Is it possible to have the minion bind to 0.0.0.0:162 instead? I haven't been able to find an option for that.
>
> This is all running on a VMware virtual machine with one virtual NIC with a statically assigned address from DHCP, running a fully-updated CentOS 7.
>
> Also, are there plans for the minion to support Debian like OpenNMS itself does?
>
> Output of `firewall-cmd --list-all`:
> public (active)
>   target: default
>   icmp-block-inversion: no
>   interfaces: ens33
>   sources:
>   services: dhcpv6-client ssh
>   ports: 162/udp 162/tcp
>   protocols:
>   masquerade: yes
>   forward-ports: port=162:proto=udp:toport=1162:toaddr=127.0.0.1
> port=162:proto=tcp:toport=1162:toaddr=127.0.0.1
>   sourceports:
>   icmp-blocks:
>   rich rules:
>
> Output of `netstat -pln`:
> Active Internet connections (only servers)
> Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
> tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1047/sshd          
> tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1385/master        
> tcp6       0      0 127.0.0.1:1299          :::*                    LISTEN      2471/java          
> tcp6       0      0 :::8181                 :::*                    LISTEN      2471/java          
> tcp6       0      0 :::22                   :::*                    LISTEN      1047/sshd          
> tcp6       0      0 ::1:25                  :::*                    LISTEN      1385/master        
> tcp6       0      0 127.0.0.1:36703         :::*                    LISTEN      2471/java          
> tcp6       0      0 127.0.0.1:45444         :::*                    LISTEN      2471/java          
> tcp6       0      0 127.0.0.1:8201          :::*                    LISTEN      2471/java          
> udp        0      0 0.0.0.0:1302            0.0.0.0:*                           800/dhclient        
> udp        0      0 127.0.0.1:323           0.0.0.0:*                           640/chronyd        
> udp        0      0 0.0.0.0:68              0.0.0.0:*                           800/dhclient        
> udp6       0      0 ::1:323                 :::*                                640/chronyd        
> udp6       0      0 :::53672                :::*                                800/dhclient        
> udp6       0      0 :::1514                 :::*                                2471/java          
> udp6       0      0 127.0.0.1:1162          :::*                                2471/java          
> raw6       0      0 :::58                   :::*                    7           2471/java          
> raw6       0      0 :::58                   :::*                    7           2471/java          
> raw6       0      0 :::58                   :::*                    7           688/NetworkManager  
>
>
> ------------------------------------------------------------------------------
> Announcing the Oxford Dictionaries API! The API offers world-renowned
> dictionary content that is easy and intuitive to access. Sign up for an
> account today to start using our lexical data to power your apps and
> projects. Get started today and enter our developer competition.
> http://sdm.link/oxford
> _______________________________________________
> 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


------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
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
Loading...