• 0
Dan_Wood

Tracking null system.category

Question

I'm doing a moderately large new install of logicmonitor in multiple datacenters and found that if I come across a system that's being firewalled or blocked in general, it has a null system.category.

I've been fiddling with using Dynamic Groups and have hit on a problem where I can't actually determine if system.category is null. I've tried hasCategory(""), system.category =~ "" , system.category !~ "*", and join(system.category,",") =~ ""

Any guidance would be appreciated.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
6 minutes ago, Dan_Wood said:

I'm doing a moderately large new install of logicmonitor in multiple datacenters and found that if I come across a system that's being firewalled or blocked in general, it has a null system.category.

I've been fiddling with using Dynamic Groups and have hit on a problem where I can't actually determine if system.category is null. I've tried hasCategory(""), system.category =~ "" , system.category !~ "*", and join(system.category,",") =~ ""

Any guidance would be appreciated.

 

Gah, I typo'd in my post; s/category/categories/

Share this post


Link to post
Share on other sites
  • 0
On 8/14/2018 at 12:45 PM, Sarah Terry said:

@Dan_Wood You should be able to check for devices with an empty system.categories property using this dynamic group query:


!system.categories

 

That works like a champ, one caveat though is that it does not factor in inherited system.categories but that is to be expected.

Thank you again!

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
Answer this question...

×   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.