This support forum board is for support questions relating to
Nagios Log Server , our solution for managing and monitoring critical log data.
benhank
Posts: 1264 Joined: Tue Apr 12, 2011 12:29 pm
Post
by benhank » Mon Mar 25, 2019 12:53 pm
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:
Post
by scottwilkerson » Mon Mar 25, 2019 1:41 pm
This doesn't appear to be available in any version of the logstash plugin.
benhank
Posts: 1264 Joined: Tue Apr 12, 2011 12:29 pm
Post
by benhank » Mon Mar 25, 2019 4:00 pm
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:
Post
by scottwilkerson » Mon Mar 25, 2019 4:50 pm
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
benhank
Posts: 1264 Joined: Tue Apr 12, 2011 12:29 pm
Post
by benhank » Tue Mar 26, 2019 11:38 am
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:
Post
by scottwilkerson » Tue Mar 26, 2019 12:07 pm
Now you're thinking! That should work fine.
benhank
Posts: 1264 Joined: Tue Apr 12, 2011 12:29 pm
Post
by benhank » Tue Mar 26, 2019 12:43 pm
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:
Post
by scottwilkerson » Tue Mar 26, 2019 12:52 pm
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
benhank
Posts: 1264 Joined: Tue Apr 12, 2011 12:29 pm
Post
by benhank » Tue Mar 26, 2019 12:54 pm
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:
Post
by scottwilkerson » Tue Mar 26, 2019 1:00 pm
benhank wrote: Gotcha you can lock it. and thanks!
Locking thread