Snmp v3

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Snmp v3

Post by benhank »

Hey guys!
Iv'e read this info about snmp but it doesn't say much for setting up snmp V3:

Code: Select all

https://www.elastic.co/guide/en/logstash/2.2/plugins-inputs-snmptrap.html
So my question is how do you set up NLS to receive snmp V3 traps?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp v3

Post by scottwilkerson »

This doesn't appear to be available in any version of the logstash plugin.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Snmp v3

Post by benhank »

SON of a biscuit!

Well, let me ask it this way: If a server is configured with snmp v3 to SEND to the logserver, all the log server needs is to be listening on the correct port :

Code: Select all

tcp {
type => 'snmptrap'
port => 162
}
udp {
type => 'snmptrap'
port => 162
}
to receive the traps right?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp v3

Post by scottwilkerson »

I believe you would need to have the receiver able to decode the v3 traps unfortunately, if someone else has any suggestions I am willing to be wrong on this one ;)
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Snmp v3

Post by benhank »

say that gives me an idea.

What if I configure the os itself to receive and decode the traps, and then have the logserver read the traps afterwards?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp v3

Post by scottwilkerson »

Now you're thinking! That should work fine.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Snmp v3

Post by benhank »

excellent!
now can you show me how to do it?
and yes you win the bet that I was gonna ask =D
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp v3

Post by scottwilkerson »

This is where is gets a bit tricky, but basically you would setup snmptrapd on the server, then setup logging to a file

see snmptrapd Logging section here
https://support.nagios.com/kb/article.php?id=88

finally, add a file input to your Log Server configuration to pull /var/log/snmptrapd.log along with a filter to parse the traps
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Snmp v3

Post by benhank »

Gotcha you can lock it. and thanks!
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Snmp v3

Post by scottwilkerson »

benhank wrote:Gotcha you can lock it. and thanks!
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked