Forum Discussion

Dominique's avatar
Dominique
Icon for Advisor rankAdvisor
5 years ago

How to test the existence of a property in a custom query in a custom property on a device in Logicmonitor?

Hello,

How to test the existence of a property in a custom query in a custom property on a group in Logicmonitor?

I tried various syntax but it does not seem to work properly

isWindows() && ip2dns.result

or

isWindows() && exists ("ip2dns.result")

This is not returning anything!!!

Thanks,

Dominique

  • As far as I recall, you cannot define a dynamic group using inherited properties.  We have had to do contortions to get around that restriction as well.  You might be forced to create a propertysource that assigns auto.XX properties and then use that to define the dynamic group.  I am not sure why this restriction exists, never have received a satisfactory answer.

  • I have always used the first method, and it is actually documented to work unambiguously (until I checked, I thought perhaps it evaluated it and could be false if the value is 0).  The exists() function says that it will check the values of all properties and is true if one or more have that value.  I don't know when that would be useful :).

    Function: exists("<property value>")

    This function returns TRUE if the specified value is assigned to any of the resource’s properties.

    Function: <property name>

    Any property name can be referenced as an AppliesTo function. When used alone, it returns TRUE for any resource which has a value set for the specified property. It can be used with operators for comparison purposes.