• 0
bala

Adding SDTs to healthchecks under another healthcheck

Question

I would like to know if it is possible to add an SDT to a health check nested under another health check in LogicMonitor.

How can I find out the host id of one of the healthchecks so that I can add an SDT using a web URL like, 
https://appfolio.logicmonitor.com/santaba/rpc/setHostSDT?hostId=<host_id_here>&id=0&type=1&year=2016&month=5&day=3&hour=6&minute=30&endYear=2016&endMonth=5&endDay=3&endHour=6&endMinute=45

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

The device id can be identified by first selecting the device in the device tree, and then selecting the 'focus on the selected node' option at the top right of the device tree.  After focusing, the device id will be displayed in the URL as /-groupId-d-deviceId.

Can you explain more about what level you want to set an SDT at?  Maybe an example?  You can use our RPC API to SDT a group, device, a specific datasource for a device, an instance of a datasource or an instance group.

Share this post


Link to post
Share on other sites
  • 0

Hi Sarah,
Thank you for the response. In the attachment to this message, you can see that we have a couple of healthchecks under the cluster health check titled "screening II cluster". I am able to find the host id for screening II cluster and add an SDT using the API. However, in a case where I need to add an SDT on a health check nested under this one, like  "Appfolio Screenings NBD criminal", I am not able to use the same API to extract the host id for "Appfolio Screenings NBD criminal". How can I extract the host id for "Appfolio Screenings NBD criminal" or "Appfolio Screenings NBD Eviction"?

 

imageedit_1_5050529446.jpg

 

 

 

 

 

 

Share this post


Link to post
Share on other sites
  • 0

It looks like you'd like to set SDTs at the datasource level.  You can use the setHostDataSourceSDT RPC to do this.  The API request syntax for your account should be:

https://appfolio.logicmonitor.com/santaba/rpc/setHostDataSourceSDT?dataSourceId=<datasource_id_here>&id=0&type=1&year=2016&month=5&day=3&hour=6&minute=30&endYear=2016&endMonth=5&endDay=3&endHour=6&endMinute=45

In the Old UI, drilling down to a graph for a particular datasource will display the datasource Id in the URL.  For example, see the attached image.

In the New UI, we do not display datasource Id.  You can, however, use our API to get datasource Id: https://www.logicmonitor.com/support/rpc-api-developers-guide/manage-devices/get-the-datasource-instances-for-a-device/

 

datasource_id.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now