SNMP Traps HP Aruba Switches

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

SNMP Traps HP Aruba Switches

Post by nathanplatt »

Hi Everyone,

I'm trying to configure my 2930F to send logs to NLS, at the moment all the devices are on the same network and not blocked by any firewalls etc... but NLS isn't recieving anything.

I've screenshot the Aruba config... any ideas?
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SNMP Traps HP Aruba Switches

Post by cdienger »

What's the input(https://www.elastic.co/guide/en/logstas ... ptrap.html) look like on the NLS side? Is port 162 open on the NLS side(netstat -na | grep 162)? Do you see the traps coming in on NLS(yum -y install tcpdump; tcpdump -i any port 162)? Port 162 is considered a privledged port and would need additional configuration to be opened(https://assets.nagios.com/downloads/nag ... Server.pdf).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: SNMP Traps HP Aruba Switches

Post by nathanplatt »

I've changed the logstat to root but still not recieving anything
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SNMP Traps HP Aruba Switches

Post by cdienger »

What does the input config look like?

Is port 162 open?

Do you see any incoming traffic on port 162?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: SNMP Traps HP Aruba Switches

Post by nathanplatt »

Where do i find that?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SNMP Traps HP Aruba Switches

Post by cdienger »

An snmptrap input needs to be created under Configure > Global > Global Config > Inputs, before NLS will be able to accept traps.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: SNMP Traps HP Aruba Switches

Post by nathanplatt »

What would i have to put in their? Also i've noticed someone trying to access it from another IP, is there a way to tell NLS to only accept commands from certain IP's?
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: SNMP Traps HP Aruba Switches

Post by cdienger »

To have it listen on port 162 for incoming traps:

snmptrap {
port => '162'
}


Other config options are covered in https://www.elastic.co/guide/en/logstas ... ptrap-port.

You can restrict access to the machine from others using iptables. iptables is outside the scope of NLS but there is a ton of information on the web regarding it - https://www.linode.com/docs/security/fi ... -iptables/ is a nice into to it.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nathanplatt
Posts: 267
Joined: Thu May 07, 2015 4:59 am

Re: SNMP Traps HP Aruba Switches

Post by nathanplatt »

Worked perfectly! All resolved now
Locked