Forum Discussion

Kelemvor's avatar
Kelemvor
Icon for Expert rankExpert
25 days ago

Any way to find all dashboards that have broken widgets?

Hi,

Because LM bases so many things on Text searches instead of group IDs, any time something get renamed, moved, reorganized, etc, everything breaks.  Is there any easy way to find any dashboards that end up broken because they're referencing something that no longer exists?

Same goes for Alert Rules that might be looking for a group that doesn't exist any more and no one knows there's a problem.

Thanks.

3 Replies

  • Replying to say this is a big issue in our use case. Would love some notification that lists broken dashboards.

    • Kelemvor's avatar
      Kelemvor
      Icon for Expert rankExpert

      LM's official response is that they have no way of doing that and I should just manually go to every dashboard and find the ones that are broken.  Or do whatever this means...

      after deep checking your request, I found we have no native way to achieve what you’re looking for. I believe that the best approach would require a complex configuration and crossing multiple information across your portal. For example though the groovy script in a module get the configuration of the dashboards or alert rules, then check also the configuration of the devices, and cross that information to identify if something has changed and where, so you can take care of it.
      In this case, my best recommendation would be reaching out to the Professional Services team through your CSM, and they can gladly assist you with the creation of this customized feature

      • Lewis_Beard's avatar
        Lewis_Beard
        Icon for Expert rankExpert

        I think this means, you could write a script to pull all the alert rules from the API, and then check the Group or Resource Specifications and figure out whether those Groups still exist.

        And then for the dashboards, you could use the API to crawl every dashboard and widget, and do something similar.

        I think the check of the alert rules would be the easier of the two.