SQL Management Pack - login to databases required?

I've recently imported the SQL Management Packs (version 6.5.4.0) and discovery has been working fine - Databases are being discovered and displayed in the Databases view in the SCOM console. On one of the 2012R2 SQL servers, I noticed these errors in the
OpsMgr Event Log (see below)
The information that the MP needs for the Database properties (DB Free space, source log shipping, etc.) seems like it could be achieved without having to login to each individual database. Is there a reason why the SQL MP requires this type of intrusive
mechanism for querying information? Is there a way to disable these login scripts but still obtain the information about databases?

You can find the content of the monitoring script here
http://systemcentercore.com/?GetElement=Microsoft.SQLServer.2012.DBSizeRawPerfProvider&Type=DataSourceModuleType&ManagementPack=Microsoft.SQLServer.2012.Monitoring&Version=6.5.1.0
I don't have toroughly reviewed it, but if you do you'll probably find
how it works and why it needs to log into every database.
Now, if you do believe that you can obtain the same informations using WMI and without logging into the DBs, you'll have to disable every monitor that tries to connect into them and write your own ones...

Similar Messages

  • SQL Permissions for the SQL Managment Pack

    Hi,
    Were implementing version 6.5.1.0 of the SQL 2005 2008 2012 Managment pack.  Its going ok, but there is a line...
    Add “SQLDefaultAction” to the dbmodule_users database role.
    that makes no sense.  I can't see dbmodule_users as a database role.  Am i being thick?
    Chris
    Chris Gibson

    Hi Chris,
    Did you follow the SQL management pack guide downloaded here:
    http://www.microsoft.com/en-us/download/details.aspx?id=10631
    To configure runas account for SQL monitor, you may check the article below:
    http://blogs.technet.com/b/kevinholman/archive/2010/09/08/configuring-run-as-accounts-and-profiles-in-r2-a-sql-management-pack-example.aspx
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • SQL Management Pack Agent Job Unit Monitors

    I am trying to utilize the SQL Agent Job Monitors included with the SQL Management Pack (page 81 of the MP guide), particularly the "Last Run Status" monitor. I have set an Override for "Generate Alerts" to True. The goal
    is to have an email notification sent when any SQL Agent job fails on a specific group of computers. However, I am not familiar enough with what "Last Run Status" is actually monitoring and if it will do what I am looking for. Does this monitor
    check the job status of any agent job on the target group? I tried setting up a job for it to fail, which it does fail, but it does not generate an alert. Any suggestions appreciated. Thanks.

    1) For monitoring SQL server job status, you can refer to the following blog
    http://blogs.technet.com/b/kevinholman/archive/2011/08/05/how-to-monitor-sql-agent-jobs-using-the-sql-management-pack-and-opsmgr.aspx
    2) For troubleshoot: Make sure that your SQL agent job is discovered, you may find the discovered job under Microsoft SQL Server --> SQL Agent --> SQL agent job status. By default, the discovery is disabled and you should enabled the discovery by using
    override.
    Roger
    Thanks. So I enabled Agent Job discovery for the systems that I want. It discovered those objects. Now, I still cannot get the alerting to work. I can see the Health State of the job change to a Warning, indicating "Last Run Status" equals Failed, but
    it is not generating an alert. I set Overrides (Generates Alert = True) on a Group that included one of the job objects, nothing. I also set the same Override directly on the job object and I still do not receive an alert. Any ideas? I
    noticed someone in the comments mentioned in the blog you linked, a similar issue, except with the Job Duration monitor. However, he was able to get alerts to generate by setting the Override directly on the Job object and noted that it is not a
    feasible solution due to the number of jobs he wants to monitor. Again, I tried the same, but still could not get alerts. That solution would not be acceptable for me either because of the number of jobs that I would have to set individual Overrides for.

  • How to install Oracle Change Management Pack for 11g database.

    Hi,
    I need to setup "Oracle Change Management Pack" for my oracle11g database. Can any body help to do the same. i am able to configure following.
    Oracle Configuration Management Pack
    Oracle Data Masking Pack
    Oracle Diagnostic Pack
    Oracle Tuning Pack
    using following URL
    http://docs.oracle.com/cd/B28359_01/license.111/b28287/options.htm#CIHBGJCC but not able to install "Oracle Change Management Pack for 11g database". Can any body share any pointers if any...
    Regards
    DBA.

    As far as I could understand, this is a part of Oracle EM/Grid installation:
    The sections that follow describe the Oracle management packs. The management packs can be purchased only with Enterprise Edition. The features in these packs are accessible through Oracle Enterprise Manager Database Control, Oracle Enterprise Manager Grid Control, and APIs provided with Oracle Database software.

  • SQL Management Pack - Page Life Expectancy Alert

    We have SCOM 2012 SP1 and SQL Management Pack 6.4.1.0 in our environment.   It seems that the majority of our SQL servers are reporting the Engine Page Life Expectancy error.  However when I look at the performance data, the alerts are triggering
    at random times even when according to the performance data, it is not even close to the threshold.  Even on the alert context, the value well above the threshold in most cases.  
    When I look at the monitor in the Authoring pane, the configuration states the threshold and the interval but it does not state what counter it is looking at.  Not sure if that is normal.
    I was wondering if anyone else is experiencing this issue.  I am about to disable the monitor since I am not getting consistant alerts
    Thanks!

    Please also change the critical alert to a warning through creation of an override for all of these objects.
    SQL SERVER – What is Page Life Expectancy (PLE) Counter
    http://blog.sqlauthority.com/2010/12/13/sql-server-what-is-page-life-expectancy-ple-counter/
    Niki Han
    TechNet Community Support

  • Query used by SQL Server Management Pack for monitoring database backups

    I use SCOM 2012 R2 and the SQL Server Management Pack to monitor SQL Server database backups. I believe I am getting false positives. SCOM reports database are not backuped, while in fact they are. So I need to troubleshoot this. I suspect SCOM is querying
    the backup history in the msdb database. I want to know which query SCOM uses.
    I have tried looking in the monitor's definition but I suspect the query is embedded in the management pack files which are binary. I have also tried running a trace using the SQL Server Profiler on my test environment and overriding the interval to 60 seconds,
    but I don't see a relevant query being executed. I also don't see the alert reappear so I suspect SCOM does not honor the interval in a way I would expect.
    What query, or other method, does SCOM use to check database backups?
    Thanks in advance.

    Thank you both Ivan and Michael,
    I only saw your messages by email and didn't see your screen shot before I extracted the query myself. In my own queries I calculate the backup age in hours instead of days because of daily full backups. Perhaps It will be a good idea to create my own monitors
    from scratch like I used to do with Nagios.
    I will study the vbscripts and might create my own version which allows the query to be entered as an parameter and move all code to a .Net class which can be called from vbscript as an COM object. This way I hope to reduce the vbscript code to an minimum
    while keeping the flexibility of the SCOM Operations Console and the robustness of .Net. I suspect I want to make more non standard monitors in the future.
    Regards,
    Arjen

  • Sql management studio login error

    ***When i tried to login to the MS SQL management studio with <sid>adm user am geeting the error
    The error text as below.
    TITLE: Microsoft SQL Server Management Studio
    Value cannot be null.
    Parameter name: viewInfo (Microsoft.SqlServer.Management.SqlStudio.Explorer)
    BUTTONS:
    OK
    Thanks

    Hi,
    Could you please check if there any directory named like 1,2,3 etc in
    C:\Users\<username>\AppData\Local\Temp\
    This error sometime occurs due to missing temporary file which is created every time at startup of ssms.exe file.
    If you can find any log file which says missing file name then you just create the missing directory in given location. The file will be created automatically next time.
    Thanks.

  • SQL Cluster Management Pack

    Hello,
    I do not see a specific Management Pack for SQL Cluster... It seems to be the SQL Management Pack 6.1.400.0 and the Operating System Cluster Management Pack...6.0.6720.0 for Windows Server 2008 Cluster Management Library ...
    Am I right?
    Thanks,
    Dom
    System Center Operations Manager 2007 / System Center Configuration Manager 2007 R2 / Forefront Client Security / Forefront Identity Manager

    I implemented the low-privilege setup from the SQL MP guide because on a few standalone SQL instances and one SQL 2012 cluster, not all scripts were running.  The SQL cluster is a two node cluster with 2 SQL instances in and active/active config (One
    instance is active on each node in the cluster).  On the standalone SQL instances, the low-privilege setup is working great.  On the SQL cluster it is not.  Reading the latest SQL MP guide, it appears that SQL 2012 cluster are supported for
    monitoring.  I've made the additional configuration changes that the MP guide says is required for cluster monitoring.  I am getting PowerShell script execution error messages in the OpsMgr console stating a lack of permissions.  When I look
    at the SQL error logs, I see that something is trying to log into the databases as NT AUTHORITY\SYSTEM and can't because access is denied.  That login is not mapped to any databases - obviously.  Why would these workflows be trying to execute as
    NT AUTHORITY\SYSTEM and not one of the the action accounts in the SQL RunAs profiles that I've setup and deployed to the two cluster nodes? 

  • Can any one tell me how to pull out a sealed management pack key token

    Hi All,
    Can any one tell me how to pull out a sealed management pack key token. I want to add dependencies to a management pointing towards a sealed management pack for which a "management pack key token" is required which i need to add in the XML File
    of the management pack. Can any one please tell me how to fetch that information.

    Hi Gautam,
    If you need to reference one management pack in another management pack, then you will need to know what the public key token is. When referencing a Microsoft management pack, it is easy as Microsoft always have the same key which is 31bf3856ad364e35 but
    if you need publickey token for other then MS management pack then you can simply run a SQL querry in your OperationManagerDB.
    select * from dbo.ManagementPack where MPName = 'Type your ManagementPackID'
    ManagementPackID will be present of the properties of the Management Pack.
    In that case the management pack should be imported in your SCOM environment.
    And you will get Public key token only for sealed Management packs not for unsealed.

  • AlwaysOn Management Pack not functioning - SCOM 2007R2

    Hi all
    I am a DBA but am new to SCOM and have been trying to get the AlwaysOn Management pack to work.  I manually installed some agents on the 2 boxes I want to manage and can see they are being monitored in the inventory.
    The management pack was already pre-installed by another employee but when I looked into the Administration > Management Packs and clicked on Import I could see that for that particular pack the AlwaysOn features were not installed.  Thinking this
    was the reason why it was not working I installed them.
    I can now see when I go to Discovered Inventory and Change Target Type the AlwaysOn components however they are not monitoring anything.  The only one with an entry is the AlwaysOn seed which shows the 2 boxes, but in a not monitored state.
    Does anyone have any suggestions about how to get this to work?
    Many thanks

    Hi
    SQL needs Run As Accounts and Profiles configuring:
    http://blogs.technet.com/b/kevinholman/archive/2010/09/08/configuring-run-as-accounts-and-profiles-in-r2-a-sql-management-pack-example.aspx
    Is the SQL DBEngine discovered and do you see discovered databases on the server. I suspect you do as it seems to have discovered the Always On components but just want to check.
    Also have you enabled the Agent Proxy setting - Admininstration, Agent Managed, double click - security tab.
    Have you run through page 43 onwards from the guide:
    http://www.microsoft.com/en-us/download/details.aspx?id=10631
    Cheers
    Graham
    Regards Graham New System Center 2012 Blog! -
    http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at
    http://systemcentersolutions.wordpress.com/

  • HP Storage Management Pack Conflicts with Network Monitoring SNMP

    The HP Storage management pack that I installed requires starting the Windows SNMP services, which creates a conflict with SNMP used for SCOM network monitoring.  I am spinning up a second SCOM mangement server so I can split these functions. What would
    you recommend to split these functions across the two management servers?  Uninstall the HP Storage Management Pack, and install on the new server?  Or move the network monitoring to the second server?
    Thank you for your help!

    Does the HP Storage pack support resource pools? What I've found with these 3rd party packs that implement connector services is they do not provide true HA via SCOM resource pools - they are standalone systems with a connector service. This is true for
    the NetApp (DataONTAP) pack, and it's a huge disappointment.
    Vendors do this because they have an API, and they think the only way to implement discovery and monitoring in SCOM is to create a service that accesses the API - and then the service is basically a collector in this case, and typically has a handful of
    rules (sometimes just one rule) that scrape events on the management server and they are misinterpreted to be alerts coming from some instance.
    I turn green when I run into this type of problem, because all this can be accomplished with native modules or managed code that are designed to work very well with SCOM.
    I know this doesn't answer your question - it's more a way for me to express my distain for these type of packs.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • SOA management pack

    Hi All ,
    I am new to Oracle SOA management pack ,
    We have a requirement to install SOA management pack ,
    for that we have a CD which contains the below folders , can any one suggest us how to proceed ?
    EM 10-2-0-5-V16512-01_1of2
    EM 10-2-0-5-V16512-01_2of2
    Thanks
    Karthik

    http://download.oracle.com/docs/cd/B16240_01/doc/doc.102/e14396/toc.htm

  • "one or more management packs which are ready to install present a security risk are you sure you want to continue"

    Hello
    I am installing the following MP (for Windows Client OS)
    http://www.microsoft.com/en-gb/download/confirmation.aspx?id=15700
    Into a new SCOM 2012 R2 environment
    When I go to import the MPs, I receive the following warning
    "one or more management packs which are ready to install present a security risk are you sure you want to continue"
    Is this normal?
    why am I getting this message?
    Should I continue to install any way?
    Thanks All
    AAnotherUser__
    AAnotherUser__

    It's normal. You will receive a prompt indicating that the management pack presents a security risk. This is due to the management pack’s use of agent proxying. Click
    Yes to allow the import.
    That's happened in Exchange management pack or SQL Management pack to can monitor all virtual hosts.
    Yes, you should continue to install Management pack.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical

  • SCOM 2012 R2 Data Warehouse failed to request a list of management packs from SQL RS server

    Hello, I get this alert can someone help me out ?
    I did check the Proxy and is configured on all the MS and DW server.
    Alert Description
    Data Warehouse failed to request a list of management packs which contain
    reports deployed to SQL Reporting Services Server. Report deployment process
    failed to request management pack list from SQL RS Server. The operation will be
    retried.
    Exception 'WebException': The request failed with HTTP status 407:
    Proxy Authentication Required ( Forefront TMG requires authorization to fulfill
    the request. Access to the Web Proxy filter is denied. ).
    One or more
    workflows were affected by this.
    Workflow name:
    Microsoft.SystemCenter.DataWarehouse.Deployment.Report
    Instance name:
    Data Warehouse Synchronization Service
    Instance ID:
    {FDC7C774-397C-3660-9D57-EFBED3B60329}

    Every call to the SRS generates a call to the OpsMgr SDK on Root Management
    Server to check permissions (security integration). It apepars the account
    the call is made under does not have access.
    To figure out which account is used follow this process:
    1) Run console and click on "Run As Profiles" in the Administration space;
    2) Double-click "Data Warehouse Report Deployment Account";
    3) Click on "Run As Accounts" tab;
    4) If you have a line in the accounts which lists your Root Management
    Server in the "Target Computer" column, note the account name in the "Run As
    Account" column. If you do not have such a line, follow steps 2-4 for the
    "Default Action Account" profile and note the account name;
    5) Click on "Run-As Accounts" in the Administration space and double click
    the account name which you got on step 4)
    6) Switch to the "Account" tab and note domain name and user name;
    Once you found the account (say, DOMAIN\user) check that it is a member of
    the User Role "Operations manager Report Security Administrators". If not -
    add it and the process will recover automatically.
    Also You can refer below links
    http://blogs.technet.com/b/smsandmom/archive/2007/09/06/system-center-operations-manager-doesn-t-show-any-reports.aspx
    http://www.networksteve.com/enterprise/topic.php/Data_Warehouse_failed_to_request_a_list_of_management_packs..._E/?TopicId=16627&Posts=2
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"

  • SQL Server 2012 Management Studio:In the Database, how to print out or export the old 3 dbo Tables that were created manually and they have a relationship for 1 Parent table and 2 Child tables?How to handle this relationship in creating a new XML Schema?

    Hi all,
    Long time ago, I manually created a Database (APGriMMRP) and 3 Tables (dbo.Table_1_XYcoordinates, dbo.Table_2_Soil, and dbo.Table_3_Water) in my SQL Server 2012 Management Studio (SSMS2012). The dbo.Table_1_XYcoordinates has the following columns: file_id,
    Pt_ID, X, Y, Z, sample_id, Boring. The dbo.Table_2_Soil has the following columns: Boring, sample_date, sample_id, Unit, Arsenic, Chromium, Lead. The dbo.Table_3_Water has the following columns: Boring, sample_date, sample_id, Unit, Benzene, Ethylbenzene,
    Pyrene. The dbo.Table_1_XYcoordinates is a Parent Table. The dbo.Table_2_Soil and the dbo.Table_3_Water are 2 Child Tables. The sample_id is key link for the relationship between the Parent Table and the Child Tables.
    Problem #1) How can I print out or export these 3 dbo Tables?
    Problem #2) If I right-click on the dbo Table, I see "Start PowerShell" and click on it. I get the following error messages: Warning: Failed to load the 'SQLAS' extension: An exception occurred in SMO while trying to manage a service. 
    --> Failed to retrieve data for this request. --> Invalid class.  Warning: Could not obtain SQL Server Service information. An attemp to connect to WMI on 'NAB-WK-02657306' failed with the following error: An exception occurred in SMO while trying
    to manage a service. --> Failed to retrieve data for this request. --> Invalid class.  .... PS SQLSERVER:\SQL\NAB-WK-02657306\SQLEXPRESS\Databases\APGriMMRP\Table_1_XYcoordinates>   What causes this set of error messages? How can
    I get this problem fixed in my PC that is an end user of the Windows 7 LAN System? Note: I don't have the regular version of Microsoft Visual Studio 2012 in my PC. I just have the Microsoft 2012 Shell (Integrated) program in my PC.
    Problem #3: I plan to create an XML Schema Collection in the "APGriMMRP" database for the Parent Table and the Child Tables. How can I handle the relationship between the Parent Table and the Child Table in the XML Schema Collection?
    Problem #4: I plan to extract some results/data from the Parent Table and the Child Table by using XQuery. What kind of JOIN (Left or Right JOIN) should I use in the XQuerying?
    Please kindly help, answer my questions, and advise me how to resolve these 4 problems.
    Thanks in advance,
    Scott Chang    

    In the future, I would recommend you to post your questions one by one, and to the appropriate forum. Of your questions it is really only #3 that fits into this forum. (And that is the one I will not answer, because I have worked very little with XSD.)
    1) Not sure what you mean with "print" or "export", but when you right-click a database, you can select Tasks from the context menu and in this submenu you find "Export data".
    2) I don't know why you get that error, but any particular reason you want to run PowerShell?
    4) If you have tables, you query them with SQL, not XQuery. XQuery is when you query XML documents, but left and right joins are SQL things. There are no joins in XQuery.
    As for left/right join, notice that these two are equivalent:
    SELECT ...
    FROM   a LEFT JOIN b ON a.col = b.col
    SELECT ...
    FROM   b RIGHT JOIN a ON a.col = b.col
    But please never use RIGHT JOIN - it gives me a headache!
    There is nothing that says that you should use any of the other. In fact, if you are returning rows from parent and child, I would expect an inner join, unless you want to cater for parents without children.
    Here is an example where you can study the different join types and how they behave:
    CREATE TABLE apple (a int         NOT NULL PRIMARY KEY,
                        b varchar(23) NOT NULL)
    INSERT apple(a, b)
       VALUES(1, 'Granny Smith'),
             (2, 'Gloster'),
             (4, 'Ingrid-Marie'),
             (5, 'Milenga')
    CREATE TABLE orange(c int        NOT NULL PRIMARY KEY,
                        d varchar(23) NOT NULL)
    INSERT orange(c, d)
       VALUES(1, 'Agent'),
             (3, 'Netherlands'),
             (4, 'Revolution')
    SELECT a, b, c, d
    FROM   apple
    CROSS  JOIN orange
    SELECT a, b, c, d
    FROM   apple
    INNER  JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    LEFT   OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    RIGHT  OUTER JOIN orange ON apple.a = orange.c
    SELECT a, b, c, d
    FROM   apple
    FULL OUTER JOIN orange ON apple.a = orange.c
    go
    DROP TABLE apple, orange
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • TS1717 itunes will not start automatically when the phone is plugged in

    My iTunes will not start on my pc when I plug the phone in and the box to check is greyed out

  • Job getting scheduled twice

    Hi Friends, It’s a FILE to IDOC interface. confirmation message back is needed to sender file, for that I followed the below link for Configuring the IDOC acknowledgment ALEAUD. https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid

  • Mutating problem solution using compound triggers

    i am using 11g. i am updating one column in a table.based on that value i want to insert one row in same table. i want to use trigger.it will cause mutating.using compound trigger how to solve that one. i am writting trigger on test table. create or

  • Can no longer discover new related music

    in the past couple of years Apple has done away with a proper "just added" (i see so many albums from 2004 in the just added list) and then New Music from My Favorite Artists (or whatever it was called) disappeared. Unless recommendations has a prefe

  • Problems with wpa2 + wicd + intel3945 wifi card : wrong password

    Hi! I was using this setup months ago, then I had to travel so not used that laptop... When I came back I updated my arch laptop and then I realized that can not connect through wicd to the dlink router... wicd keeps saying "wrong password"... I trie