This is actually a follow up question to my previous topic How to label multiple users to a host, but it could also stand on it’s own hence new topic. Not sure if desirable or not.
Using 2.0.0p16 (CRE), assigning labels manually to hosts at the moment, but might do so dynamically and / or to services as well in the future. Till made dynamically, labels are made manually on the fly, typos are possible, so duplicate labels might form.
To keep labels organised and in same syntax, is there a page or view that lists all available or assigned labels to hosts or services?
I would think there should be one, since the filter does an autocomplete on available labels.
I had already done that, but that doesn’t pop out any typo duplicates or syntax goof ups.
I was hoping for a big list of unique labels sorted alphabetical. With standard functionality of a link on each label to filtered hosts or services using specific label, so you can edit them at specific host or service configuration.
If there isn’t such a place, then thinking outside of the box…
Maybe inspect what sources the autocomplete in the filter uses, perhaps this information is stored somewhere in OMD.
Or alternatively I can go for an all host view and try to alter the view with user styles so only the labels remain.
Did a bit of investigation and the best workaround I found so far was to use the inspect tool inside the browser (using Firefox 91 ESR) to get Host label JSON response visible.
Go to any host view you want the labels visible as JSON
Filter results, add filter Host labels
Inspect the empty field Host labels
Developer tools, tab Network, clear results if needed
In Host labels field, type a character and directly backspace to remove it. This will search for all labels, instead of a wildcard search of text you typed.
In Developer tools click the latest entry of ajax_autocomplete_labels.py?_ajaxid=
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.