Using variables ($_HOSTTAGS$) in active checks

Hi there,
in the ruleset for “Classical active and passive Monitoring checks” for command line it says about the usage of variables:

grafik

What is the right syntax for such a rule when using (own) $_HOSTTAGS$? I guess I will have to use the “Tag ID”? Couldn’t find a valid example yet so I thought I give it a try here…

All custom attributes defined for the host are available as $_HOST[VARNAME]$. Replace “[VARNAME]” with the upper case name of your variable.
For example, a host attribute named foo with the value bar would result in the macro $_HOSTFOO$ being replaced with bar .

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.