Service icons besides action URL without menu

5 views
Skip to first unread message

bjornf

unread,
Mar 1, 2021, 2:31:24 PM3/1/21
to Thruk
Hi,

If I want to have multiple "actions/icons" without a menu for basically all services. Ideally controlled via "/etc/thruk/thruk_local.conf".  Is that possible?

I'm only able to do it with a menu via thruk_local.conf?

Also, there is:

  servicemenu = .*;.+$           # matches all services on all hosts

Can that be done with regexp that includes all services except some that are excluded?

Regards, Bjorn

Sven Nierlein

unread,
Mar 2, 2021, 10:16:00 AM3/2/21
to th...@googlegroups.com, bjornf
Hi,

This should be possible. Create a /etc/thruk/action_menus/servicemenu.json
and a apply rule like: servicemenu = .*;(?!test).*$
This should match all services, except when they start with test.
Entries in the servicemenu.json do not have to be a menu, it can contain
a list of simple icons as well, something like:

[
{
"icon":"../themes/{{theme}}/images/arrow_refresh.png",
"label":"... 1",
"action":"https://...",
},{
"icon":"../themes/{{theme}}/images/arrow_refresh.png",
"label":"... 2",
"action":"https://2",
}
]

Cheers,
Sven


Am 01.03.21 um 20:31 schrieb bjornf:
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com <mailto:thruk+un...@googlegroups.com>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/thruk/38e6966d-3a1d-4918-a12c-07e9811b4dacn%40googlegroups.com <https://groups.google.com/d/msgid/thruk/38e6966d-3a1d-4918-a12c-07e9811b4dacn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages