How to filter navigations to hosts / services with a variable != null / existing

In the monitoring module it worked like this _service_icingacli_x509_host!= and the service action navigation only showed up for services that are checks based on icingacli x509... and thus have the corresponding custom variables set.

Any ideas how to replicate this behavior in icingadb?

I dont think this is a x509 feature since there are no hooks for that.
I think you need a IcingaDB Service or Host action for that:

Your name-> Navigation → Create a New Navigation Item

Yes, it’s independent from the module.

And my problem is that the filter isn’t matching only the service that have the variable set. So the navigation appears on all services and isn’t exclusive to the icingacli x509 check serices.

This worked while using the monitoring module:

this works for me:

service.vars.x509_host~*

yours should be:

service.vars.icingacli_x509_host~*

1 Like

@moreamazingnick , you’re the best - Support Hero indeed!