Filter

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
Locked
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Filter

Post by spurrellian »

Hi,

One of our network guys has asked if its possible to filter on a per interface direction?

This is what he's messaged me
"netflow records contain an input and output interface, in other netflow tools I've used you can filter on a per-interface direction, can we do this in Nagios Network Analyzer?"

http://www.cisco.com/en/US/technologies ... a3db9.html
Table 6. NetFlow Version 9 Field Type Definitions
Is this possible in NA?
Paul S - Using Nagios XI, Network Analyzer, Log Server
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Filter

Post by eloyd »

You can filter on any valid tcpdump/pcap/ngrep style filter (http://www.tcpdump.org/manpages/pcap-filter.7.html). So you can make good use of the "net" directive to determine which way packets are flowing (internal network is inbound, anything else is outbound).

Edit: changed "dir" to "net", though the "dir" directive may apply as well.
Last edited by eloyd on Wed Jun 08, 2016 3:19 pm, edited 2 times in total.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Filter

Post by bwallace »

Well said, eloyd. OP, let us know if that gets you on track....
Be sure to check out the Knowledgebase for helpful articles and solutions!
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Re: Filter

Post by spurrellian »

Thanks

Pardon my ignorance, but how do I use that filter in nagos na? ;)
Paul S - Using Nagios XI, Network Analyzer, Log Server
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Filter

Post by bwallace »

No worries, I think eloyd was talking about using those tcpdump style filters in conjunction with custom queries (from the NNA UI). This doc provides some useful examples to get started https://assets.nagios.com/downloads/nag ... alyzer.pdf
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Filter

Post by eloyd »

Yes, I was. Sorry. I was actually thinking you could take that information back to your networking person, since I thought it was them asking for it! :-)
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Re: Filter

Post by spurrellian »

Thanks,

I've had a play and got some results. Unsure if its correct so will check with him tomorrow.

Thanks for your help. I got the info from here, as listed in the manual :|

http://manpages.ubuntu.com/manpages/pre ... ump.1.html
interface.PNG
You do not have the required permissions to view the files attached to this post.
Paul S - Using Nagios XI, Network Analyzer, Log Server
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Re: Filter

Post by spurrellian »

eloyd wrote:Yes, I was. Sorry. I was actually thinking you could take that information back to your networking person, since I thought it was them asking for it! :-)
No worries, I thought I would double check before I go back to him and he asks how to do that, plus I love to learn new things :D
Paul S - Using Nagios XI, Network Analyzer, Log Server
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Filter

Post by bwallace »

Cool, keep us posted as to whether or not that's what the admin/network guy was looking for....
Be sure to check out the Knowledgebase for helpful articles and solutions!
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Filter

Post by jomann »

You can also set up a "filter" using views. In the screenshot above that you gave, there is a button that says "create" up top. This creates a "view" which is essentially another source inside a source that will ONLY save anything that you have determined to be in there. It uses a regular nfdump query like the ones you run in the Query page in order to determine what is saved in that view. Once you've created it, every 5 minutes when the netflow data is reaped it will also save a copy of the filtered data in the views section. Then, you can use the dropdown to select a view to see inside a source - which will end up being a filter list of values.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked