Results 1 to 9 of 9

Thread: Windows Server 2008 Perfmon logging to database?

  1. #1
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Question Windows Server 2008 Perfmon logging to database?

    Has anyone ever managed to get this working?

    I've created my performance counters, set up a System DSN (which tests okay), and changed the data collector from binary to SQL, and pointed it at the SQL server, but I get a rather cryptic error message:

    "When attempting to start the Data Collector Set the following system error occured: Call to SQLAllocConnect failed with %1"

    Googling the error is virtually no help as it just gives you a bunch of cryptic performance monitor ODBC programmer references..

    I could just have them log to files and then run a parser, but it's rather long-winded process..

    Any perfmon geniuses around?
    (\__/)
    (='.'=)
    (")_(")

  2. #2
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts

    Re: Windows Server 2008 Perfmon logging to database?

    not a perfmon genius but I'll see what I can do - anything come up on SQL profiler if you run a trace ?
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  3. #3
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Re: Windows Server 2008 Perfmon logging to database?

    Not a sausage :/

    I'm wondering if it's because I'm telling it to use a sql account rather than Windows Authentication (which won't work as SQL is on a totally different box..)?
    (\__/)
    (='.'=)
    (")_(")

  4. #4
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts

    Re: Windows Server 2008 Perfmon logging to database?

    as long as its in the same forest you can use windows auth.
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  5. #5
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Re: Windows Server 2008 Perfmon logging to database?

    They're not in a domain, just three dedicated servers at our hosting company..
    (\__/)
    (='.'=)
    (")_(")

  6. #6
    Administrator Moby-Dick's Avatar
    Join Date
    Jul 2003
    Location
    There's no place like ::1 (IPv6 version)
    Posts
    10,665
    Thanks
    53
    Thanked
    385 times in 314 posts

    Re: Windows Server 2008 Perfmon logging to database?

    handy..... not sure if it would be possible to accounts form other machines...
    my Virtualisation Blog http://jfvi.co.uk Virtualisation Podcast http://vsoup.net

  7. #7
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Re: Windows Server 2008 Perfmon logging to database?

    Yeah, not ideal.. I've a hunch that the dsn isn't having the credentials passed to it from perfmon, hence why the error is coming out with an ODBC programming error?
    (\__/)
    (='.'=)
    (")_(")

  8. #8
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Re: Windows Server 2008 Perfmon logging to database?

    Bingo..

    It seems as though perfmon's SQL logging was never set up with anything other then trusted connections in mind - it simply doesn't support sql user accounts, combined with a slight issue where Server 2008's System DSN's weren't showing up in the expected place in the registry meant that it just kept trying to connect with no credentials, and I'm not even sure that the ODBC was ever called properly..

    fixed it by having the same user account on all three machines, adding the user account into SQL, creating the DSN's with SQL accounts on both webservers, frigging about with the registry to make sure the the DSN's actually ended up in the right place (HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI, HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources), then changing the DSN's to use windows auth..

    Then once I set the collectors up again in perfmon, changing the user to the windows account which I'd previously created on all three machines, but making sure that the machine names where left off the usernames when prompted..

    Gave it a bit of a kick and it finally coughed into life!

    What a sack of brown stuff..
    (\__/)
    (='.'=)
    (")_(")

  9. #9
    Registered User
    Join Date
    Mar 2014
    Posts
    1
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Windows Server 2008 Perfmon logging to database?

    This was an easy workaround for me (no registry hack required). I just had to create the same local user on both machines with the same password. Gave it permissions to SQL on the SQL server, and then used it for Run As in perfmon and it worked great.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Windows - 32-bit vs 64-bit
    By Paul Adams in forum Software
    Replies: 11
    Last Post: 30-03-2011, 02:54 PM
  2. Windows - hotfixing overview
    By Paul Adams in forum Software
    Replies: 13
    Last Post: 13-10-2009, 11:17 AM
  3. Windows Server 2008
    By marshalex in forum Help! Quick Relief From Tech Headaches
    Replies: 5
    Last Post: 30-09-2009, 08:51 PM
  4. Looking for help on SBS 2008 (and Windows Server 2008/Exchange 2007 in general! :))
    By FatalSaviour in forum Help! Quick Relief From Tech Headaches
    Replies: 8
    Last Post: 28-08-2009, 02:28 PM
  5. Network Storage Device
    By Whatsthisdo in forum Networking and Broadband
    Replies: 31
    Last Post: 14-11-2007, 03:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •