locked
Adding a Response script to sealed management pack rules RRS feed

  • Question

  • Hi, 

    I have recently downloaded SQL server 2008 Management pack which is sealed. For some of the rules, I would like to add a Response script when the rule is triggered. Since the management pack is sealed the add button is grayed out. I am wondering if there is a way to do this?

     

    Thank you,

    AJ


    • Edited by Ajoshi03 Friday, April 20, 2012 2:02 PM
    Friday, April 20, 2012 2:02 PM

Answers

  • Hi Amol

    Sadly there isn't a copy and paste option for rules and monitors .. that would be too easy and logical!

    It is a case of working through your rules on a rule by rule basis to see how they were created and hence how you can recreate them. You will probably find that you have to use the authoring console for some of them.

    Sorry there isn't a better answer for you.

    Cheers

    Graham 


    Regards Graham New System Center 2012 Blog! - http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/

    • Marked as answer by Ajoshi03 Tuesday, April 24, 2012 1:36 PM
    Monday, April 23, 2012 5:30 PM

All replies

  • you cannot modify sealed MP but you can unsealed MP first.

    The following link provdies tool for backup and unseal MP

    http://blogs.technet.com/b/momteam/archive/2012/04/16/powershell-script-to-backup-opsmgr-overrides-and-unsealed-management-packs.aspx

    Roger

    Friday, April 20, 2012 3:08 PM
  • While unsealing management packs to learn how Microsoft have written their packs, please don't unseal management packs to make changes:

    http://systemcentersolutions.wordpress.com/2010/04/14/unsealing-sealed-management-packs/

    Ajoshi - can you give an example of specifically what you would like to do. You can run recoveries and diagnostics off monitors from sealed management packs - the Add button isn't greyed out and you save your changes to a custom management pack e.g custom sql recoveries MP (not to the default management pack)

    Cheers

    Graham


    Regards Graham New System Center 2012 Blog! - http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/

    Friday, April 20, 2012 4:31 PM
  • Hi Graham,

    The example of what I am trying to do is; When a specific alert is triggered such as SQL Server DB engine restart. I want to run a command  in a batch file example tasklist.exe to get the services running in the background. I imported the sql management pack, when i go into the properties of the Rule SQL Server DB engine restart the response script portion has add button greyed out. 

    Please advise is thats possible to do this for rules, i just noticed that you are right and I can do this for Monitors, but I still see Add button greyed out for Rules.

    Thank you,
    Amol 

    Friday, April 20, 2012 6:42 PM
  • Hi Amol

    Sadly you can't do this for rules. You would need to:

    - disable (via an override) the rule from the sealed SQL management pack

    - recreate the rule in a custom management pack and include your response as part of the custom rule.

    It is a long winded solution but due to the fact the management pack is sealed, it is your only option from SCOM.

    If you have the System Center suite (ie Opalis, now Orchestrator) you could set this up as a runbook - there is a get-alert activity and you could have this check for the alert from this rule and run the response from Orchestrator ... but this is possibly even more long winded than copying \ recreating the rule.

    Regards

    Graham


    Regards Graham New System Center 2012 Blog! - http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/

    Saturday, April 21, 2012 7:49 AM
  • Hi Graham,

    Thank you for your responses,

    Is there a way to copy the rule to a editable one? 

    Thank you,

    Amol


    • Edited by Ajoshi03 Monday, April 23, 2012 2:29 PM
    Monday, April 23, 2012 2:29 PM
  • Hi Amol

    Sadly there isn't a copy and paste option for rules and monitors .. that would be too easy and logical!

    It is a case of working through your rules on a rule by rule basis to see how they were created and hence how you can recreate them. You will probably find that you have to use the authoring console for some of them.

    Sorry there isn't a better answer for you.

    Cheers

    Graham 


    Regards Graham New System Center 2012 Blog! - http://www.systemcentersolutions.co.uk
    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/

    • Marked as answer by Ajoshi03 Tuesday, April 24, 2012 1:36 PM
    Monday, April 23, 2012 5:30 PM
  • Thank you Graham, You have been very helpful. 

    Amol 

    Monday, April 23, 2012 9:26 PM
  • Hi Graham,

    I have a similar issue related to response scripts for a coustom rule that i created.

    P.S : http://social.technet.microsoft.com/Forums/en-US/operationsmanagergeneral/thread/f57dcad0-67a6-43b3-ae74-00f2a54f3126

    If possible kindly look into this :)

    Regards,

    Prajul Nambiar

    Thursday, June 6, 2013 9:55 AM