I want to create a dashboard for my NOC that shows a list of down nodes, down applications, and down components of each application.
I have nodes and applications but how do I get components?
I made a powershell script that will do it by taking the url of each application and looping through them and running a query to grab the down components of each application but I want to move this to a dashboard within solarwinds instead of a powershell script.
So the dashboard should be a table with headings like "Component name --- App Name ---- Host Name ---- Status" to show all of the down/offline/unreachable components of each application.
| Component Name | App Name | Node Name | Status Code |
| HTTPS monitor | Microsoft IIS | VM02 | 2 |
foreach ($app in $DownAppTable) {
$appName = $DownAppTable[$DownAppTable.IndexOf($app)].AppName
$appURL = $DownAppTable[$DownAppTable.IndexOf($app)].detailsUrl
$id = Get-SwisData $swis "SELECT ApplicationID from Orion.APM.Application n WHERE n.Name = `'$appName`' AND n.detailsUrl = `'$appURL`'"
$DownComponentTable += Get-SwisData -ErrorAction Ignore $swis "SELECT Name AS ComponentName,ShortName,Status,StatusDescription,AncestorDisplayNames AS HostName,DetailsUrl FROM Orion.APM.Component c WHERE c.ApplicationID = $id AND Status IN (0,2,3,12)"
}