Thank you njoylif for sharing your template! It helped me achieve my goal.
The goal was to display the current primary host name of a SQL active-passive cluster directly on the Orion dashboard without having to go into the AppInsight for SQL view. The AppInsight view would get us the info we needed anyways, but this is a resource we can have on our NOC view without causing issues.
Here is what the resource looks like in our display:
Simple right? Here is how I was able to achieve this:
- Installed the SAM template by @njoylif - http://thwack.solarwinds.com/docs/DOC-172309 - and applied it against the SQL cluster virtual IP address.
- Next, I created a custom report in Orion Report Writer called "Primary SQL Node". You can call yours anything you like, we just kept it simple here.
- To build the report the way that I did, use the following for the "Select Fields" tab:
- For the "Filter Results" tab, only choose njoylif's application template. Here is what it looks like in my report:
- In the "Field Formatting" tab, hide Application_Name, ApplicationID, and Statistic Data. Edit the column header for "Component_Message" to say something like "Primary Node" or something like that.
- Save then test the report and it should return a single value - which is the name of the primary SQL node in the active-passive cluster.
- To build the report the way that I did, use the following for the "Select Fields" tab:
- Once the report was built I added it as a resource to the dashboard. Done.
I hope this helps out others looking to do the same thing. Thanks again @njoylif and @aLTeReGo for your advice and guidance!