bmalone11

updated

14 years ago

B

bmalone11

33 Posts

0

188684

June 15th, 2012 12:00

Reporting on services not working

I am able to report on clusters and data centers, but if I create a service with service builder and populate it with VMs, none of the reports show any data when run against these services.

Do I need to wait for data to be populated after creating the server? Or do I need to customize the service to make reporting work properly?

Totally confused as always with the inscrutable foglight interface.

Any help much appreciated.

  • 472

    1

    Posted June 18th, 2012 13:00

    What is the display name in vCenter?  Are the capitalized?  Rules are case sensitive, so you may have to do SRV vs. srv.  The name that the host picks up is almost always lowercase vs. a VM.

  • 515

    0

    Posted June 15th, 2012 16:00

    Essentially, what you need is something like a UI Query that returns all of the VMs in the service so you can then build a view based on those inside of the service.  There is an example of this in my core community cartridge and attached is an image of what the definition of the query looks like to make it work.

    getServiceVMs.jpg

  • john_s_main

    132 Posts

    515

    0

    Posted June 15th, 2012 17:00

    Are you using a custom report to test your service, and does that custom report work with the VMWare service?

    As Tom says, the trick is not in the service, it's in the report consuming the service. 

    Try running a standard report, using your new service.  If that works, then it's the report spec.

    And, no, you can't select the service from the dropdown on the VMWare Environment page,

    that page has a bug which prevents it from using custom service definitions, even though they appear in the list.

  • 515

    0

    Posted June 15th, 2012 17:00

    You should be able to use any service in the VMware environment page if you mark it as being part of the VMware domain.  The only thing that the VMware environment page should care about is that it filters out any services with the name ESX or ResourcePool in it.

  • 515

    0

    Posted June 15th, 2012 17:00

    I've got about 60 different services I've created via service builder that all show up in the drop down list in VMware Environment.  You are on 6.6.1?  It should work with no issues.  If the service somehow has a name that is part of the query filter that could explain it.  That view has a filter on a slew of words.

    query.jpg

  • john_s_main

    132 Posts

    515

    0

    Posted June 15th, 2012 17:00

    Yes, FSMDynamicManagedComponent, service contains around 200 VMs, tests fine, and works great with the standard reports.  Wierd, I know.

  • john_s_main

    132 Posts

    515

    0

    Posted June 15th, 2012 17:00

    The services show up on the dashboard dropdown list, they just don't display any data.

    Perhaps that dashboard is limited in some other way.

  • john_s_main

    132 Posts

    515

    0

    Posted June 15th, 2012 17:00

    Yep, you would think so, but no.

  • 515

    0

    Posted June 15th, 2012 17:00

    That's why, the DMC is technically a layer or two deeper than those queries/functions look.  If they are in the root of the service they should enumerate.

  • 515

    0

    Posted June 15th, 2012 17:00

    That's even stranger, it's not enumerating the contents of the service?  Are they in a Dynamic Managed Component?