Sign in to follow this  
Luke

LogicMonitor - Device count reporting

Recommended Posts

As an MSP, our usage of LogicMonitor increases as we onboard new customers, as part of operations management I need to be able to regularly rationalise and reconcile monitored objects per customer.  This allows better visibility into cost types and enables more detailed forecasting into when is appropriate to modify MSP tier level.

If our deployment of Logic for customers is organised into:
Resources ->
Devices ->
Customers -> 
<Customer Name> ->

Ideally the report would show three columns:
Customer Name (Device Group) -- Devices (numerical count) -- Cloud Resources (numerical count)

Thanks,

Luke.

Share this post


Link to post
Share on other sites

Hi Will,

Reported monthly would make the most sense, along with the normal LogicMonitor Usage Report.

Thanks,

Luke.

Share this post


Link to post
Share on other sites
#!/bin/sh

USERN="iamabot"
PASSW="ohyouwannahaveaparty"
#PROXY="--proxy http://proxy.example.com:3128"

/usr/bin/env curl $PROXY -s \
  "https://iamameatpopsicle.logicmonitor.com/santaba/rpc/getHosts?hostGroupId=1&c=iamameatpopsicle&u=${USERN}&p=${PASSW}" | \
  grep -c '"type": "HOST",'

so do that, set up a datasource to absorb the return value.

Update the hostGroupId with the correct groupId.

Note: I wrote this a very long time ago and some of the interfaces may have changed.

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this