Hanging queries

This support forum board is for support questions relating to Nagios Network Analyzer, our network traffic and bandwidth analysis solution.
SteveBeauchemin
Posts: 524
Joined: Mon Oct 14, 2013 7:19 pm

Re: Hanging queries

Post by SteveBeauchemin »

I have seen this too. The nfdump command is finished, and has passed the data to an httpd process for display. The httpd process will be absorbing the data a very long time before it can try to display it. Then it will probably run out of some resource. And you never really wanted that data anyway.

I think what really needs to be done is use the nfdump syntax to reduce the number of returned items. for example, what do you really want to know? Lets talk port 80. Maybe you want to know who is the biggest traffic user on port 80. From a command line try this.
Notice that I used -n 20 to only get the top 20 from the list, and -s to get source IP showing the byte count. I also used a shorter time frame.

Code: Select all

/usr/local/bin/nfdump -M '/usr/local/nagiosna/var/crmonrah03/flows/' -R . -t '2017/07/05.07:00:00-2017/07/05.12:59:59' -N -n '20' -o 'csv' -s 'srcip/bytes' 'src port 80'
If you like it, then make a Report. On the Report tab,
port-80-12-hours-ago.PNG
Make something like this. Then, when you want to see the data, run it.

Is that where you wanted to go? Basically, you need to reduce the output. Limit it by time frame versus using the totality of your collected data, by how many results make sense, and by what you want to know.

I expect that a new version will deal with other performance related issues. I hope. I'm a user of the tool, we paid for it, I like it, but sometimes I want to punch it.

Thanks

Steve B
You do not have the required permissions to view the files attached to this post.
XI 5.7.3 / Core 4.4.6 / NagVis 1.9.8 / LiveStatus 1.5.0p11 / RRDCached 1.7.0 / Redis 3.2.8 /
SNMPTT / Gearman 0.33-7 / Mod_Gearman 3.0.7 / NLS 2.0.8 / NNA 2.3.1 /
NSClient 0.5.0 / NRPE Solaris 3.2.1 Linux 3.2.1 HPUX 3.2.1
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Hanging queries

Post by tgriep »

Thanks @SteveBeauchemin for the help.
@aparfenov, if you still have any questions, let us know.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked