|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, April 11, 2013 2:14 PM
Points: 31,
Visits: 151
|
|
Hi,
I have been asked to create a automated "report" of some sort to provide some kind of statistics on our SQL Server 2005.
Basically, something we can take a look weekly to see how the server is, and growing trend.. something I would want to see is:
- Max user connections - CPU % - Disk Space Usage - SQL Error Log (if any)
Anything else that anyone can suggest as a good metric to keep track of? Also, what would be the best way to archive this? Anyone have a similar thing running on their SQL box?
Thanks.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, April 17, 2013 3:15 PM
Points: 389,
Visits: 351
|
|
- Max user connections I am not sure this possible
- CPU % SCOM
- Disk Space Usage SCOM or SQL 2008 Data collection or performance dash board
- SQL Error Log (if any) Set up traces
EnjoY!
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Yesterday @ 3:33 PM
Points: 18,858,
Visits: 12,443
|
|
|
|
|
|
SSC-Dedicated
           
Group: Administrators
Last Login: Yesterday @ 5:09 AM
Points: 31,526,
Visits: 13,864
|
|
Short summary of how I used to do this
- Create small db on every instance to hold data. - write scripts to gather metrics, separate table for each metric. Use a separate job to schedule each set of metrics as needed (some daily, some hourly, etc.) - Put a report table in the db that just holds char fields, an instance name, and an ordering field - Write a proc that "builds" a report, putting lines of data in the report table, ordering them as needed, and including the instance name. This gives you a report daily, on each server. - Write a script (SMO/Powershell/LinkedServers/etc) to roll up all reports from all instances to one central server.
Have that central server email you the report, ordering by instance, and then ordering column.
It's flexible, you can add requirements as needed.
You can also do the final export in SSRS.
Follow me on Twitter: @way0utwest
 Forum Etiquette: How to post data/code on a forum to get the best help
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, June 06, 2013 5:35 AM
Points: 23,
Visits: 135
|
|
You might have to monitor multiple server and multiple instances if this is true then
1. Create a centralize monitor server (SQL server with single instance) 2. Create a table and store the SQL server inventory detail as explained below SQLInventory 1. ServerID 2. ServerName 3. InstanceID 4. InstanceName 5. SQLVer 6. Enable_monitoring SQLInvDetail 1. InstanceID 2. DatbaseID 3 DatabaseName 4. Enable_monitoring
Create another table that will store the information about the server and instance resource usage InstResource 1. ServerID 2. InstanceID 3. Fromtime 4. Totime 5. CPUusage 6. MemUsgae
DbRessource 1.InstnaceID 2.DBID 3. File1 4. GrowthMB 3. Now Create a SQL job that will connect to each server and collect the information and stored them in the InstanceRessource and DBressource table
Note; You can enable and disable monitoring for a particular Instance and User by setting using Enable_monitoring
Schedule the job to run as you needed
Now we can use the SSRS to design your report.
Hopes this gives you some idea. Let me know if this works
Cheers, Gorachand Mohapatra
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 31, 2013 10:55 AM
Points: 16,
Visits: 558
|
|
| Do you still help with this? I can share my script and .rdl if you want. Let me know.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 6:23 PM
Points: 311,
Visits: 757
|
|
| I do need your script. If possible post it
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 8:40 PM
Points: 1,053,
Visits: 2,800
|
|
| Yes, I am interested too.
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Thursday, April 11, 2013 2:14 PM
Points: 31,
Visits: 151
|
|
amc, that would be great if you can post yours.
I have postponed this actually, but need to have something ready by end of next week.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Friday, May 31, 2013 10:55 AM
Points: 16,
Visits: 558
|
|
HI, sorry it so long to respond. Actually, the how to create this Drive (disk) Space Report came from Sql Server Central.
Right here is the link: http://www.sqlservercentral.com/scripts/Administration/67064/
And I attached my .RDL, so I hope this helps you guys.
It wasn't too hard at all. Just have to make alot of data sources to all the servers I wanted to monitor. Have fun. Let me know if you have any questions. 
ps. I hope I attached the .RDL correctly.
|
|
|
|