Recommended Posts

We recently had this question asked to support

"Is it possible to set conditional alert thresholds for a certain datapoints? For example for all servers, the "AvailableGB" under Disks > Volume Usage > Alert Tuning. If we wanted volumes that are...

- Up to 100GB total in size, the alert threshold is 10GB 
- 101GB - 500GB total in size, the alert threshold is 40GB 
- 501GB - 3TB total in size, the alert threshold is 200GB 
- 3TB - 10TB total in size, the alert threshold is 400GB"

 

Out of  the box , then no we dont support this. Our standard thresholds would alert you on 90% used space, but imagine being woken up at 3 in the morning by a phone call from Logicmonitor telling you that you need to get up and sort out some storage as your 35 TB only has 3500 GB free.

image.thumb.png.048ebbbcdc67ad428193f0a6ea8b223c.png 

Nearly time to wake up!!

 

But what you can do is use our Instance Level Properties in conjunction with our groovy scripted datapoints to set your lower limits exactly like this.

First lets look at the ILP.

You can quickly add them into any wmi datasource here.

image.thumb.png.06839d42a7d2495146c22232cf2defc9.png

 

This creates an automatic property in the info tab of each volume listing the capacity.

image.thumb.png.70fd2801a50dbf0dd41af3e6e8801747.png

Here you can see this volume capacity of 35184235765760 bytes or just over 35 terabytes.

Now we can add a complex datapoint that references this capacity

image.thumb.png.e62a97428eed36f4a448fb4328c3a5c6.png

Basically it applies a lower limit of 400 GB on all drives, then reduces it if the capacity in bbytes is below certain amount

A 35TB drive would return 400, a 100GB drive would return 10.

So now you have a threshold for lower limits based on the size of the volume.

Now you can use a second complex datapoint.

image.thumb.png.63067b40698468efd5d05fc33ebf9c80.png

If(lt(AvailableGB,FreeSpaceLowerLimitGigabyte),1,0) means if the AvailableGB is less than the FreeSpaceLowerLimitGigabyte return 1 otherwise return 0.

 

Suppose your C drive is 80 GB and you F drive was 35TB.

Set a threshold of = 1 1 1 and you will get a critical alert if your C drive is less than 10GB, or if your F drive is less than 400GB. All automatically applied and alerted on

 

 

image.png

 

image.png

Edited by David Lee

Share this post


Link to post
Share on other sites

@David Lee Thank you for this, I might have to play around with implementing this for a few of my DS's...

Along with conditional formatting I would love to see the ability to say:

  • if threshold is < X or > than Y
  • if threshold is > X and < Y
  • if threshold for DP1 is < than X AND threshold for DP2 is < than Y. (right now I use a comlex datapoint and put my thresholds in there.. if dp1 is lower than X and dp2 is lower than Y return a 0 or 1 based on true/false statements... its ugly and confusing :/ )

Share this post


Link to post
Share on other sites

The idea behind this post is also what I figured out on my own, however, I want to see the amount remaining in the message that gets sent in the alert.

Will there ever be any kind of free-form secondary return value that can be passed along with the alert?

Evaluate this value against these thresholds - send this other value/string if threshold is met (and maybe even per threshold).

I really only see this being needed for variably sized storage.

We have previously used what is below, but we also had a column for "performance data."

when percent_free < 5 and gb_free < 5 then 0 -- critical
when percent_free < 10 and gb_free < 15 then 1 -- warn
else 3 -- ok

 

Share this post


Link to post
Share on other sites
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum 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.