Upload
igor-puhalo
View
369
Download
0
Embed Size (px)
Citation preview
3. Microsoft Community BiH konferencija
SADRŽAJ
• Nadzor SQL-a pomoću SCOM managament packa • Nadzor SQL –a preko CentralDB alata• Performance Analyzer
3. Microsoft Community BiH konferencija
Nadzor SQL-a pomoću SCOM MP-a
• Podrška za SQL u SCOM 2012 R2• Osnove MS SQL Management Pack-a• Inside MS SQL Management Pack• MS SQL Management Pack (Demo)
3. Microsoft Community BiH konferencija
Podržane verzije SQL-a
Version 32 Bit SQL on a 32 Bit OS
32 Bit SQL on a 64 Bit OS
64 Bit SQL on a 64 Bit OS
SQL Server 2005 Supported Supported Supported (SQL 2005 SP2 Only)
SQL Server 2008 Supported Supported Supported
SQL Server 2008 R2 Supported Supported Supported
SQL Server 2012 Supported Supported Supported
SQL Server 2014 No No Supported
3. Microsoft Community BiH konferencija
Verzije SCOM-a vs. verzije SQL-a
Versions SCOM 2007 R2 SCOM 2012 SCOM 2012 SP1 SCOM 2012 R2
SQL 2005 SP2 Supported Supported Supported Supported
SQL 2008 Supported Supported Supported Supported
SQL 2008 R2 Supported Supported Supported Supported
SQL 2012 Supported Supported Supported Supported
SQL 2012 SP1 Supported Supported Supported Supported
SQL 2014 Supported (Except Dashboards)
Supported Supported Supported
3. Microsoft Community BiH konferencija
Podrška za SQL edicije
• Data Center (SQL Server 2008 R2 onwards)
• Enterprise• Developer• Standard• Express
3. Microsoft Community BiH konferencija
Security SQL 2005,2008 & 2008 R2
SQL RunAs Account Description
SQL Server Default Action Account
The default SQL Server Management Pack Action
Account for SQL Server 2005, 2008 and 2008 R2.
SQL Server Discovery Action Account
This account is used for discovery of SQL Server 2000, 2005, 2008
and 2008 R2 SQL Server Monitoring Account This account is used for
monitoring of SQL Server 2000, 2005, 2008 and 2008 R2
3. Microsoft Community BiH konferencija
Security SQL 2012
SQL RunAs Account Description
Microsoft SQL Server 2012 Analysis Services
Discovery
Microsoft SQL Server 2012 Analysis Services Discovery
Run As ProfileMicrosoft SQL Server
2012 Analysis Services Monitoring
Microsoft SQL Server 2012 Analysis Services Monitoring
Run As Profile
3. Microsoft Community BiH konferencija
Security SQL 2014SQL RunAs Account
Microsoft SQL Server 2014 AlwaysOn Discovery Run As Profile
Microsoft SQL Server 2014 AlwaysOn Monitoring Run As Profile
Microsoft SQL Server 2014 Discovery Run As Profile
Microsoft SQL Server 2014 Integration Services Discovery Run As Profile
Microsoft SQL Server 2014 Integration Services Monitoring Run As Profile
Microsoft SQL Server 2014 Monitoring Run As Profile
Microsoft SQL Server 2014 Task Run As Profile
3. Microsoft Community BiH konferencija
SQL grupe u SCOM-u nastale instalacijom SQL MP-a
• SQL 2005 Computers• SQL 2005 DB Engine Group• SQL 2005 Replication
Computers• SQL 2008 Computers• SQL 2008 DB Engine Group• SQL 2008 Replication
Computers• SQL 2008 Mirroring Group
• SQL 2008 R2 Computers• SQL 2008 R2 DB Engine Group• SQL 2008 R2 Replication
Computers• SQL 2012 Computers• SQL 2012 DB Engine Group• SQL Computers• SQL Instances
3. Microsoft Community BiH konferencija
Pokretanje task-ova iz SCOM konzole
• Za pokretanje SQL Management Studio i SQL Profiler task-ova , mora postojati instalacija SQL Server Management Studia i SQL Server Profiler-a na svim Operations Manager računalima gdje će task biti pokrenut.
• U suprotnom "The system cannot find the file specified.„
• **SQL Server Management Studio i SQL Server Profiler nisu potrebni za discovery i monitoring.**
3. Microsoft Community BiH konferencija
SQL monitors & rules• Collect DB Active Connections count• Collect DB Active Requests count• Collect DB Active Sessions count• Collect DB Active Transactions count• Collect DB Engine Thread count• Thread Count monitor• Transaction Log Free Space (%) monitor• Transaction Log Free Space (%) collection• Collect DB Engine CPU Utilization (%)• CPU Utilization (%) monitor for DB engine• Buffer Cache Hit Ratio monitor• Collect DB Engine Page Life Expectancy
(s)• Page Life Expectancy monitor• Collect DB Disk Read Latency (ms)• Collect DB Disk Write Latency (ms)
• Disk Read Latency monitor• Disk Write Latency monitor• Collect DB Transactions per second count• Collect DB Engine Average Wait Time (ms)• Average Wait Time monitor• Collect DB Engine Stolen Server Memory (MB)• Stolen Server Memory monitor• Collect DB Allocated Free Space (MB)• Collect DB Used Space (MB)• Collect DB Disk Free Space (MB)• SQL Re-Compilation monitor
3. Microsoft Community BiH konferencija
Performance counters
CPU
Memory
Storage
Buffer pool
SQL workload
Database counters
Locking
3. Microsoft Community BiH konferencija
What does out-of-the-box SQL management pack provide?• Discover SQL Server 2005, 2008, 2008 R2,
and SQL Server 2012• Monitors SQL Server components such as
database engine instances, databases, and SQL Server Agents
• Integrate the monitoring of SQL Server components into your service-oriented monitoring scenarios
• Dashboard views, diagram views, and extensive knowledge with embedded inline tasks, and views that enable near real-time diagnosis and resolution of detected issues
3. Microsoft Community BiH konferencija
Custom Dashboard
How can users customize their dashboard?• By using Operations Manager default
dashboard view, users can create grid view for monitored components
• Users can have many views as they want for different needs
3. Microsoft Community BiH konferencija
Central DB
• Besplatan ! (www.crazydba.com) • Koristi Powershell & SSRS• Sve skripte možete mjenjati po volji i unaprijediti
alat ukoliko želite• Zahtjeva jednu bazu u koju se čuvaju podaci o
bazama i performance zadnjih godinu dana• Šalje mail putem SMTP-a ukoliko ne radi SQL ping• Posjeduje 25 predefiniranih Reporta
3. Microsoft Community BiH konferencija
Central DB konfiguracijaUSE [CentralDB]
GO
INSERT INTO [Svr].[ServerList] ([ServerName] ,[InstanceName] ,[Environment] ,[Inventory] ,[Baseline] ,[Description] ,[BusinessOwner] ,[SQLPing] ,[PingSnooze] ,[MaintStart] ,[MaintEnd])
GO
VALUES ('Your ServerName' ,'Your InstanceName' --For Named instance it's "ServerName\InstanceName" and for Default, it's "ServerName". ,'Prod' --Choose either of these Prod\Stage\QA\Dev- Constrained to 5 chars for Reporting purpose. ,'True' --If you provide True, it collects Inventory data.The Inventory job which collets this data runs once a day. ,'False' --same as above, It's better to collect baseline for critical servers because it collects data every 5 mins. ,'Description of Server' ,'Buisness Owner,'True' -- Choose True if you want to ping the server to see if it's up and able to connect to SQL DB Engine. ,NULL --You can set this value to a particular time to snooze the SQLPing not to alert until then. ,NULL -- You can set this value when you want to schedule a maintenance on a server and keep off the SQLPing from alerting. It holds the value of Maintenance start DateTime. ,NULL )-- You can set this value when you want to schedule a maintenance on a server and keep off the SQLPing from alerting. It holds the value of Maintenance End Datetime.
3. Microsoft Community BiH konferencija
Performance Analyzer
• https://sqlperfmonanalyzer.codeplex.com/• A graphical display of relogged perfmon files• Dashboard view in Excel
•DEMO