Showing posts with label Active Policies. Show all posts
Showing posts with label Active Policies. Show all posts

Wednesday, April 29, 2015

Part 15: Re-initiate Monitoring Goals Wizard in vRealize Operations 6.0!

One of the post in my vROps 6.0 Tutorial was about understanding the Monitoring Goals in vROps 6.0. I would highly recommend that you read that post before you read this article as this one is a follow up on that post where at the end I mentioned :

"As I mentioned before, any changes to the policy now cannot be done through this wizard. You would have to manually edit the policy now to make changes or you could use my next post where I will tell you a hack which will allow you to re-run this wizard once again."
The above statement means that once you setup a vCenter Adapter to monitor a vCenter Server, you would be asked to define your monitoring goals. These monitoring goals basically translate into the default policy which are then applied on all the objects which are being monitored by that vROps instance. When you read the above mentioned article you would understand how this wizard helps you set the policy for the first time. Unfortunately, you can only run this widget once and set the default policy and to make any subsequent changes to the policy, you would have to manually edit the default policy which could be a cumbersome task if you are not well versed with how policy works!
While you do not have the option to re-run the wizard, there is a hack which was discovered when this question was asked by my colleague Woflgang Stichel who is a Business Solution Architect at VMware. His question was that one of his customer has not selected the right options while responding to the monitoring goals because of which vROps default policy is not monitoring the datastores at all. He wanted to re-run this wizard somehow to select the right options instead of diving into the policies.
Before I share the hack with you, I must mention that this is NOT a supported method and please do it at your own risk :-)

Tuesday, January 6, 2015

Part 9: Exporting & Importing Policies with vRealize Operations Manager 6.0

With the release of vRealize Operations Manager 6.0, VMware has introduced a much required feature into the product which allows you export policies created in your vROps 6.0 instance and import them back into the system as and when you need them.

This feature was in constant demand with vCOps 5.x, however was never possible with that version. Their could be multiple use cases for which you might want to export or import policies. Some that come to my mind are Backup & Restore, distributing policies across multiple instances within an organization, programmatically make changes to policies and injecting them back into the system and many more. The export and import options are right on the GUI itself which makes it even more simpler.

Let us quickly dive into my lab through screenshots and see how you can do this:

  • Login to and node of vROps 6.0 cluster deployment. (If you have a standalone deployment then that's the node you want to login to. Remote collectors do not have these policies hence do not login to them, instead chose a Master, Master Replica or a data node. Please use credentials with appropriate permissions.

  • Click on the Administration Icon and click on Policies.          

  • Click on the Policy Library and then select the policy which you wish to export and click on the Tool icon highlighted in the screenshot and click on EXPORT. This can be saved as an XML file and later imported back when you need it.



If you are curious, open the xml file and you will notice that the entire policy can be edited in the xml format and then imported back into the same system. I can see Alan Renouf writing scripts against the policy engine to customize the policy from 3rd part tools and interfaces. With his experience and creativity may be has some more great ideas.

You can just import the xml using the same options and it will give you the policy back into your vROps instance. Please ensure that you enable the policy by attaching it to a group or the entire universe. Once you do that, the policy would be reflected under the Active Policies. Here you can rank the policies just like the old vROps days. Rank 1 will have a higher priority while the default policy will have a rank of D. Look at the screenshot here which shows a policy I have just made active:


With this I will close this article and hopefully this gives you an insight on how you can play around with policies on vROps 6.0. See you soon with my next post!

Till Then...



Share & Spread the Knowledge