Home > OpsMgr > SQL Query to get the state of a distributed application

SQL Query to get the state of a distributed application

 

I helped a customer creating a SQL query to check the state of a distributed application. the customer needed that to publish the state of some distributed application using his share point IT portal.

/* My Disributed Application */

/* SELECT bme.FullName, bme.DisplayName, s.HealthState */

SELECT s.HealthState

FROM state AS s, BaseManagedEntity AS bme

WHERE s.basemanagedentityid = bme.basemanagedentityid

AND s.monitorid IN (SELECT MonitorId FROM Monitor WHERE MonitorName = ‘System.Health.EntityState’)

AND  bme.DisplayName = ‘My distributed Application’

 

Advertisements
Categories: OpsMgr Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: