Showing posts with label vCenter Operations Manager. Show all posts
Showing posts with label vCenter Operations Manager. Show all posts

Friday, January 2, 2015

vCOPS - Recreate missing vSphere group dashboard

If you are familiar with the custom-ui of vCops you will find that since 5.7 you are providing with some default custom dashboards under the vsphere group.
  
We recently installed VNX analytics adapter which seems to have removed the vsphere group default dashboards. 

To fix this perform the following tasks:

SSH into UI VM
Browse to
cd /usr/lib/vmware-vcops/user/conf/dashboards/
Run the script  "import-dashboards.sh"

This will only share the dashboards with admin user
Edit the sh file at bottom where states:
    # import imported templates as dashboards for admin user


The xml files listed here are the custom dashboards.
These can also be copied out (for instance with WinSCP) and imported into a  manually created new dashboard.

Add lines for different users but firstly create duplicate of file for backup purposes

Cp import-dashboard.sh import-dashboard.sh.default
Vi /import-dashboards.sh

/usr/lib/vmware-vcops/user/conf/dashboards # ls -l

-rw-r--r-- 1 admin admin  61794 Aug 26 04:56 DashboardTemplate-Alerts.xml
-rw-r--r-- 1 admin admin 117798 Aug 26 04:56 DashboardTemplate-ClusterUtilization.xml
-rw-r--r-- 1 admin admin  90979 Aug 26 04:56 DashboardTemplate-DatastorePerformance.xml
-rw-r--r-- 1 admin admin  74401 Aug 26 04:56 DashboardTemplate-DatastoreSpace.xml
-rw-r--r-- 1 admin admin 170642 Aug 26 04:56 DashboardTemplate-Heatmaps.xml
-rw-r--r-- 1 admin admin  77214 Aug 26 04:56 DashboardTemplate-HostMemory.xml
-rw-r--r-- 1 admin admin 117370 Aug 26 04:56 DashboardTemplate-HostUtilization.xml
-rw-r--r-- 1 admin admin  76295 Aug 26 04:56 DashboardTemplate-Troubleshooting.xml
-rw-r--r-- 1 admin admin 128042 Aug 26 04:56 DashboardTemplate-VMPerformance.xml
-rw-r--r-- 1 admin admin 117626 Aug 26 04:56 DashboardTemplate-VMUtilization.xml



  # import imported templates as dashboards for all administrator users
    bash  ./dbcli.sh dashboard import group:Administrators $TD_1 --default true --set 1
    bash  ./dbcli.sh dashboard import group:Administrators $TD_2
    bash  ./dbcli.sh dashboard import group:Administrators $TD_3
    bash  ./dbcli.sh dashboard import group:Administrators $TD_4
    bash  ./dbcli.sh dashboard import group:Administrators $TD_5
    bash  ./dbcli.sh dashboard import group:Administrators $TD_6
    bash  ./dbcli.sh dashboard import group:Administrators $TD_7
    bash  ./dbcli.sh dashboard import group:Administrators $TD_8
    bash  ./dbcli.sh dashboard import group:Administrators $TD_9

    bash  ./dbcli.sh dashboard import group:Administrators $TD_10



From vCOPS 5.7.3  release notes:

  • All and group options for dashboard commands
    For the dashboard import, dashboard delete, and dashboard reorder commands, you can use one of the following options instead of specifying a user name:
    * --all
    * --group:<group_name[,<group_name>]

    The --all option applies the command to all user accounts. The --group:<group_names[,<group_name>] option applies the command to all user accounts that belong to the specified user groups. For example, the command dashboard import group:Administrators,Operators "templates\MyDashboard.bin" imports the dashboard MyDashboard.bin to all user accounts that belong to the Administrators and Operators user groups.
    The dashboard import command also has a --set <rank> option that enables you to set the dashboard order. For example, the command dashboard import MyUser2 "dashboards/MyDashboard.bin" --set 1 imports the dashboard MyDashboard.bin and makes it the first dashboard in the dashboard list for the user MyUser2.

vCenter Operations Manager (vCops) errors and not collecting stats (/data out of space)

Recently I logged into vCenter Operations Manager (vCOPS) custom UI and found that all objects stopped collecting stats.

Troubleshooting: 

Logged into vCenter server and tried health status tab but received connection error.
In Custom UI select Environment tab -> Configuration -> Adapter instances.   Edit a vcenter instance and selected test. Received the following error

 "Test was not successful.  Connection refused to host: Secondvm-internal;nested exception is: java.net.ConnectionException: Connection refused"

I ran the same test on our VNX and Brocade adapter instances and received the exact same error.

In vCops Administration page under registration tab i selected the update bottom on vCenter Server registration and re-entered the password.  After a long while i received an exception error.
I went to status tab and saw that some of the vCenter Operations Manager Statuses was not running.
I tried to start the service but did not work and status did not change nor did i get an error message.

I SSH into the Analytics VM and tried to manually restart the service "vcops-admin restart".  showed that the database was not coming online on which i though about looking at space.

Ran "df -h" and found that the /data drive was out of space.

Solution:

Shut down vCops vapp container from vCenter server.
Edit the VM and add new disk.
Power on the vapp container.

vCops will automatically extend the /data drive with the newly added disk.


Links:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2016022

Tuesday, August 5, 2014

vCOPS: admin alert "number of resources exceeds supported limit"

We recently started seeing the following alert in our vCops environment.



Resolution:

The problem is that the maximum of 1000 supported resources has been reached.
To fix this you have to update the advanced properties configuration file for analytic.


  • Open SSH session to Analytic server.
  • browse to /usr/lib/vmware-vcops/user/conf/analytics/
  • open the file advanced.properties (vi advanced.properties)
  • add the following line to the file:
    • "maxNumberOfResourcesSupported=<#>"
    • make sure the number added is larger than 1000 since this is the default
  • save the file
  • Restart the analytic services within vCops.
    • "service vcops restart analytics"