in More Search Options

netflow v3 stops resolving dns names

Last post 11-21-2008 2:59 PM by brianburnett. 14 replies.
Page 1 of 1 (15 items)
Sort Posts:
  • 06-13-2008 8:57 AM

    • gwsample
    • Top 500 Contributor
    • Joined on 02-09-2008
    • Posts 19
    • Points 1,582

    netflow v3 stops resolving dns names

    I am having an issue with netflow resolving dns names.  This started after upgrading netflow from v2 to v3.  I am running Orion v8.5.1 w/ SP3 and Netflow v3.  All my nodes in Orion show up in netflow with the correct name, reverse lookups work fine.  About a month after the upgrade, all the names disappeared and netflow only showed IP addresses.  Also, the nslookup button on the endpoint details screen would do nothing.  I verified reverse lookups work fine on my orion server, as far as windows is concerned.  Restarting netflow and rebooting the server had no affect.... So I opened a support ticket... thier answer: 

    "If you truncate the FlowCorrelation table within the NetperfMon database, all netflow endpoints should be resolved to their DNS names again."

    I did this, and after wating 2 days for NTA to automatically lookup hostnames, everything was back to normal.  I expressed concern with Solarwinds support this was not an acceptable fix.  Truncating this table everytime netflow looses it mind, is not a fix.  Well... it has been about a month, and gues what, netflow has stopped resolving dns names again.... I can fix this by truncating the table again, but would like to find a REAL solution.  Anyone have this same problem, or have a fix for it?

    Thanks,

    Gary Sample

    • Post Points: 5
  • 08-19-2008 4:04 PM In reply to

    • andrew
    • Top 500 Contributor
    • Joined on 07-15-2003
    • USA
    • Posts 18
    • Points 40

    Re: netflow v3 stops resolving dns names

    I am having the exact same issue.  Did you ever find a solution?

    How do you "truncate the FlowCorrelation table within the NetperfMon database".  Are you talking about just removing all the records from that table?  Is that going to cause any data loss?

    • Post Points: 3
  • 08-19-2008 4:13 PM In reply to

    • mcbridea
    • Top 25 Contributor
    • Joined on 03-24-2008
    • Austin, TX
    • Posts 293
    • Points 652
    • Moderator
      SolarWinds Employee

    Re: netflow v3 stops resolving dns names

    Hi Guys,

    This is a known bug in 3.0 and we are addressing it. The flow correlation table will rebuild so no history lost.

     Andy

    Andy McBride
    Product Manager
    SolarWinds
    • Post Points: 3
  • 08-19-2008 4:18 PM In reply to

    • andrew
    • Top 500 Contributor
    • Joined on 07-15-2003
    • USA
    • Posts 18
    • Points 40

    Re: netflow v3 stops resolving dns names

    So, that means it is safe to run "TRUNCATE TABLE FlowCorrelation"?

    • Post Points: 3
  • 08-19-2008 5:56 PM In reply to

    Re: netflow v3 stops resolving dns names

    It is safe in that the FlowCorrelation table only keeps a resolution of DNS resolutions.  Once you delete it, of course, the IP addresses will not have a way to resolve in your graphs, until new NetFlows come in with those IP addresses in them.  Then the service will see that they are not in the FlowCorrelation table and will make new DNS queries.  The history will be retained, but if no new NetFlows come in for a particular IP address, then since the graphs join on the FlowCorrelation table, I believe that they won't show up until a new DNS query is made on them.  Let me come up with a better way to do this instead of truncating the table.  I should have some T-SQL  for you to run instead this evening that will do the same thing in effect, but doesn't have this type of side-effect.

    Thanks,

    David Maltby
    NetFlow Development Lead
    SolarWinds
    • Post Points: 3
  • 08-19-2008 6:25 PM In reply to

    • gwsample
    • Top 500 Contributor
    • Joined on 02-09-2008
    • Posts 19
    • Points 1,582

    Re: netflow v3 stops resolving dns names

    yes, I am still having this issue as well.  I either have to truncate the table, or re-applying the latest netflow service pack and rebooting seems to fix it temporarily.

    • Post Points: 1
  • 08-19-2008 9:35 PM In reply to

    Re: netflow v3 stops resolving dns names

    Here is what I really suggest that you run on the NetPerfMon database instead of truncating the FlowCorrelation table..

    DECLARE @CacheExpiration datetime
    SELECT @CacheExpiration = dateadd(second, 1, LastCacheExpirationCheck) FROM NetFlowCorrelationState
    UPDATE FlowCorrelation SET CacheExpiration = @CacheExpiration

    This will cause all the DNS entries for all IP addresses to expire and the service then will start performing DNS queries against all of them.  Keep in mind that this is not a trivial task that you are forcing the service to do.  It WILL take some time to make a network called to resolve each of the IPs in the FlowCorrelation.  You can check on the service's progress by periodically running the following T-SQL:


    SELECT Count(*) FROM NetFlowAddressToResolve

    It will give you a count of how many more DNS queries that the service needs to make before it is finished.  Note: If you have a bunch of sources sending NetFlows at the same time, this process can take a long time.

    Hope this helps!  Let me know!

    Thanks,

     

    David Maltby
    NetFlow Development Lead
    SolarWinds
    • Post Points: 3
  • 08-21-2008 2:10 PM In reply to

    • andrew
    • Top 500 Contributor
    • Joined on 07-15-2003
    • USA
    • Posts 18
    • Points 40

    Re: netflow v3 stops resolving dns names

    I don't think this worked.  I ran the first query and it updated about 7 million rows.  Then I ran your second query and it says 0.  I tried restarting the NetFlow service, but that didn't make any difference.  I then ran:
    SELECT count(*) FROM FlowCorrelation WHERE Hostname = '';
    and that returned "7026560".
    I have waited a few hours and at most I have seen NetFlowAddressToResolve go to 2.  The number of entries with no hostname in FlowCorrelation keeps going up.  If I click the Lookup button on the website, it will resolve the name properly.  But, I can't do that for 7 million records! :)
    • Post Points: 3
  • 08-21-2008 3:09 PM In reply to

    Re: netflow v3 stops resolving dns names

    So the values must be messed in somewhere for these dates.  Can you look in the FlowCorrelation table and look now at what the dates are for the CacheExpiration field?  (All 7 million should be the same since we ran the query)

    Furthermore if you open the NetFlowCorrelationState table, what value is in there? 

    What is the computer system date/time on both the Orion/NTA machine and the SQL database server?  Are they in the same timezones?

    Thanks,

     

    David Maltby
    NetFlow Development Lead
    SolarWinds
    • Post Points: 3
  • 08-21-2008 3:31 PM In reply to

    • andrew
    • Top 500 Contributor
    • Joined on 07-15-2003
    • USA
    • Posts 18
    • Points 40

    Re: netflow v3 stops resolving dns names

    The CacheExpiration value for all the records is "8/21/2008 11:54:38 AM".  That was about the time I ran your query.

    The only value in the NetFlowCorrelationState is "8/21/2008 1:29:16 PM" (the current time on the server).

    The MSSQL service is running on the Orion server itself.

    • Post Points: 3
  • 08-21-2008 6:19 PM In reply to

    Re: netflow v3 stops resolving dns names


    I'm sorry.  I took the wrong approach here.  But the best thing to do here.  (Even if you hadn't run the above T-SQL which updated the CacheExpiration dates on all those rows), is to run the following query...

    INSERT INTO NetFlowAddressToResolve (IPAddress, Reason, Timestamp)
       SELECT IPAddressSort, 0, GETDATE()

       FROM FlowCorrelation WITH(NOLOCK)

    Again you can check its progress with

    SELECT Count(*) FROM NetFlowAddressToResolve

     

     

    Thanks,

    David Maltby
    NetFlow Development Lead
    SolarWinds
    • Post Points: 3
  • 08-22-2008 10:30 AM In reply to

    • andrew
    • Top 500 Contributor
    • Joined on 07-15-2003
    • USA
    • Posts 18
    • Points 40

    Re: netflow v3 stops resolving dns names

    Looks like that worked!  I ran the INSERT INTO command and I got (7122945 row(s) affected).  And when I check the NetFlowAddressToResolve table, it started at about 7 million and is going down slowly.  The domain names are starting to show up in the NetFlow pages now.  This is going to be fixed in a NetFlow v3 service pack, right?

    • Post Points: 3
  • 09-25-2008 7:44 AM In reply to

    • gwsample
    • Top 500 Contributor
    • Joined on 02-09-2008
    • Posts 19
    • Points 1,582

    Re: netflow v3 stops resolving dns names

    Any real fix for this issue yet?  Looks like my netflow just lost its mind again... no DNS names are resolving.... I am running netflow SP4... support had me install it last week to fix a report issue.

     For now it looks like i get to truncate the table again!

     

     

    • Post Points: 3
  • 10-09-2008 1:40 PM In reply to

    • njoylif
    • Top 50 Contributor
    • Joined on 07-03-2007
    • Atlanta, GA
    • Posts 199
    • Points 417

    Re: netflow v3 stops resolving dns names

     I'm seeing the same problem.  Curious as to when the fix will be out...
    Thx

    Larry J. Rice
    RelayHealth
    Network Architect
    678-984-1686
    • Post Points: 1
  • 11-21-2008 2:59 PM In reply to

    Re: netflow v3 stops resolving dns names

    I have fought with this for a long time and posted an answer for this in another topic...   It is not a complete solution, but it is a valid workaround and requires no server-side scripting.  Hope it works for you!

    http://thwack.com/forums/p/5172/50741.aspx

    Sincerely,
         Brian E. Burnett

    EASTMAN KODAK COMPANY
    WWIS - Global Telecommunications
    Office: (585) 722-3753
    • Post Points: 1
Page 1 of 1 (15 items)